This repository has been archived by the owner on Aug 23, 2022. It is now read-only.
forked from typicalbot/typicalbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
160 lines (160 loc) · 4.94 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:security/recommended"
],
"plugins": [
"@typescript-eslint",
"import",
"security"
],
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"project": "./tsconfig.json"
},
"env": {
"node": true,
"es6": true
},
"rules": {
"@typescript-eslint/array-type": 0,
"@typescript-eslint/await-thenable": 0,
"@typescript-eslint/ban-ts-ignore": 0,
"@typescript-eslint/consistent-type-assertions": [
2,
{
"assertionStyle": "as",
"objectLiteralTypeAssertions": "allow-as-parameter"
}
],
"@typescript-eslint/consistent-type-definitions": [
2,
"interface"
],
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/member-delimiter-style": 2,
"@typescript-eslint/member-ordering": 0,
"@typescript-eslint/naming-convention": 2,
"@typescript-eslint/no-base-to-string": 2,
"@typescript-eslint/no-dynamic-delete": 2,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-extraneous-class": 2,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-throw-literal": 2,
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-unnecessary-boolean-literal-compare": 2,
"@typescript-eslint/no-unnecessary-type-arguments": 2,
"@typescript-eslint/prefer-for-of": 2,
"@typescript-eslint/prefer-function-type": 2,
"@typescript-eslint/prefer-includes": 2,
"@typescript-eslint/prefer-nullish-coalescing": 2,
"@typescript-eslint/prefer-optional-chain": 2,
"@typescript-eslint/prefer-readonly": 2,
"@typescript-eslint/switch-exhaustiveness-check": 2,
"@typescript-eslint/type-annotation-spacing": 2,
"@typescript-eslint/unified-signatures": 2,
"brace-style": 0,
"@typescript-eslint/brace-style": [
2,
"1tbs",
{
"allowSingleLine": true
}
],
"comma-spacing": 0,
"@typescript-eslint/comma-spacing": [
2,
{
"before": false,
"after": true
}
],
"dot-notation": 0,
"@typescript-eslint/dot-notation": [
2,
{
"allowKeywords": true,
"allowPattern": "(^[A-Z])|(^[a-z]+(_[a-z]+)+$)"
}
],
"func-call-spacing": 0,
"@typescript-eslint/func-call-spacing": [
2,
"never"
],
"keyword-spacing": 0,
"@typescript-eslint/keyword-spacing": [
2,
{
"before": true,
"after": true
}
],
"lines-between-class-members": 0,
"@typescript-eslint/lines-between-class-members": [
2,
"always",
{
"exceptAfterSingleLine": true
}
],
"no-dupe-class-members": 0,
"@typescript-eslint/no-dupe-class-members": 2,
"no-extra-semi": 0,
"@typescript-eslint/no-extra-semi": 2,
"no-useless-constructor": 0,
"@typescript-eslint/no-useless-constructor": 2,
"indent": 0,
"@typescript-eslint/indent": [
2,
4
],
"no-unused-vars": 0,
"@typescript-eslint/no-unused-vars": [
2,
{
"vars": "all",
"args": "after-used",
"ignoreRestSiblings": true
}
],
"quotes": 0,
"@typescript-eslint/quotes": [
2,
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"semi": 0,
"@typescript-eslint/semi": 2,
"space-before-function-paren": 0,
"@typescript-eslint/space-before-function-paren": [
2,
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"no-use-before-define": 0,
"no-undef": 0,
"@typescript-eslint/unbound-method": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/ban-ts-comment": 0,
"object-curly-spacing": [
2,
"always"
]
}
}