This repository was archived by the owner on Sep 20, 2021. It is now read-only.
File tree 3 files changed +18
-19
lines changed
3 files changed +18
-19
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "hooks": {
3
+ "pre-commit": "lint-staged"
4
+ }
5
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "*.{json,css,md}": [
3
+ "prettier --write",
4
+ "git add"
5
+ ],
6
+ "*.{js,jsx,ts,tsx}": [
7
+ "prettier --write",
8
+ "sortier",
9
+ "git add"
10
+ ]
11
+ }
Original file line number Diff line number Diff line change 17
17
"build-scss" : " node-sass src/styles.scss dist/styles.css" ,
18
18
"build-typescript" : " tsc" ,
19
19
"clean" : " rimraf coverage dist" ,
20
- "precommit" : " lint-staged" ,
21
20
"prepare" : " npm run clean && npm run build" ,
22
21
"test" : " npm run karma" ,
23
22
"karma" : " karma start ./karma.conf.js"
24
23
},
25
- "husky" : {
26
- "hooks" : {
27
- "pre-commit" : " lint-staged"
28
- }
29
- },
30
- "lint-staged" : {
31
- "*.{json,css,md}" : [
32
- " prettier --write" ,
33
- " git add"
34
- ],
35
- "*.{js,jsx,ts,tsx}" : [
36
- " prettier --write" ,
37
- " sortier" ,
38
- " git add"
39
- ]
40
- },
41
24
"peerDependencies" : {
42
25
"classnames" : " >=2.2.5" ,
43
26
"@snowcoders/react-unstyled-button" : " >=1.1.5" ,
58
41
"chai" : " ^4.1.2" ,
59
42
"enzyme" : " ^3.6.0" ,
60
43
"enzyme-adapter-react-16" : " ^1.5.0" ,
61
- "husky" : " ^0.14.3 " ,
44
+ "husky" : " ^1.0.0 " ,
62
45
"jsdom" : " ^12.0.0" ,
63
46
"lint-staged" : " ^7.2.0" ,
64
47
"karma" : " ^3.0.0" ,
87
70
"tsconfig-paths" : " ^3.6.0" ,
88
71
"typescript" : " ^3.0.3"
89
72
}
90
- }
73
+ }
You can’t perform that action at this time.
0 commit comments