-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
64 lines (64 loc) · 1.96 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
62
63
64
{
"parser":"babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"plugins": [
"react",
"import"
],
"extends" : [
"eslint:recommended",
"plugin:react/recommended"
],
"settings": {
"react": {
"version": "16.8.6"
}
},
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"semi": 2,
"quotes": [2, "single", "avoid-escape"],
"prefer-destructuring": [2, {"object": true, "array": false}],
"no-duplicate-imports": [2, { "includeExports": true }],
"nonblock-statement-body-position": 2,
"object-curly-spacing": [2, "always", { "objectsInObjects": true }],
"space-before-blocks": 2,
"comma-style": [2, "last"],
"camelcase": [2, {"properties": "always"}],
"id-length": [2, { "min": 2, "exceptions": ["r", "x", "y"] }],
"space-infix-ops": 2,
"no-console": [2, { "allow": ["warn", "error"] }],
"no-undef": 1,
"no-unused-vars": [2, { "args": "none" }],
"import/extensions": 2,
"import/no-absolute-path": 2,
"import/no-dynamic-require": 2,
"import/no-duplicates": 2,
"import/newline-after-import": 2,
"import/no-unassigned-import": 2,
"import/no-unresolved": [2, { "commonjs": true, "amd": true }],
"react/no-access-state-in-setstate": 2,
"react/no-did-update-set-state": 2,
"react/no-did-mount-set-state": 2,
"react/no-is-mounted": 2,
"react/no-will-update-set-state": 2,
"react/style-prop-object": 2,
"react/no-string-refs": 2,
"react/self-closing-comp": 2,
"react/jsx-closing-bracket-location": 2,
"react/jsx-boolean-value": 2,
"react/no-deprecated": 2,
"react/forbid-prop-types": 0,
"react/prefer-stateless-function": 2,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-no-duplicate-props": 2,
"react/prop-types": [1, { "skipUndeclared": true }]
}
}