Skip to content

Commit

Permalink
install lefthook
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightjack committed Apr 9, 2024
1 parent 4afcfe4 commit b64600f
Show file tree
Hide file tree
Showing 3 changed files with 92 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lefthook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pre-commit:
parallel: true
commands:
eslint:
glob: "*.{js,ts}"
run: pnpm exec eslint {staged_files}
styles:
glob: "*.{css}"
run: pnpm exec stylelint {staged_files}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"eslint-config-prettier": "9.1.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "5.1.3",
"lefthook": "^1.6.8",
"mockdate": "^3.0.5",
"netlify-cli": "16.9.3",
"prettier": "3.2.5",
Expand Down
82 changes: 82 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 b64600f

Please sign in to comment.