-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
63 lines (63 loc) · 1.54 KB
/
.eslintrc.js
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
56
57
58
59
60
61
62
63
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
"airbnb",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: "module",
},
plugins: ["react", "@typescript-eslint", "react-hooks", "unused-imports", "prettier"],
settings: {
react: {
version: "detect",
},
"import/resolver": {
typescript: {},
},
},
rules: {
"react/jsx-filename-extension": [2, { extensions: [".js", ".jsx", ".ts", ".tsx"] }],
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never",
},
],
"prettier/prettier": [
"warn",
{
endOfLine: "auto",
printWidth: 150,
},
],
"no-param-reassign": "off",
"no-use-before-define": "off",
"import/prefer-default-export": "off",
"react/function-component-definition": "off",
"no-shadow": "off",
"@typescript-eslint/no-explicit-any": ["off"],
"jsx-a11y/label-has-associated-control": "off",
"no-plusplus": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"jsx-a11y/no-static-element-interactions": "off",
"@typescript-eslint/no-namespace": "off",
},
};