File tree 4 files changed +565
-383
lines changed
4 files changed +565
-383
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "extends": "eslint-config-rackt ",
2
+ "extends": "prettier ",
3
3
"env": {
4
4
"browser": true,
5
5
"mocha": true,
6
6
"node": true
7
7
},
8
+ "parser": "babel-eslint",
9
+ "parserOptions": {
10
+ "ecmaVersion": 6,
11
+ "sourceType": "module",
12
+ "ecmaFeatures": {
13
+ "jsx": true,
14
+ "modules": true,
15
+ "experimentalObjectRestSpread": true
16
+ }
17
+ },
8
18
"rules": {
19
+ "prettier/prettier": "warn",
9
20
"valid-jsdoc": 2,
10
21
"react/jsx-uses-vars": 1,
11
22
"react/jsx-uses-react": 1,
12
23
"react/jsx-no-undef": 2
13
24
},
14
- "plugins": [
15
- "react"
16
- ]
25
+ "plugins": ["prettier", "react"]
17
26
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "trailingComma": "none",
3
+ "semi": false,
4
+ "singleQuote": true
5
+ }
Original file line number Diff line number Diff line change 28
28
"@types/react" : " ^16.4.7" ,
29
29
"babel-cli" : " ^6.26.0" ,
30
30
"babel-core" : " ^6.26.3" ,
31
- "babel-eslint" : " ^7 .2.3 " ,
31
+ "babel-eslint" : " ^8 .2.6 " ,
32
32
"babel-plugin-transform-decorators-legacy" : " ^1.3.5" ,
33
33
"babel-preset-es2015" : " ^6.24.1" ,
34
34
"babel-preset-react" : " ^6.24.1" ,
35
35
"babel-preset-stage-0" : " ^6.24.1" ,
36
- "eslint" : " ^3.19 .0" ,
37
- "eslint-config-rackt " : " ^1.1.1 " ,
38
- "eslint-plugin-babel " : " ^4.1.1 " ,
36
+ "eslint" : " ^5.3 .0" ,
37
+ "eslint-config-prettier " : " ^2.9.0 " ,
38
+ "eslint-plugin-prettier " : " ^2.6.2 " ,
39
39
"eslint-plugin-react" : " ^7.10.0" ,
40
40
"expect" : " ^1.18.0" ,
41
41
"fbjs" : " ^0.8.17" ,
42
42
"jsdom" : " ^9.8.3" ,
43
43
"mocha" : " ^3.3.0" ,
44
+ "prettier" : " ^1.14.0" ,
44
45
"prop-types" : " ^15.6.2" ,
45
46
"react" : " ^16.4.2" ,
46
47
"react-dom" : " ^16.4.2" ,
55
56
"scripts" : {
56
57
"build" : " babel src --out-dir lib" ,
57
58
"lint" : " eslint src test" ,
59
+ "lint-check" : " eslint --print-config .eslintrc.js | eslint-config-prettier-check" ,
58
60
"prepublish" : " rimraf lib && npm run build" ,
59
61
"test" : " mocha --compilers js:babel-core/register --recursive --reporter spec --require ./test/setup.js" ,
60
62
"test:watch" : " npm test -- --watch"
You can’t perform that action at this time.
0 commit comments