File tree Expand file tree Collapse file tree 3 files changed +315
-10
lines changed Expand file tree Collapse file tree 3 files changed +315
-10
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
extends:
3
3
- formidable
4
+ - prettier
4
5
plugins:
5
6
- jest
6
7
env:
Original file line number Diff line number Diff line change 5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
7
"test" : " jest" ,
8
- "lint" : " eslint ."
8
+ "lint" : " eslint ." ,
9
+ "precommit" : " lint-staged"
10
+ },
11
+ "lint-staged" : {
12
+ "*.js" : [
13
+ " eslint --fix" ,
14
+ " git add"
15
+ ]
9
16
},
10
17
"files" : [
11
18
" package.json" ,
44
51
"babel-preset-env" : " ^1.6.1" ,
45
52
"eslint" : " 2.10.2" ,
46
53
"eslint-config-formidable" : " ^3.0.0" ,
54
+ "eslint-config-prettier" : " ^2.9.0" ,
47
55
"eslint-plugin-filenames" : " ^1.2.0" ,
48
56
"eslint-plugin-import" : " ^2.8.0" ,
49
57
"eslint-plugin-jest" : " ^21.3.2" ,
58
+ "husky" : " ^0.14.3" ,
50
59
"invariant" : " ^2.2.2" ,
51
60
"jest" : " ^21.2.1" ,
61
+ "lint-staged" : " ^6.1.0" ,
52
62
"react" : " ^16.1.1" ,
53
63
"react-native" : " ^0.50.3"
54
64
},
You can’t perform that action at this time.
0 commit comments