/
.eslintrc.js
66 lines (66 loc) · 1.55 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
65
66
module.exports = {
"extends": "airbnb",
"plugins": ["jsx-a11y"],
"rules": {
"arrow-parens": ["error", "as-needed"],
"class-methods-use-this": ["error", {
exceptMethods: [
"render",
"getInitialState",
"getDefaultProps",
"getChildContext",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount",
],
}],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"jsx-a11y/anchor-is-valid": 2,
"jsx-a11y/label-has-associated-control": "off",
"function-paren-newline": "off",
"no-use-before-define": "off",
"no-alert": "off",
"camelcase": "off",
"prefer-destructuring": "off",
"max-len": ["error", 120, 2, {
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"import/no-unresolved": ["error", { ignore: ['\.css'] }],
"react/self-closing-comp": ["error", {
"component": true,
"html": true
}]
},
settings: {
"import/no-unresolved": [
"error",
{
"caseSensitive": true
}
],
},
"overrides": [
{
"files": [ "**/*.test.*" ],
"rules": {
}
}
]
};