Skip to content

Commit

Permalink
feat: only lint staged files locally (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
maalni authored Jul 12, 2024
1 parent 762eaa9 commit c082efd
Show file tree
Hide file tree
Showing 4 changed files with 235 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pnpm lint
pnpm exec lint-staged

3 changes: 3 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
'*': ['prettier --list-different', 'eslint']
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-svelte": "^2.41.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"postcss": "^8.4.39",
"prettier": "^3.3.2",
"prettier-plugin-svelte": "^3.2.5",
Expand Down
Loading

0 comments on commit c082efd

Please sign in to comment.