-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.eslintrc.js
51 lines (51 loc) · 1.31 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
module.exports = {
env: {
"browser": true,
"commonjs": true,
"es6": true
},
extends: ["eslint:recommended", "plugin:react/recommended"],
parser: "babel-eslint",
globals: {
process: true,
__PAGES__: true,
__dirname: true,
LXAnalytics: true
},
parserOptions: {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module"
},
"settings": {
"react": {
"createClass": "createReactClass", // Regex for Component Factory to use,
"pragma": "React", // Pragma to use, default to "React"
"version": "16.2.0", // React version, default to the latest React stable release
},
"propWrapperFunctions": [ "forbidExtraProps" ]
},
plugins: [
"react",
"import"
],
rules: {
"indent": ["error", 2],
"react/jsx-indent": ["error", 2],
"no-console": ["off"],
"no-debugger": ["off"],
"import/no-unresolved": ["off"],
"comma-dangle":["off"],
"react/no-find-dom-node": ["off"],
'no-undef': ["warn"],
'no-unused-vars': ["warn"],
'react/display-name': ["off"],
'react/react-in-jsx-scope': ['off'],
'no-empty': ['off'],
"complexity": ["error", 30],
"max-depth": ["error", 4],
"max-nested-callbacks": ["error", 3],
"no-useless-escape": [0]
}
};