-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
61 lines (59 loc) · 1.28 KB
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"root": true,
"env": {
"es6": true,
"node": true,
"mocha": true
},
"parser": "babel-eslint",
"cache": true,
"cacheLocation": ".eslintcache",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"globalReturn": true,
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"plugins": [
"babel",
"flowtype",
"react",
"mocha",
"import"
],
"extends": [
"eslint:recommended",
"babel",
"plugin:flowtype/recommended",
"plugin:react/recommended",
"plugin:import/recommended",
"plugin:import/react"
],
"rules": {
"semi": ["error", "never"],
"quotes": ["error", "single"],
"newline-after-var": ["error", "always"],
"react/jsx-indent": ["error", 2],
"react/no-set-state": "off",
"react/sort-prop-types": ["error", {
"callbacksLast": true,
"ignoreCase": true,
"requiredFirst": true
}],
"react/require-default-props": "error",
"react/jsx-first-prop-new-line": ["error", "never"],
"react/jsx-indent-props": ["error", 2],
"react/no-danger-with-children": "error",
"import/order": "error"
},
"settings": {
"import/resolver": {
"webpack": {
"config": "./webpack.config.js"
}
}
}
}