Skip to content

Commit

Permalink
feat(dx): add simple-git-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Apr 28, 2022
1 parent 7c661c5 commit 272465f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
"postcss-import": "^14.1.0",
"prettier": "^2.6.2",
"prettier-plugin-tailwindcss": "^0.1.10",
"simple-git-hooks": "^2.7.0",
"standard-version": "^9.3.2",
"tailwindcss": "^3.0.24",
"typescript": "^4.6.3",
Expand All @@ -83,10 +84,14 @@
"vitest": "^0.10.0",
"vue-tsc": "^0.34.10"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged",
"commit-msg": "npx commitlint --config ./.commitlintrc.cjs --edit $1"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint . --fix",
"*.{js,jsx,ts,tsx}": "eslint --fix",
"*.{js,ts,md,json,vue}": "prettier --write",
"*.{md,ts}": "cspell --no-must-find-files"
"*.{md,ts,vue}": "cspell --no-must-find-files"
},
"engines": {
"node": ">=v16.15.0",
Expand Down
8 changes: 8 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 272465f

Please sign in to comment.