Skip to content

Commit

Permalink
feat: lefthook
Browse files Browse the repository at this point in the history
  • Loading branch information
xpadev-net committed Nov 19, 2024
1 parent 8878246 commit bfec5cc
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 4 deletions.
6 changes: 6 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
pre-commit:
commands:
check:
glob: "*.{js,ts,cjs,mjs,d.cts,d.mts,jsx,tsx,json,jsonc}"
run: npx @biomejs/biome check --write --no-errors-on-unmatched --files-ignore-unknown=true --colors=off {staged_files}
stage_fixed: true
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"format:fix": "biome format --write src",
"lint": "biome check src",
"lint:fix": "biome check --apply-unsafe src",
"prepare": "lefthook install",
"test": "docker-compose run --rm pw",
"test-server": "http-server"
},
Expand All @@ -37,10 +38,7 @@
"bugs": {
"url": "https://github.com/xpadev-net/niconicomments/issues"
},
"files": [
"dist/bundle.js",
"dist/bundle.d.ts"
],
"files": ["dist/bundle.js", "dist/bundle.d.ts"],
"homepage": "https://xpadev-net.github.io/niconicomments/",
"license": "MIT",
"devDependencies": {
Expand All @@ -56,6 +54,7 @@
"@types/node": "^22.9.0",
"copyfiles": "^2.4.1",
"http-server": "^14.1.1",
"lefthook": "^1.8.4",
"rimraf": "^6.0.1",
"rollup": "^4.27.3",
"rollup-plugin-dts": "^6.1.1",
Expand Down
100 changes: 100 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bfec5cc

Please sign in to comment.