-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
63 lines (63 loc) · 1.76 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
63
module.exports = {
"extends": ["eslint-config-airbnb"],
"env": {
"browser": true,
"es6": true,
},
"parser": "babel-eslint",
"plugins": [
"react",
"import"
],
"globals": {
"graphql": false,
},
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
},
},
"rules": {
"react/no-multi-comp": "warn",
"react/jsx-first-prop-new-line": ["warn", "multiline"],
"react/prefer-stateless-function": "off",
"react/jsx-closing-bracket-location": "off",
"react/jsx-filename-extension": "off",
"react/self-closing-comp": "off",
"react/jsx-no-target-blank": "warn",
"react/no-find-dom-node": "warn",
"react/forbid-prop-types": "off",
"react/no-unescaped-entities": "off",
"import/default": "off",
"import/extensions": ["off"],
"import/no-duplicates": "off",
"import/named": "off",
"import/namespace": "off",
"import/no-unresolved": "off",
"import/no-named-as-default": "error",
"import/imports-first": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"import/newline-after-import": "off",
"import/no-dynamic-require": "off",
"comma-dangle": "off",
"consistent-return": "off",
"no-param-reassign": "off",
"prefer-template": "warn",
"global-require": "off",
"no-case-declarations": "off",
"no-underscore-dangle": "off",
"arrow-parens": "off",
"class-methods-use-this": "off",
"no-bitwise": "off",
"no-plusplus": "off",
"no-console": "off",
"no-alert": "off",
"max-len": ["error", 120],
"indent": ["error", 2, {"SwitchCase": 1}],
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": "off"
}
}