-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
64 lines (60 loc) · 1.42 KB
/
.eslintrc.js
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
module.exports = {
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import",
],
"env": {
"browser": true,
"node": true,
"mocha": true,
"shared-node-browser": true,
"es6": true,
},
rules: {
"consistent-return": 1,
"sort-keys": 2,
"semi": [2, "never"],
"no-param-reassign": [2, {
"props": false,
}],
"no-underscore-dangle": 1,
"no-mixed-operators": 1,
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never",
}],
"max-len": [1, 80],
"class-methods-use-this": [1],
"react/jsx-filename-extension": 0,
"react/jsx-key": 2,
"react/no-deprecated": 2,
"react/no-multi-comp": 2,
"react/no-set-state": 1,
"react/require-default-props": 2,
"react/forbid-prop-types": 0,
"jsx-a11y/img-has-alt": [0],
// False positive
"jsx-a11y/img-redundant-alt": [0],
// too many false positives
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0,
"import/named": 2,
"import/extensions": 0,
"import/prefer-default-export": 0,
},
"settings": {
"import/resolver": {
"webpack": {},
}
}
};