-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
84 lines (84 loc) · 2.6 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
{
"env": {
"browser": true,
"es2021": true
},
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import",
"simple-import-sort",
"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": "error",
"@typescript-eslint/no-for-in-array": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unsafe-argument": "error",
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/no-unsafe-member-access": "error",
"@typescript-eslint/no-unsafe-return": "error",
"@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",
"prettier/prettier": 2,
"@typescript-eslint/no-unused-vars": "off",
"default-case": "error",
"default-case-last": "error"
}
}