Skip to content
Snippets Groups Projects
Commit 7a3a5626 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

feat(DX): only lint staged files in pre-commit hook

parent 62d4d3d2
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run lint
npx lint-staged
This diff is collapsed.
......@@ -11,6 +11,10 @@
"format": "npm run lint-prettier -- --write && npm run lint-eslint -- --fix",
"prepare": "husky install"
},
"lint-staged": {
"*": "prettier --check --ignore-path .gitignore",
"*.{js,ts,vue}": "eslint --color --ignore-path .gitignore --ignore-path .eslintignore"
},
"dependencies": {
"@fullcalendar/core": "^5.11.3",
"@fullcalendar/interaction": "^5.11.3",
......@@ -38,6 +42,7 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-vue": "^9.7.0",
"husky": "^8.0.2",
"lint-staged": "^13.0.4",
"postcss": "^8.4.12",
"prettier": "^2.7.1",
"rollup-plugin-visualizer": "^5.8.3",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment