Skip to content

Commit e99e98c

Browse files
committed
test
1 parent 7023954 commit e99e98c

File tree

5 files changed

+815
-827
lines changed

5 files changed

+815
-827
lines changed

.husky/pre-commit

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

.lintstagedrc.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"*.js": [
3+
"prettier --write",
4+
"eslint"
5+
],
6+
"*.html": [
7+
"eslint",
8+
"prettier --write"
9+
],
10+
"*.css": "prettier --write"
11+
}

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-16
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,5 @@
2626
"jest": "^29.7.0",
2727
"lint-staged": "^14.0.1",
2828
"prettier": "^3.0.3"
29-
},
30-
"husky": {
31-
"hooks": {
32-
"pre-commit": "lint-staged"
33-
}
34-
},
35-
"lint-staged": {
36-
"*.{js,jsx}": [
37-
"prettier --write",
38-
"eslint --fix",
39-
"git add"
40-
],
41-
"*.{html,css,less,ejs,js}": [
42-
"prettier --write",
43-
"git add"
44-
]
4529
}
4630
}

0 commit comments

Comments
 (0)