File tree 3 files changed +14
-3
lines changed
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
2
+ . " $( dirname -- " $0 " ) /_/husky.sh"
3
+
4
+ npx lint-staged
Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ Thumbs.db
3
3
node_modules
4
4
package-lock.json
5
5
yarn.lock
6
+ pnpm-lock.yaml
6
7
.github /*
7
8
.vscode /*
8
9
.idea /*
10
+ .husky /*
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"format" : " prettier --write ./source/js/*.js ./scripts" ,
8
8
"lint:style" : " stylelint --fix ./source/css" ,
9
- "git:push" : " git push --tag && git push -u origin dev" ,
10
- "git:add" : " npm run format && npm run lint:style && git add ."
9
+ "prepare" : " husky install"
11
10
},
12
11
"repository" : {
13
12
"type" : " git" ,
28
27
"url" : " https://github.com/XPoet/hexo-theme-keep/issues"
29
28
},
30
29
"homepage" : " https://github.com/XPoet/hexo-theme-keep#readme" ,
30
+ "lint-staged" : {
31
+ "*.{styl}" : " stylelint --fix" ,
32
+ "*.{js}" : " prettier --write"
33
+ },
31
34
"devDependencies" : {
35
+ "lint-staged" : " ^13.2.3" ,
32
36
"prettier" : " ^2.7.1" ,
33
37
"stylelint" : " ^14.13.0" ,
34
38
"stylelint-config-rational-order" : " ^0.1.2" ,
35
- "stylelint-stylus" : " ^0.17.0"
39
+ "stylelint-stylus" : " ^0.17.0" ,
40
+ "husky" : " ^8.0.0"
36
41
}
37
42
}
You can’t perform that action at this time.
0 commit comments