-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
65 lines (64 loc) · 1.53 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
const path = require('path');
module.exports = {
"extends": "airbnb",
"plugins": [
"react",
"import",
"jsx-a11y",
"babel"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"node": true,
"browser": true,
"mocha": true,
"es6": true
},
"globals": {
"expect": true,
"globals": true,
"jest": true,
},
"rules": {
"no-warning-comments": "off",
"no-console": "off",
"jsx-a11y/img-uses-alt": "off",
"jsx-a11y/label-uses-for": "off",
"jsx-a11y/mouse-events-map-to-key-events": "off",
"jsx-a11y/redundant-alt": "off",
"jsx-a11y/valid-aria-role": "off",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": [
"error",
{
"ignore": [ 'js/', 'img/' ]
}
],
"import/extensions": "off",
"react/prefer-stateless-function": "off",
"react/forbid-prop-types": "off",
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true,
}
],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}],
"camelcase": "off",
},
};