-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
81 lines (81 loc) · 2.25 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{
"env": {
"es2021": true,
"jest": true
},
"extends": [
"airbnb",
"airbnb/hooks",
"airbnb-typescript",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"parser": "@typescript-eslint/parser",
"rules": {
"no-unused-vars": "warn",
"no-console": "off",
"no-underscore-dangle": "off",
"func-names": "off",
"consistent-return": "warn",
"react/style-prop-object": "warn",
"react/jsx-props-no-spreading": "off",
"react/jsx-filename-extension": [
1,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
],
"import/no-anonymous-default-export": "warn",
"import/extensions": ["error", "always", { "ignorePackages": true }],
"react/no-unknown-property": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "off",
"react/prop-types": "off",
"react/no-array-index-key": "warn",
"jsx-a11y/alt-text": [
"warn",
{
"elements": ["img"],
"img": ["Image"]
}
],
"jsx-a11y/aria-props": "warn",
"jsx-a11y/aria-proptypes": "warn",
"jsx-a11y/aria-unsupported-elements": "warn",
"jsx-a11y/role-has-required-aria-props": "warn",
"jsx-a11y/role-supports-aria-props": "warn",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/no-misused-promises": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": true,
"classes": true,
"variables": false,
"allowNamedExports": false
}
],
"@typescript-eslint/ban-types": "off"
},
"root": true,
"plugins": ["testing-library"],
"overrides": [
{
"files": [
"**/__tests__/**/*.[jt]s?(x)",
"**/?(*.)+(spec|test).[jt]s?(x)"
],
"extends": ["plugin:testing-library/react"]
}
]
}