-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
76 lines (76 loc) · 2.1 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
65
66
67
68
69
70
71
72
73
74
75
76
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true,
"jasmine": true
},
"parser": "babel-eslint",
"plugins": ["react"],
"extends": ["eslint:recommended", "plugin:react/recommended"],
"rules": {
"strict": 0,
"indent": [2, 2, { "SwitchCase": 1 }],
"quotes": [2, "single"],
"linebreak-style": [2, "unix"],
"semi": [2, "always"],
"camelcase": [1, { "properties": "never" }],
"prefer-template": "error",
"no-useless-concat": "error",
"prefer-spread": "error",
"react/jsx-tag-spacing": [2, { "beforeSelfClosing": "always" }],
"keyword-spacing": [
2,
{
"before": true,
"after": true,
"overrides": {
"return": { "after": true },
"throw": { "after": true },
"case": { "after": true }
}
}
],
"no-unused-vars": [
2,
{
"vars": "all",
"args": "after-used",
"argsIgnorePattern": "state",
"varsIgnorePattern": "React"
}
],
"space-before-blocks": 2,
"space-infix-ops": 2,
"space-before-function-paren": [
2,
{ "anonymous": "always", "named": "never" }
],
"array-bracket-spacing": [2, "never"],
"object-curly-spacing": [2, "always"],
"space-in-parens": [2, "never"],
"block-spacing": [2, "always"],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"comma-spacing": [2, { "before": false, "after": true }],
"comma-style": [2, "last"],
"comma-dangle": [2, "always-multiline"],
"prefer-arrow-callback": [2, { "allowNamedFunctions": true }],
"prefer-const": 1,
"react/no-multi-comp": [2, { "ignoreStateless": true }],
"react/no-did-mount-set-state": 2,
"react/no-unescaped-entities": 0,
"no-extra-boolean-cast": 0,
"no-console": ["error", { "allow": ["warn", "error"] }],
"react/jsx-curly-spacing": [2, { "when": "always" }],
"react/no-unused-prop-types": 2
}
}