-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.3 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
module.exports = {
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules": {
"comma-dangle": ["warn", "never"],
"indent": ["warn", 2],
"linebreak-style": ["warn","unix"],
"semi": ["error", "always"],
"no-unused-expressions": "warn",
"no-useless-concat": "warn",
"block-scoped-var": "error",
"consistent-return": "error",
"arrow-parens": ["error", "as-needed"],
"jsx-a11y/img-has-alt": "off",
"import/no-extraneous-dependencies": "off",
"import/extensions": "off",
"import/no-unresolved": "off",
"quotes": "off",
"no-underscore-dangle": "off",
"indent": [2, 2, {"SwitchCase": 1}],
"no-console": "off", // TODO: remove during production,
"no-case-declarations": "off",
"prefer-const": "off",
"no-param-reassign": "off",
"no-plusplus": "off",
"jsx-quotes": "off",
"react/prop-types": [2, { ignore: ['location', 'router', 'children']}],
"import/prefer-default-export": "off",
"consistent-return": "off",
"no-else-return": "off",
"class-methods-use-this": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/no-danger": "off"
}
};