-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
82 lines (82 loc) · 2.32 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"parser": "babel-eslint",
"rules": {
"react/prop-types": [2, {"ignore": ["dispatch", "params", "children", "defaultValue"]}],
"react/no-console": 0,
"react/no-did-update-set-state": 2,
"react/jsx-no-bind": 0,
"jsx-quotes": [2, "prefer-single"],
"arrow-parens": [2, "as-needed"],
"arrow-spacing": 2,
"brace-style": [2, "1tbs"],
"comma-dangle": 1,
"comma-style": 2,
"computed-property-spacing": [2, "never"],
"curly": 0,
"dot-notation": 2,
"eqeqeq": 2,
"handle-callback-err": 2,
"indent": [2, 2, { "SwitchCase": 1 }],
"keyword-spacing": 2,
"key-spacing": 2,
"linebreak-style": [2, "unix"],
"max-lines": [1, 200],
"max-depth": [2, 5],
"max-len": [1, {"code": 100, "tabWidth": 2, "ignoreUrls": true}],
"newline-before-return": 2,
"no-underscore-dangle": 0,
"no-use-before-define": [2, "nofunc"],
"no-duplicate-imports": 2,
"no-useless-computed-key": 2,
"no-var": 2,
"no-multiple-empty-lines": [2, { "max": 1 }],
"no-trailing-spaces": 2,
"no-unneeded-ternary": 2,
"no-whitespace-before-property": 2,
"no-process-exit": 0,
"no-dupe-keys": 2,
"no-dupe-args": 2,
"no-undef": [2, { "typeof": true }],
"no-unused-vars": 2,
"no-console": 0,
"no-case-declarations": 0,
"no-fallthrough": 0,
"no-multi-spaces": 2,
"no-shadow": 2,
"no-useless-return": 2,
"no-irregular-whitespace": 2,
"object-curly-spacing": [1, "always"],
"object-shorthand": [2, "always"],
"one-var": [2, "never"],
"prefer-arrow-callback": 2,
"prefer-const": 2,
"prefer-template": 2,
"quotes": [2, "single"],
"quote-props": [2, "as-needed"],
"semi": [2, "always"],
"space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
"space-before-blocks": [2, "always"],
"semi-spacing": [2, {"before": false, "after": true}],
"space-in-parens": [2, "never"],
"template-curly-spacing": [2, "never"]
},
"globals": {
"analytics": false
},
"plugins": ["react"],
"extends": "plugin:react/recommended",
"env": {
"browser": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true,
"modules": true
}
}
}