-
Notifications
You must be signed in to change notification settings - Fork 44
/
.eslintrc.json
69 lines (69 loc) · 1.99 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"env": {
"browser": true,
"webextensions": true
},
"extends": [
"plugin:jest/recommended",
"plugin:import/recommended",
"plugin:import/react",
"plugin:promise/recommended",
"plugin:react/recommended",
"standard",
"standard-react"
],
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx"
],
"moduleDirectory": [
"node_modules",
"."
]
}
}
},
"plugins": [
"jest",
"standard",
"import",
"promise",
"react"
],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"comma-dangle": ["error", "always-multiline"],
"quotes": "off",
"indent": ["error", 4, { "SwitchCase": 1 }],
"react/jsx-indent": ["error", 4],
"react/jsx-indent-props": ["error", 4],
"react/jsx-curly-newline": "off",
"react/jsx-handler-names": "off",
"react/jsx-no-target-blank": "off",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 0 }],
"no-unused-vars": "warn",
"space-before-function-paren": "off",
"space-infix-ops": "off",
"object-curly-spacing": ["warn", "always"],
"no-multi-spaces": ["warn", {"ignoreEOLComments": true}],
"operator-linebreak": ["error", "before"],
"handle-callback-err": "off",
"no-return-await": "off",
"import/no-mutable-exports": "error",
"import/unambiguous": "off",
"promise/avoid-new": "off",
"promise/always-return": "off",
"react/jsx-filename-extension": "error",
"react/sort-comp": "warn",
"react/jsx-max-props-per-line": [1, { "when": "multiline" }],
"jest/no-disabled-tests": "off"
}
}