-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
55 lines (52 loc) · 1.62 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
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "react-hooks"],
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-props-no-spreading": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": ["off"],
"react/display-name": "off",
"import/prefer-default-export": "off",
"no-use-before-define": "off",
"no-shadow": "off",
"react-hooks/exhaustive-deps": "off",
"react/function-component-definition": "off",
"max-len": [
"error",
{
"code": 100,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}
],
"no-console": ["warn", { "allow": ["warn", "error"] }],
"react-hooks/rules-of-hooks": "error",
"no-param-reassign": [
"error",
{ "props": true, "ignorePropertyModificationsFor": ["state"] }
],
"prettier/prettier": ["error", { "singleQuote": true, "parser": "flow" }],
"react/destructuring-assignment": ["off"],
"jsx-a11y/no-noninteractive-element-interactions": ["off"],
"jsx-a11y/click-events-have-key-events": ["off"],
"react/button-has-type": ["off"],
"consistent-return": ["error"],
"jsx-a11y/media-has-caption": ["off"],
"no-constant-condition": "off"
}
}