-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.eslintrc
47 lines (47 loc) · 1.54 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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:prettier/recommended",
],
"ignorePatterns": ["**/*.js"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"project": true,
"sourceType": "module",
},
"plugins": [
"@typescript-eslint",
"import",
"simple-import-sort",
"typescript-sort-keys",
],
"root": true,
"rules": {
// typescript-eslint
"@typescript-eslint/consistent-return": "error",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": "error",
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
// import
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
// simple-import-sort
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
// typescript-sort-keys
"typescript-sort-keys/interface": "error",
"typescript-sort-keys/string-enum": "error",
},
}