-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
88 lines (88 loc) · 2.71 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
{
"env": {
"browser": true,
"es2021": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import",
"simple-import-sort",
"typescript-sort-keys",
"sort-keys",
"prettier"
],
"extends": ["prettier"],
"rules": {
"curly": 2,
"@typescript-eslint/quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"@typescript-eslint/no-unnecessary-condition": 0,
"@typescript-eslint/array-type": [
2,
{
"default": "generic"
}
],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/consistent-type-definitions": [2, "type"],
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/method-signature-style": "error",
"@typescript-eslint/naming-convention": 0,
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-useless-empty-export": "error",
"@typescript-eslint/prefer-function-type": "error",
"no-array-constructor": "off",
"@typescript-eslint/no-array-constructor": "error",
"no-throw-literal": "off",
"@typescript-eslint/no-throw-literal": "error",
"lines-between-class-members": "off",
"@typescript-eslint/lines-between-class-members": "error",
"object-curly-spacing": "off",
"@typescript-eslint/object-curly-spacing": [2, "always"],
"padding-line-between-statements": "off",
"@typescript-eslint/padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": ["type"]
}
],
"space-before-blocks": "off",
"@typescript-eslint/space-before-blocks": ["error", "always"],
"@typescript-eslint/type-annotation-spacing": [
"error",
{ "after": true }
],
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"typescript-sort-keys/interface": "off",
"typescript-sort-keys/string-enum": "off",
"prettier/prettier": 2,
"@typescript-eslint/no-unused-vars": "off",
"default-case": "off",
"default-case-last": "off"
}
}