Skip to content

Commit

Permalink
Merge pull request #117 from xpadev-net/chore/use-lefthook
Browse files Browse the repository at this point in the history
[改善] lefthookを導入
  • Loading branch information
xpadev-net authored Nov 19, 2024
2 parents 571ad45 + bfec5cc commit 03f3db7
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 353 deletions.
5 changes: 0 additions & 5 deletions .husky/pre-commit

This file was deleted.

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
5 changes: 0 additions & 5 deletions lint-staged.config.mjs

This file was deleted.

10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"format:fix": "biome format --write src",
"lint": "biome check src",
"lint:fix": "biome check --apply-unsafe src",
"prepare": "husky install",
"prepare": "lefthook install",
"test": "docker-compose run --rm pw",
"test-server": "http-server"
},
Expand All @@ -38,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 @@ -57,8 +54,7 @@
"@types/node": "^22.9.0",
"copyfiles": "^2.4.1",
"http-server": "^14.1.1",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"lefthook": "^1.8.4",
"rimraf": "^6.0.1",
"rollup": "^4.27.3",
"rollup-plugin-dts": "^6.1.1",
Expand Down
Loading

0 comments on commit 03f3db7

Please sign in to comment.