-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
54 lines (53 loc) · 1.49 KB
/
.eslintrc.js
File metadata and controls
54 lines (53 loc) · 1.49 KB
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
module.exports = {
parser: "babel-eslint",
extends: "airbnb",
ecmaFeatures: {
jsx: true
},
plugins: [
"react",
"jsx-a11y",
"import",
"flowtype"
],
rules: {
indent: ["error", 4, { "SwitchCase": 1 }],
quotes: ["error", "double"],
"comma-dangle": ["error", "never"],
"space-before-function-paren": ["off", "never"],
"import/prefer-default-export": "off",
"import/extensions": "off",
"no-param-reassign": "off",
"react/no-unescaped-entities": "off",
"react/jsx-indent": ["error", 4],
"react/require-default-props": "off",
"react/jsx-indent-props": ["error", 4],
"react/jsx-filename-extension": "off",
"react/prefer-stateless-function": "off",
"react/prop-types": "off",
"react/jsx-boolean-value": "off",
"react/no-unused-prop-types": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/img-has-alt": "off",
"class-methods-use-this": "off",
"flowtype/define-flow-type": 1
},
env: {
browser: true,
commonjs: true,
mocha: true
},
settings: {
flowtype: {
onlyFilesWithFlowAnnotation: false
},
"import/resolver": "webpack"
},
globals: {
i18n: false
}
};
if (process.env.NODE_ENV === "test") {
module.exports.env.mocha = true;
module.exports.rules["react/no-find-dom-node"] = "off";
}