-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
50 lines (50 loc) · 1.27 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": [
"import",
"react"
],
"env": {
"browser": true,
"node": true
},
"rules": {
"comma-dangle": 0,
"global-require": "off",
"import/no-dynamic-require": "off",
"keyword-spacing": ["error", {
"before": true,
"after": true,
"overrides": {
"if": { "after": false },
"while": { "after": false },
"for": { "after": false },
"switch": { "after": false },
"default": { "after": false },
"return": { "after": true },
"throw": { "after": true },
"catch": { "after": false },
"case": { "after": true }
}
}],
"no-underscore-dangle": "off",
"no-plusplus": ["error", {
"allowForLoopAfterthoughts": true
}],
"array-bracket-spacing": [2, "always"],
"curly": ["error", "multi-or-nest"],
"space-before-function-paren": "off",
"max-len": ["error", {
"code": 120,
"tabWidth": 2,
"ignoreUrls": true
}],
"quotes": ["error", "single", {
"avoidEscape": true,
"allowTemplateLiterals": true
}],
"react/prop-types": ["error", { "ignore": ["theme"], "customValidators": [] }],
"react/forbid-prop-types": ["error", { "forbid": ["any"] }]
}
}