forked from vundalon/iaso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
113 lines (113 loc) · 2.75 KB
/
.eslintrc.json
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"plugins": [
"formatjs",
"prettier"
],
"extends": [
"airbnb",
"plugin:react-hooks/recommended",
"prettier"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"ecmaVersion": 2020
},
"rules": {
"no-tabs": "off",
"no-console":["error",{"allow":["warn","error"]}],
"prettier/prettier": "warn",
"camelcase": "warn",
"constructor-super": "warn",
"import/no-extraneous-dependencies": "off",
"import/no-named-as-default": "warn",
"import/prefer-default-export": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/jsx-wrap-multilines": "off",
"jsx-a11y/label-has-associated-control": "off",
"jsx-a11y/label-has-for": "warn",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/no-noninteractive-element-to-interactive-role": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-curly-newline":"off",
"react/jsx-props-no-spreading":"warn",
"react/prop-types":"warn",
"linebreak-style": "off",
"max-len": [
"warn",
{
"code": 200
}
],
"no-bitwise": "warn",
"no-case-declarations": "warn",
"no-const-assign": "warn",
"no-continue": "warn",
"no-nested-ternary": "warn",
"no-prototype-builtins": "warn",
"no-restricted-syntax": "warn",
"no-this-before-super": "warn",
"no-undef": "warn",
"no-underscore-dangle": "off",
"no-unreachable": "warn",
"no-unused-vars": ["error",{"ignoreRestSiblings":true}],
"react/button-has-type": "off",
"react/destructuring-assignment": "off",
"react/forbid-prop-types": [
0
],
"react/jsx-filename-extension": [
1,
{
"extensions": [
".js",
".jsx"
]
}
],
"react/jsx-indent": [
"error",
4
],
"react/jsx-indent-props": [
"error",
4
],
"react/no-access-state-in-setstate": "off",
"react/no-array-index-key": "warn",
"react/no-unused-prop-types": "warn",
"react/jsx-wrap-multilines": "off",
"react/prefer-stateless-function": [
0,
{
"ignorePureComponents": true
}
],
"valid-typeof": "warn",
"no-unused-expressions": "off",
"class-methods-use-this": "warn"
},
"globals": {
"describe": "readonly",
"it": "readonly",
"before": "readonly",
"beforeEach": "readonly",
"afterEach": "readonly",
"after": "readonly",
"expect": "readonly",
"shallow": "readonly",
"mount": "readonly",
"sinon": "readonly",
"render":"readonly"
}
}