-
Notifications
You must be signed in to change notification settings - Fork 19
/
.eslintrc
60 lines (60 loc) · 1.77 KB
/
.eslintrc
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
{
"plugins": [
"react",
"@typescript-eslint",
"import"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:prettier/recommended"
],
"settings": {
"import/resolver": {
"typescript": {
"project": true
}
}
},
"rules": {
"@typescript-eslint/consistent-generic-constructors": "error",
"@typescript-eslint/consistent-indexed-object-style": "error",
"@typescript-eslint/consistent-type-assertions": ["error", { "assertionStyle": "never" }],
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/consistent-type-exports": ["error", { "fixMixedExportsWithInlineTypeSpecifier": true }],
"@typescript-eslint/consistent-type-imports": ["error", { "fixStyle": "inline-type-imports" }],
"import/order": [
"warn",
{
"alphabetize": {
"order": "asc"
},
"groups": [
"builtin",
"external",
"parent",
"sibling",
"index"
]
}
]
},
"ignorePatterns": [
"dist/",
"node_modules/",
"playwright.config.ts",
"postcss.config.js",
"tailwind.config.js",
"tests/",
"webpack.config.js"
]
}