File tree 3 files changed +16
-18
lines changed
3 files changed +16
-18
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "hooks": {
3
+ "pre-commit": "yarn lint-staged",
4
+ "pre-push": "yarn test:changes"
5
+ }
6
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "*.js": [
3
+ "prettier --write",
4
+ "eslint --fix",
5
+ ],
6
+ "*.css": [
7
+ "prettier --write",
8
+ "stylelint --fix",
9
+ ]
10
+ }
Original file line number Diff line number Diff line change 29
29
"test:watch" : " yarn test --watch" ,
30
30
"test:update-snaps" : " yarn test -u"
31
31
},
32
- "husky" : {
33
- "hooks" : {
34
- "pre-commit" : " yarn lint-staged" ,
35
- "pre-push" : " yarn test:changes"
36
- }
37
- },
38
- "lint-staged" : {
39
- "*.js" : [
40
- " prettier --write" ,
41
- " eslint --fix" ,
42
- " git add"
43
- ],
44
- "*.css" : [
45
- " prettier --write" ,
46
- " stylelint --fix" ,
47
- " git add"
48
- ]
49
- },
50
32
"nyc" : {
51
33
"extends" : " ./nyc.config.js" ,
52
34
"report-dir" : " cypress-coverage" ,
You can’t perform that action at this time.
0 commit comments