Skip to content

Commit

Permalink
Only lint staged files
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkedev committed Oct 17, 2023
1 parent db2bb5f commit 6cf993a
Show file tree
Hide file tree
Showing 4 changed files with 237 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .githooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint
yarn lint-staged
4 changes: 4 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"*.ts": "eslint",
"*.svelte": "eslint"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"eslint": "^8.51.0",
"eslint-plugin-svelte": "^2.34.0",
"husky": "^8.0.3",
"lint-staged": "^15.0.1",
"typescript": "^5.2.2"
},
"workspaces": [
Expand Down
Loading

0 comments on commit 6cf993a

Please sign in to comment.