-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
47 lines (47 loc) · 1.13 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
{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import",
"prettier",
"simple-import-sort"
],
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"rules": {
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"no-fallthrough": "off",
"@typescript-eslint/member-ordering": "warn",
"@typescript-eslint/consistent-type-imports": [
1,
{
"prefer": "type-imports"
}
],
"@typescript-eslint/no-duplicate-imports": 1
},
"ignorePatterns": [
"packages/**/dist/**/*",
"packages/**/coverage/**/*"
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [
".ts",
".tsx"
]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true, // always try to resolve types under `<root>@types` directory even it doesn"t contain any source code, like `@types/unist`
"project": "packages/*/tsconfig.json"
}
}
}
}