-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
40 lines (40 loc) · 1.03 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"globals": {
"document": true,
"window": true,
"jest": true,
"beforeAll": true,
"beforeEach": true,
"afterAll": true,
"afterEach": true,
"describe": true,
"it": true,
"expect": true
},
"rules": {
"brace-style": ["error", "stroustrup"],
"class-methods-use-this": ["off"],
"comma-dangle": ["error", "never"],
"react/forbid-prop-types": ["off"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"max-len": ["error", 100, 2, {
"ignoreUrls": true,
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"one-var": ["off"],
"react/jsx-boolean-value": ["error", "always"],
"react/jsx-indent": [2, 4],
"react/jsx-indent-props": [2, 4]
}
}