-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.eslintrc.json
46 lines (46 loc) · 1.46 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
41
42
43
44
45
46
{
"extends": ["airbnb", "plugin:jest/recommended"],
"rules": {
"max-len": "warn",
"quotes": ["error", "double"],
"comma-dangle": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"curly": ["error", "all"],
"brace-style": ["error", "1tbs"],
"padded-blocks": ["error", { "classes": "always", "blocks": "never" }],
"object-curly-newline": [
"error",
{
"ImportDeclaration": { "multiline": true, "minProperties": 3 },
"ObjectExpression": { "consistent": true}
}
],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"class-methods-use-this": "off",
"import/prefer-default-export": "off",
"react/jsx-filename-extension": "off",
"react/jsx-one-expression-per-line": "off",
"react/prop-types": "off",
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", "first"],
"react/button-has-type": "off",
"react/destructuring-assignment": "warn",
"react/sort-comp": "off",
"react/no-did-update-set-state": "off",
"jsx-a11y/label-has-for": "off",
"no-underscore-dangle": "off",
"no-param-reassign": [
"error",
{
"props": false
}
]
},
"plugins": ["jest"],
"env": {
"browser": true
},
"parser": "babel-eslint"
}