-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
57 lines (53 loc) · 1.34 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
// "off" or 0 - turn the rule off
// "warn" or 1 - turn the rule on as a warning (doesn’t affect exit code)
// "error" or 2 - turn the rule on as an error (exit code is 1 when triggered)
{
"extends": [
"airbnb-base",
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:react/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"legacyDecorators": true
}
},
"env": {
"browser": true,
"jest": true
},
"plugins": [
"react"
],
"rules": {
"one-var": "off",
"prefer-const": "error",
"no-unused-vars": "warn",
"no-underscore-dangle": "off",
"no-plusplus": "off",
"no-param-reassign": "warn",
"no-useless-escape": "warn",
"no-restricted-syntax": [
"error",
"LabeledStatement",
"WithStatement"
],
"radix": "off",
"no-shadow": "warn",
"quotes": [2, "single", "avoid-escape"],
"consistent-return": "warn",
"default-case": "warn",
"import/prefer-default-export": "off",
"import/extensions": "off",
"import/no-unresolved": 2,
"react/prop-types": "warn",
"no-console": "warn",
"import/first": "warn",
"react/no-string-refs": "warn",
"no-case-declarations": "warn",
"spaced-comment": ["error", "always", { "block": { "balanced": true } }]
}
}