forked from Enegrecer/enegrecer-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
62 lines (60 loc) · 1.84 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": [
"react"
],
"globals": {
"expect": true,
"it": true,
"jest": true
},
"env": {
"es6": true,
"mocha": true,
"node": true,
"browser": true
},
"settings": {
"react": {
"createClass": "createReactClass", // Regex for Component Factory to use, default to "createReactClass"
"pragma": "React", // Pragma to use, default to "React"
"version": "16.2" // React version, default to the latest React stable release
}
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
},
"sourceType": "module",
"ecmaVersion": 8
},
"rules": {
"comma-dangle": 0,
"quotes": [ 2, "single", "avoid-escape" ],
"no-multiple-empty-lines": [ "error", { "max": 1, "maxEOF": 1, "maxBOF": 0 } ],
"padded-blocks": "warn",
"no-unused-vars": "warn",
"import/no-extraneous-dependencies": 0,
"import/prefer-default-export": 0,
"react/jsx-uses-react": "error",
"react/jsx-wrap-multilines": "warn",
"react/jsx-uses-vars": "error",
"react/require-default-props": "warn",
"react/no-array-index-key": "warn",
"no-constant-condition": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"no-underscore-dangle": ["error", { "allow": ["__REDUX_DEVTOOLS_EXTENSION_COMPOSE__"] }],
"prefer-const": "warn",
"jsx-a11y/label-has-for": {
"required": {
"some": [ "nesting", "id" ]
}
},
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "to" ]
}]
}
}