-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc.js
58 lines (58 loc) · 1.61 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
module.exports = {
"env": {
"browser": true,
"node": true,
},
"ext": ".jsx",
"ignore": /(test|.conf)/,
"extends": "airbnb",
"installedESLint": true,
"plugins": [
"import",
"react",
],
"parserOptions":{
"ecmaFeatures": {
"jsx": true,
"experimentalObjectRestSpread": true
}
},
"settings": {
"import/parser": "webpack",
"import/parser": "babel-eslint"
},
"rules":{
"no-useless-constructor": ["off"],
"react/jsx-no-bind": ["warn"],
"arrow-body-style": ["off"],
"one-var": ["off"],
"one-var-declaration-per-line": ["off"],
"no-param-reassign": ["off"],
"max-len": ["warn", 150],
"semi": ["off"],
"no-underscore-dangle": ["error", { "allow": ["_id"] }],
"import/no-extraneous-dependencies": ["off"],
"import/no-unresolved": ["off"],
"import/prefer-default-export": ["off"],
"react/prefer-stateless-function": ["off"],
"react/self-closing-comp": ["off"],
// "react/no-string-refs": ["warn"],
"react/require-extension": ["off"],
"global-require": ["off"],
"new-cap": ['off'],
'jsx-a11y/anchor-has-content': ['off'],
'import/extensions': ['off'],
'react/require-default-props': ['off'],
'react/forbid-prop-types': ['off'],
'react/no-unused-prop-types': ['off'],
'jsx-a11y/no-static-element-interactions': ['off'],
'import/no-webpack-loader-syntax': ['off'],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore",
}]
},
}