-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
70 lines (66 loc) · 1.79 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
{
"env": {
"browser": true,
"es6": true,
"node": true,
},
"extends": "airbnb",
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"classes": true,
"jsx": true
}
},
"plugins": [
"compat",
"import",
"jsx-a11y",
"react"
],
"settings": {
"polyfills": ["fetch"]
},
"rules": {
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],
"comma-dangle": [2, {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}],
"function-paren-newline": [2, "consistent"],
"indent": [2, 2, {
"MemberExpression": "off",
"SwitchCase": 1
}],
"no-console": [1, { "allow": ["error"] }],
"no-mixed-operators": [0],
"no-unused-vars": [2, { "varsIgnorePattern": "^css[A-Z][a-z]+$" }],
"operator-linebreak": [2, "after"],
"compat/compat": [1],
"import/extensions": [0, { "extensions": [".js", ".jsx", ".json"] }],
"import/no-extraneous-dependencies": [0],
"import/prefer-default-export": [0],
"jsx-a11y/anchor-is-valid": [1, { "aspects": ["invalidHref"] }],
"react/destructuring-assignment": [0],
"react/forbid-prop-types": [1, { "forbid": ["any"] }],
"react/jsx-props-no-spreading": [0],
"react/jsx-one-expression-per-line": [0],
"react/no-array-index-key": [0],
"react/no-danger": [0],
"react/no-deprecated": [0],
"react/prop-types": [1, {"ignore": ["children", "route"]}],
"react/state-in-constructor": [2, "never"],
"react/static-property-placement": [2, "static public field"]
},
"overrides": [
{
"files": ["server/**/*.js", "build/**/*.js"],
"rules": {
"compat/compat": [0]
}
}
]
}