-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
44 lines (44 loc) · 1008 Bytes
/
.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
{
"parserOptions": {
"ecmaVersion": 2021,
"ecmaFeatures": {
"legacyDecorators": true,
"jsx": true
}
},
"env": {
"browser": true,
"node": true
},
"extends": [
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/recommended",
"plugin:jsx-a11y/recommended",
"airbnb",
"prettier"
],
"settings": { "react": { "version": "17" } },
"rules": {
"react/prop-types": ["warn"],
"react/forbid-prop-types": "off",
"react/jsx-props-no-spreading": "off",
"react/jsx-fragments": ["off"],
"semi": ["error", "always"],
"quotes": ["error", "double"],
"jsx-quotes": ["error", "prefer-double"],
"comma-dangle": [
"error",
{
"objects": "always",
"arrays": "only-multiline",
"imports": "never",
"exports": "never",
"functions": "never"
}
],
"no-undef": "error",
"no-use-before-define": "off",
"import/no-unresolved": "off"
}
}