-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
107 lines (107 loc) · 2.64 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"react-app",
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": ["react", "@typescript-eslint", "import"],
"settings": {
"import/resolver": {
"typescript": {}
}
},
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto",
"semi": true
}
],
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", ".ts", ".tsx", ".md"]
}
],
"linebreak-style": "off",
"react/jsx-props-no-spreading": "off",
"react/button-has-type": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/no-array-index-key": "off",
"import/prefer-default-export": "off",
"import/no-named-as-default": "off",
"jsx-a11y/media-has-caption": "off",
"no-case-declarations": "off",
"no-underscore-dangle": "off",
"no-param-reassign": "off",
"consistent-return": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-types": "off",
"class-methods-use-this": "off",
"no-nested-ternary": "off",
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports"
}
],
"import/no-unresolved": ["error", { "commonjs": true, "amd": true }],
"import/named": "error",
"import/namespace": "error",
"import/default": "error",
"import/export": "error",
"import/order": [
1,
{
"groups": ["builtin", "external", "internal", "parent", "sibling", "index", "object", "type"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"pathGroups": [
{
"pattern": "@/**",
"group": "external",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["builtin", "external", "internal", "parent", "sibling", "index", "object", "type"]
}
],
"no-restricted-imports": [
"error",
{
"patterns": ["@mui/*/*/*", "!@mui/material/test-utils/*"]
}
]
},
"overrides": [
{
"files": ["./**/*.d.ts"],
"rules": {
"no-restricted-imports": "off"
}
}
]
}