-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
executable file
·45 lines (45 loc) · 1.23 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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:react/jsx-runtime",
"airbnb",
"prettier"
],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "react-hooks"],
"rules": {
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "warn",
"react/button-has-type": "warn",
"react/prop-types": "off",
"react/require-default-props": "warn",
"react/no-array-index-key": "error",
"react/no-children-prop": "error",
"react/jsx-no-bind": "warn",
"prefer-spread": "warn",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"no-param-reassign": ["error", { "props": false }],
"react/jsx-props-no-spreading": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"react/function-component-definition": [
2,
{
"namedComponents": "arrow-function",
"unnamedComponents": "arrow-function"
}
]
}
}