-
Notifications
You must be signed in to change notification settings - Fork 342
/
.eslintrc.json
82 lines (82 loc) · 2.18 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
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"env": {
"browser": true,
"webextensions": true
},
"extends": [
"plugin:jest/recommended",
"plugin:promise/recommended",
"standard",
"standard-react",
"prettier",
"prettier/react",
"prettier/standard"
],
"plugins": ["prettier", "jest", "standard", "promise", "react"],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"settings": {
"react": {
"version": "16.4"
}
},
"rules": {
"camelcase": "error",
"comma-dangle": ["error", "always-multiline"],
"curly": ["error", "all"],
"quotes": "off",
"no-var": "error",
"prefer-const": "error",
"indent": "off",
"handle-callback-err": "off",
"jsx-quotes": "off",
"operator-linebreak": "off",
"space-before-function-paren": "off",
"space-infix-ops": "off",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-empty": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 2,
"maxEOF": 0
}
],
"no-multi-spaces": [
"error",
{
"ignoreEOLComments": true
}
],
"no-unused-vars": "error",
"no-return-await": "error",
"promise/avoid-new": "off",
"promise/param-names": "off",
"promise/always-return": "off",
"promise/catch-or-return": "off",
"promise/valid-params": "off",
"import/no-webpack-loader-syntax": "off",
"prefer-promise-reject-errors": "off",
"valid-jsdoc": "off",
"react/jsx-indent": "off",
"react/jsx-indent-props": "off",
"react/jsx-filename-extension": "off",
"react/prefer-stateless-function": "off",
"react/sort-comp": "warn",
"react/jsx-max-props-per-line": [
1,
{
"when": "multiline"
}
],
"jest/no-disabled-tests": "off"
},
"globals": {
"globalThis": false
}
}