Skip to content

Commit

Permalink
chore: change pre-commit hooking way
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Jul 22, 2023
1 parent 6ffa767 commit aabda0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 80 deletions.
2 changes: 2 additions & 0 deletions .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
npx --no-install lint-staged
5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"lint:docs": "textlint --config .textlintrc.js docs/*.md docs/advanced/**/*.md docs/essentials/**/*.md docs/migration/**/*.md docs/api/injection.md packages/**/*.md",
"lint:fix": "run-p \"lint:codes --fix\" \"lint:docs --fix\"",
"lint:secret": "npx secretlint \"**/*\"",
"prepare": "git config --local core.hooksPath .githooks",
"prebuild": "test \"$CI\" = true && npx pnpm install -r --store=node_modules/.pnpm-store || echo skipping pnpm install",
"preinstall": "node ./scripts/preinstall.js",
"preview:explorer": "pnpm --filter @intlify/message-format-explorer preview",
Expand All @@ -71,7 +72,6 @@
"@intlify/core-base": "workspace:*",
"@intlify/message-compiler": "workspace:*",
"@microsoft/api-extractor": "7.15.2",
"@nexhome/yorkie": "^2.0.8",
"@rollup/plugin-commonjs": "^25.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
Expand Down Expand Up @@ -152,9 +152,6 @@
"node": ">= 16"
},
"private": true,
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.{json,md,yml}": [
"prettier --write"
Expand Down
76 changes: 0 additions & 76 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 aabda0d

Please sign in to comment.