-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
62 lines (62 loc) · 1.52 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
module.exports = {
"env": {
"es6": true,
"node": true,
"browser": true,
"jest": true
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"flowtype"
],
"extends": [
"eslint:recommended",
"airbnb",
"plugin:react/recommended",
],
"globals": {
"__DEV__": true,
},
"rules": {
"no-restricted-syntax": "off",
"comma-dangle": ["error", "never"],
"no-invalid-this": "off",
"no-return-assign": "off",
"no-param-reassign": "off",
"no-nested-ternary": "off",
"no-confusing-arrow": "off",
"no-unused-expressions": "off",
"react/require-default-props": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
"react/prop-types": [2, { ignore: ["style", "children", "dispatch"] } ],
"react/prefer-stateless-function": "off",
"react/no-array-index-key": "off",
"import/prefer-default-export": "off",
"import/no-unresolved": "error",
"import/extensions": ["error", { js: "never" }],
"import/named": "error",
"import/default": "error",
"import/namespace": "error",
"import/no-absolute-path": "error",
"max-len": [2, 120, 4, {
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: false,
ignoreTemplateLiterals: false,
}],
},
"settings": {
"import/resolver": {
"babel-module": {}
}
}
};