-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
64 lines (64 loc) · 1.96 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
{
"plugins": [
"react", "smells", "xo"
],
"extends": [
"eslint:recommended", "plugin:react/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"allowImportExportEverywhere": true,
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"env": {
"browser": true,
"node":true
},
"globals": {
"__webpack_hash__": true
},
"rules": {
"no-console": 0,
"no-underscore-dangle": [ 1 , { "allow": ["__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"] } ],
"quotes": [2, "single"],
"react/prop-types": 0,
"react/no-string-refs": 0,
"smells/no-switch": 1,
"smells/no-complex-switch-case": 1,
"smells/no-setinterval": 1,
"smells/no-this-assign": 1,
"jsx-quotes": ["error", "prefer-single"],
"no-cond-assign": ["error", "always"],
"no-constant-condition": "warn",
"no-dupe-keys": "warn",
"no-duplicate-case": "warn",
"no-empty": "warn",
"no-ex-assign": "error",
"no-extra-semi": "warn",
"no-unreachable": "warn",
"array-callback-return": "error",
"block-scoped-var": "error",
"complexity": ["warn", 3],
"eqeqeq": ["warn", "always"],
"no-eq-null": "warn",
"no-alert": "error",
"no-empty-function": "warn",
"no-eval": "error",
"no-global-assign": "error",
"require-await": "warn",
"camelcase": "warn",
"comma-dangle": ["warn", "never"],
"no-duplicate-imports": "warn",
"no-dupe-class-members": "warn",
"no-const-assign": "error",
"arrow-spacing": "warn",
"no-multiple-empty-lines": "warn",
"object-curly-spacing": ["error", "always"],
"array-bracket-spacing": ["error", "always"],
"computed-property-spacing": ["error", "always"]
}
}