-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
52 lines (52 loc) · 1.42 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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"settings": {
"react": { "version": "detect" }
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
"plugin:import/recommended",
"plugin:jsx-a11y/recommended",
"plugin:prettier/recommended",
"prettier"
],
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"import/no-unresolved": "off",
"react/prop-types": "off",
"import/no-named-as-default": "off",
"jsx-a11y/label-has-associated-control": "off",
"eqeqeq": "error",
"no-undef": "off",
"no-unused-vars": "off",
"react/jsx-filename-extension": ["warn", { "extensions": [".tsx"] }],
"import/extensions": "off",
"prettier/prettier": ["error", { "endOfLine": "auto" }],
// "react/function-component-definition": [
// 2,
// {
// "namedComponents": "arrow-function",
// "unnamedComponents": "arrow-function"
// }
// ],
"import/prefer-default-export": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"@typescript-eslint/no-explicit-any": "off"
}
}