Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[改善] lefthookを導入 #117

Merged
merged 2 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading