-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.js
More file actions
53 lines (52 loc) · 1.05 KB
/
.eslintrc.js
File metadata and controls
53 lines (52 loc) · 1.05 KB
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
module.exports = {
env: {
browser: true,
es2020: true,
node: true
},
plugins: [
"react",
"react-hooks",
"import",
"jsx-a11y"
],
parserOptions: {
ecmaFeatures: { jsx: true },
project: "./tsconfig.json",
ecmaVersion: 11,
sourceType: "module"
},
settings: {
"react": { version: "detect" },
"import/resolver": "webpack"
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:jsx-a11y/recommended"
],
overrides: [
{
files: ["*.ts", "*.tsx"],
parser: "@typescript-eslint/parser",
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/typescript"
],
rules: {
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
],
rules: {
"indent": ["error", "tab", { SwitchCase: 1 }],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"react/prop-types": "off",
"react/react-in-jsx-scope": "off"
}
};