-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
45 lines (45 loc) · 1.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
{
"parser": "babel-eslint",
"rules": {
"max-len": [1, 120, 2, { "ignoreComments": true }],
"indent": [1, 4, { "SwitchCase": 1 }],
"arrow-body-style": ["error", "as-needed", { "requireReturnForObjectLiteral": true }],
"react/jsx-indent": [1, 4],
"linebreak-style": 0,
"react/jsx-filename-extension": 0,
"react/prefer-stateless-function": 0,
"react/prop-types": 0,
"react/jsx-indent-props": [2, 4],
"react/forbid-prop-types": 0,
"react/require-default-props": [0, { "forbidDefaultForRequired": false }],
"jsx-a11y/href-no-hash": 0,
"no-mixed-operators": [
"error",
{
"groups": [
["+", "-", "*", "/", "%", "**"],
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": false
}
],
"jsx-a11y/anchor-is-valid": 0,
"object-curly-newline": 0,
"import/no-unresolved": [
"error",
{
"ignore": ["src/"]
}
],
"react/sort-comp": false,
"func-names": "off"
},
"env": {
"browser": true,
"node": true
},
"extends": ["airbnb", "prettier"]
}