Skip to content

Commit 9cd498c

Browse files
author
samir
committed
lint staged added
1 parent 876a794 commit 9cd498c

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

‎.husky/.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

‎.husky/pre-commit‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

‎package.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"vite": "^4.3.9"
3838
},
3939
"lint-staged": {
40-
"*.{ts,tsx}": "eslint --cache --fix"
40+
"*.{js,css,ts,tsx,jsx}": [
41+
"prettier --write",
42+
"eslint --fix"
43+
]
4144
}
4245
}

0 commit comments

Comments
 (0)