-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
68 lines (68 loc) · 2.01 KB
/
.eslintrc
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
64
65
66
67
68
{
"extends": ["airbnb", "plugin:jest/recommended"],
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true,
"node": true,
"jest/globals": true
},
"globals": {
"__DEV__": true
},
"plugins": [
"import",
"promise",
"compat",
"react",
"jest"
],
"rules": {
"arrow-parens": ["off"],
"compat/compat": "off",
"class-methods-use-this": "off",
"consistent-return": "off",
"generator-star-spacing": "off",
"global-require": "off",
"linebreak-style": "off",
"max-len": 0,
"no-return-assign": "off",
"import/no-unresolved": ["error", { "ignore": ["electron"] }],
"import/no-named-as-default-member": "off",
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"react/no-unused-prop-types": "off",
"no-nested-ternary": "off",
"react/no-did-mount-set-state": "off",
"react/require-default-props": "off",
"react/no-string-refs": "off",
"react/no-array-index-key": "off",
"react/forbid-prop-types": "off",
"react/prop-types": "off",
"react/sort-comp": "off",
"no-plusplus": "off",
"no-confusing-arrow": "off",
"no-alert": "off",
"no-prototype-builtins": "off",
"no-bitwise": "off",
"no-param-reassign": "off",
"no-console": "off",
"no-case-declarations": "off",
"no-await-in-loop": "off",
"no-restricted-syntax": "off",
"no-underscore-dangle": "off",
"no-use-before-define": "off",
"promise/param-names": 2,
"promise/always-return": 2,
"promise/catch-or-return": "off",
"promise/no-native": 0,
"react/jsx-no-bind": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": "off",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
"object-curly-newline": "off",
"camelcase": "off",
"prefer-template": "off"
}
}