-
Notifications
You must be signed in to change notification settings - Fork 75
/
.eslintrc
64 lines (63 loc) · 2.11 KB
/
.eslintrc
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
{
"root": true,
"parser": "babel-eslint",
"plugins": ["react"],
"extends": [
"standard",
"plugin:react/recommended"
],
"env": {
"browser": true,
"node": true,
"es6": true,
"jasmine": true,
"mocha": true
},
"rules": {
"array-bracket-spacing": 0,
"brace-style": 2,
"comma-dangle": ["warn", "never"],
"comma-spacing": ["warn", {"before": false, "after": true}],
"curly": 2,
"indent": ["warn", 2, "SwitchCase": 1],
"key-spacing": ["warn", {"beforeColon": false, "afterColon": true, "mode": "minimum", "align": "value"}],
"keyword-spacing": [2, {"before": true, "after": true}],
"max-len": ["warn", {"code": 100, "tabWidth": 2, "ignoreComments": true, "ignoreUrls": true, "ignoreTemplateLiterals": true, "ignoreTrailingComments": true}],
"no-alert": 0,
"no-console": 0,
"no-multiple-empty-lines": [1, {"max": 3}],
"no-param-reassign": 2,
"no-sparse-arrays": 2,
"no-trailing-spaces": 0,
"no-unreachable": 2,
"object-curly-spacing": 0,
"padded-blocks": ["warn", { "switches": "always", "classes": "always" }],
"prefer-const": ["error", {"destructuring": "any"}],
"quote-props": [1, "as-needed"],
"quotes": [2, "single", "avoid-escape"],
"rest-spread-spacing": ["warn", "always"],
"semi-spacing": [1, {"before": false, "after": true}],
"semi": [1, "never"],
"space-before-blocks": [1, "always"],
"space-before-function-paren": [1, {"anonymous": "always", "named": "never"}],
"space-in-parens": [1, "never"],
"space-infix-ops": 1,
"space-unary-ops": [1, {"words": true, "nonwords": false}],
"spaced-comment": [1, "always"],
"strict": 0,
"react/display-name": 0,
"react/no-danger": 0,
"react/prop-types": 1,
"react/no-unused-prop-types": 1
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true,
"modules": true,
"classes": true
}
}
}