@storm-software/eslint 0.78.5 → 0.78.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/preset.d.mts +604 -2857
- package/dist/preset.d.ts +604 -2857
- package/dist/preset.mjs +51 -49
- package/dist/rules.d.ts +604 -2857
- package/package.json +1 -1
package/dist/preset.d.ts
CHANGED
|
@@ -24,3217 +24,964 @@ interface RuleOptions {
|
|
|
24
24
|
*/
|
|
25
25
|
'@nx/nx-plugin-checks'?: Linter.RuleEntry<NxNxPluginChecks>
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
28
|
-
* @see https://
|
|
29
|
-
*/
|
|
30
|
-
'@typescript-eslint/adjacent-overload-signatures'?: Linter.RuleEntry<[]>
|
|
31
|
-
/**
|
|
32
|
-
* Require consistently using either `T[]` or `Array<T>` for arrays
|
|
33
|
-
* @see https://typescript-eslint.io/rules/array-type
|
|
34
|
-
*/
|
|
35
|
-
'@typescript-eslint/array-type'?: Linter.RuleEntry<TypescriptEslintArrayType>
|
|
36
|
-
/**
|
|
37
|
-
* Disallow awaiting a value that is not a Thenable
|
|
38
|
-
* @see https://typescript-eslint.io/rules/await-thenable
|
|
27
|
+
* Ensures the file has a Storm Software banner
|
|
28
|
+
* @see https://docs.stormsoftware.com/eslint/rules/banner
|
|
39
29
|
*/
|
|
40
|
-
'
|
|
30
|
+
'banner/banner'?: Linter.RuleEntry<BannerBanner>
|
|
41
31
|
/**
|
|
42
|
-
*
|
|
43
|
-
* @see https://typescript-eslint.io/rules/ban-ts-comment
|
|
32
|
+
* @see https://github.com/prettier/eslint-plugin-prettier#options
|
|
44
33
|
*/
|
|
45
|
-
'
|
|
34
|
+
'prettier/prettier'?: Linter.RuleEntry<PrettierPrettier>
|
|
46
35
|
/**
|
|
47
|
-
*
|
|
48
|
-
* @see https://
|
|
36
|
+
* Validates that TypeScript documentation comments conform to the TSDoc standard
|
|
37
|
+
* @see https://tsdoc.org/pages/packages/eslint-plugin-tsdoc
|
|
49
38
|
*/
|
|
50
|
-
'
|
|
39
|
+
'tsdoc/syntax'?: Linter.RuleEntry<[]>
|
|
51
40
|
/**
|
|
52
|
-
*
|
|
53
|
-
* @see https://
|
|
41
|
+
* Improve regexes by making them shorter, consistent, and safer.
|
|
42
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/better-regex.md
|
|
54
43
|
*/
|
|
55
|
-
'
|
|
44
|
+
'unicorn/better-regex'?: Linter.RuleEntry<UnicornBetterRegex>
|
|
56
45
|
/**
|
|
57
|
-
*
|
|
58
|
-
* @see https://
|
|
59
|
-
* @deprecated
|
|
46
|
+
* Enforce a specific parameter name in catch clauses.
|
|
47
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/catch-error-name.md
|
|
60
48
|
*/
|
|
61
|
-
'
|
|
49
|
+
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>
|
|
62
50
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @see https://
|
|
65
|
-
* @deprecated
|
|
51
|
+
* Use destructured variables over properties.
|
|
52
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-destructuring.md
|
|
66
53
|
*/
|
|
67
|
-
'
|
|
54
|
+
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>
|
|
68
55
|
/**
|
|
69
|
-
*
|
|
70
|
-
* @see https://
|
|
56
|
+
* Prefer consistent types when spreading a ternary in an array literal.
|
|
57
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-empty-array-spread.md
|
|
71
58
|
*/
|
|
72
|
-
'
|
|
59
|
+
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>
|
|
73
60
|
/**
|
|
74
|
-
*
|
|
75
|
-
* @see https://
|
|
61
|
+
* Move function definitions to the highest possible scope.
|
|
62
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-function-scoping.md
|
|
76
63
|
*/
|
|
77
|
-
'
|
|
64
|
+
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>
|
|
78
65
|
/**
|
|
79
|
-
*
|
|
80
|
-
* @see https://
|
|
81
|
-
* @deprecated
|
|
66
|
+
* Enforce correct `Error` subclassing.
|
|
67
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/custom-error-definition.md
|
|
82
68
|
*/
|
|
83
|
-
'
|
|
69
|
+
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>
|
|
84
70
|
/**
|
|
85
|
-
* Enforce
|
|
86
|
-
* @see https://
|
|
87
|
-
* @deprecated
|
|
71
|
+
* Enforce no spaces between braces.
|
|
72
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/empty-brace-spaces.md
|
|
88
73
|
*/
|
|
89
|
-
'
|
|
74
|
+
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>
|
|
90
75
|
/**
|
|
91
|
-
* Enforce
|
|
92
|
-
* @see https://
|
|
76
|
+
* Enforce passing a `message` value when creating a built-in error.
|
|
77
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/error-message.md
|
|
93
78
|
*/
|
|
94
|
-
'
|
|
79
|
+
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
95
80
|
/**
|
|
96
|
-
* Require
|
|
97
|
-
* @see https://
|
|
81
|
+
* Require escape sequences to use uppercase values.
|
|
82
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/escape-case.md
|
|
98
83
|
*/
|
|
99
|
-
'
|
|
84
|
+
'unicorn/escape-case'?: Linter.RuleEntry<[]>
|
|
100
85
|
/**
|
|
101
|
-
*
|
|
102
|
-
* @see https://
|
|
86
|
+
* Add expiration conditions to TODO comments.
|
|
87
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/expiring-todo-comments.md
|
|
103
88
|
*/
|
|
104
|
-
'
|
|
89
|
+
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
105
90
|
/**
|
|
106
|
-
* Enforce
|
|
107
|
-
* @see https://
|
|
91
|
+
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
92
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/explicit-length-check.md
|
|
108
93
|
*/
|
|
109
|
-
'
|
|
94
|
+
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
110
95
|
/**
|
|
111
|
-
* Enforce
|
|
112
|
-
* @see https://
|
|
96
|
+
* Enforce a case style for filenames.
|
|
97
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/filename-case.md
|
|
113
98
|
*/
|
|
114
|
-
'
|
|
99
|
+
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
115
100
|
/**
|
|
116
|
-
*
|
|
117
|
-
* @
|
|
101
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#import-index
|
|
102
|
+
* @deprecated
|
|
118
103
|
*/
|
|
119
|
-
'
|
|
104
|
+
'unicorn/import-index'?: Linter.RuleEntry<[]>
|
|
120
105
|
/**
|
|
121
|
-
* Enforce
|
|
122
|
-
* @see https://
|
|
106
|
+
* Enforce specific import styles per module.
|
|
107
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/import-style.md
|
|
123
108
|
*/
|
|
124
|
-
'
|
|
109
|
+
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
125
110
|
/**
|
|
126
|
-
* Enforce
|
|
127
|
-
* @see https://
|
|
111
|
+
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
112
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/new-for-builtins.md
|
|
128
113
|
*/
|
|
129
|
-
'
|
|
114
|
+
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
130
115
|
/**
|
|
131
|
-
* Enforce
|
|
132
|
-
* @see https://
|
|
116
|
+
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
117
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
133
118
|
*/
|
|
134
|
-
'
|
|
119
|
+
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
135
120
|
/**
|
|
136
|
-
*
|
|
137
|
-
* @see https://
|
|
121
|
+
* Disallow anonymous functions and classes as the default export.
|
|
122
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-anonymous-default-export.md
|
|
138
123
|
*/
|
|
139
|
-
'
|
|
124
|
+
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
140
125
|
/**
|
|
141
|
-
*
|
|
142
|
-
* @see https://
|
|
126
|
+
* Prevent passing a function reference directly to iterator methods.
|
|
127
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-callback-reference.md
|
|
143
128
|
*/
|
|
144
|
-
'
|
|
129
|
+
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
145
130
|
/**
|
|
146
|
-
*
|
|
147
|
-
* @see https://
|
|
131
|
+
* Prefer `for…of` over the `forEach` method.
|
|
132
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-for-each.md
|
|
148
133
|
*/
|
|
149
|
-
'
|
|
134
|
+
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
150
135
|
/**
|
|
151
|
-
*
|
|
152
|
-
* @see https://typescript-eslint.io/rules/func-call-spacing
|
|
136
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
153
137
|
* @deprecated
|
|
154
138
|
*/
|
|
155
|
-
'
|
|
139
|
+
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
|
|
156
140
|
/**
|
|
157
|
-
*
|
|
158
|
-
* @see https://
|
|
159
|
-
* @deprecated
|
|
141
|
+
* Disallow using the `this` argument in array methods.
|
|
142
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-method-this-argument.md
|
|
160
143
|
*/
|
|
161
|
-
'
|
|
144
|
+
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
162
145
|
/**
|
|
163
|
-
*
|
|
164
|
-
* @see https://
|
|
146
|
+
* Enforce combining multiple `Array#push()` into one call.
|
|
147
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-push-push.md
|
|
165
148
|
*/
|
|
166
|
-
'
|
|
149
|
+
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
|
|
167
150
|
/**
|
|
168
|
-
*
|
|
169
|
-
* @see https://
|
|
170
|
-
* @deprecated
|
|
151
|
+
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
152
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-reduce.md
|
|
171
153
|
*/
|
|
172
|
-
'
|
|
154
|
+
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
173
155
|
/**
|
|
174
|
-
*
|
|
175
|
-
* @see https://
|
|
176
|
-
* @deprecated
|
|
156
|
+
* Disallow member access from await expression.
|
|
157
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-expression-member.md
|
|
177
158
|
*/
|
|
178
|
-
'
|
|
159
|
+
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
179
160
|
/**
|
|
180
|
-
*
|
|
181
|
-
* @see https://
|
|
182
|
-
* @deprecated
|
|
161
|
+
* Disallow using `await` in `Promise` method parameters.
|
|
162
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-in-promise-methods.md
|
|
183
163
|
*/
|
|
184
|
-
'
|
|
164
|
+
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
185
165
|
/**
|
|
186
|
-
*
|
|
187
|
-
* @see https://
|
|
188
|
-
* @deprecated
|
|
166
|
+
* Do not use leading/trailing space between `console.log` parameters.
|
|
167
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-console-spaces.md
|
|
189
168
|
*/
|
|
190
|
-
'
|
|
169
|
+
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
191
170
|
/**
|
|
192
|
-
*
|
|
193
|
-
* @see https://
|
|
171
|
+
* Do not use `document.cookie` directly.
|
|
172
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-document-cookie.md
|
|
194
173
|
*/
|
|
195
|
-
'
|
|
174
|
+
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
196
175
|
/**
|
|
197
|
-
*
|
|
198
|
-
* @see https://
|
|
199
|
-
* @deprecated
|
|
176
|
+
* Disallow empty files.
|
|
177
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-empty-file.md
|
|
200
178
|
*/
|
|
201
|
-
'
|
|
179
|
+
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
202
180
|
/**
|
|
203
|
-
*
|
|
204
|
-
* @
|
|
181
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
182
|
+
* @deprecated
|
|
205
183
|
*/
|
|
206
|
-
'
|
|
184
|
+
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
|
|
207
185
|
/**
|
|
208
|
-
*
|
|
209
|
-
* @see https://
|
|
186
|
+
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
187
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-for-loop.md
|
|
210
188
|
*/
|
|
211
|
-
'
|
|
189
|
+
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
212
190
|
/**
|
|
213
|
-
* Enforce
|
|
214
|
-
* @see https://
|
|
191
|
+
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
192
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-hex-escape.md
|
|
215
193
|
*/
|
|
216
|
-
'
|
|
194
|
+
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
217
195
|
/**
|
|
218
|
-
*
|
|
219
|
-
* @see https://
|
|
196
|
+
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
197
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-instanceof-array.md
|
|
220
198
|
*/
|
|
221
|
-
'
|
|
199
|
+
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
222
200
|
/**
|
|
223
|
-
* Disallow
|
|
224
|
-
* @see https://
|
|
201
|
+
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
202
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-fetch-options.md
|
|
225
203
|
*/
|
|
226
|
-
'
|
|
204
|
+
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
227
205
|
/**
|
|
228
|
-
*
|
|
229
|
-
* @see https://
|
|
206
|
+
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
207
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
230
208
|
*/
|
|
231
|
-
'
|
|
209
|
+
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
232
210
|
/**
|
|
233
|
-
* Disallow
|
|
234
|
-
* @see https://
|
|
211
|
+
* Disallow identifiers starting with `new` or `class`.
|
|
212
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-keyword-prefix.md
|
|
235
213
|
*/
|
|
236
|
-
'
|
|
214
|
+
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
237
215
|
/**
|
|
238
|
-
*
|
|
239
|
-
* @see https://
|
|
216
|
+
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
217
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-lonely-if.md
|
|
240
218
|
*/
|
|
241
|
-
'
|
|
219
|
+
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
242
220
|
/**
|
|
243
|
-
* Disallow
|
|
244
|
-
* @see https://
|
|
221
|
+
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
222
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
245
223
|
*/
|
|
246
|
-
'
|
|
224
|
+
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
247
225
|
/**
|
|
248
|
-
* Disallow
|
|
249
|
-
* @see https://
|
|
226
|
+
* Disallow negated conditions.
|
|
227
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negated-condition.md
|
|
250
228
|
*/
|
|
251
|
-
'
|
|
229
|
+
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
252
230
|
/**
|
|
253
|
-
* Disallow
|
|
254
|
-
* @see https://
|
|
231
|
+
* Disallow negated expression in equality check.
|
|
232
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negation-in-equality-check.md
|
|
255
233
|
*/
|
|
256
|
-
'
|
|
234
|
+
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
257
235
|
/**
|
|
258
|
-
* Disallow
|
|
259
|
-
* @see https://
|
|
236
|
+
* Disallow nested ternary expressions.
|
|
237
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-nested-ternary.md
|
|
260
238
|
*/
|
|
261
|
-
'
|
|
239
|
+
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
262
240
|
/**
|
|
263
|
-
* Disallow
|
|
264
|
-
* @see https://
|
|
241
|
+
* Disallow `new Array()`.
|
|
242
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-array.md
|
|
265
243
|
*/
|
|
266
|
-
'
|
|
244
|
+
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
267
245
|
/**
|
|
268
|
-
*
|
|
269
|
-
* @see https://
|
|
246
|
+
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
247
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-buffer.md
|
|
270
248
|
*/
|
|
271
|
-
'
|
|
249
|
+
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
272
250
|
/**
|
|
273
|
-
* Disallow
|
|
274
|
-
* @see https://
|
|
251
|
+
* Disallow the use of the `null` literal.
|
|
252
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-null.md
|
|
275
253
|
*/
|
|
276
|
-
'
|
|
254
|
+
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
277
255
|
/**
|
|
278
|
-
* Disallow the
|
|
279
|
-
* @see https://
|
|
256
|
+
* Disallow the use of objects as default parameters.
|
|
257
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-object-as-default-parameter.md
|
|
280
258
|
*/
|
|
281
|
-
'
|
|
259
|
+
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
282
260
|
/**
|
|
283
|
-
* Disallow
|
|
284
|
-
* @see https://
|
|
261
|
+
* Disallow `process.exit()`.
|
|
262
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-process-exit.md
|
|
285
263
|
*/
|
|
286
|
-
'
|
|
264
|
+
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
287
265
|
/**
|
|
288
|
-
*
|
|
289
|
-
* @see https://typescript-eslint.io/rules/no-extra-parens
|
|
266
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-reduce
|
|
290
267
|
* @deprecated
|
|
291
268
|
*/
|
|
292
|
-
'
|
|
269
|
+
'unicorn/no-reduce'?: Linter.RuleEntry<[]>
|
|
293
270
|
/**
|
|
294
|
-
* Disallow
|
|
295
|
-
* @see https://
|
|
296
|
-
* @deprecated
|
|
271
|
+
* Disallow passing single-element arrays to `Promise` methods.
|
|
272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
297
273
|
*/
|
|
298
|
-
'
|
|
274
|
+
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
299
275
|
/**
|
|
300
|
-
* Disallow classes
|
|
301
|
-
* @see https://
|
|
276
|
+
* Disallow classes that only have static members.
|
|
277
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-static-only-class.md
|
|
302
278
|
*/
|
|
303
|
-
'
|
|
279
|
+
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
304
280
|
/**
|
|
305
|
-
*
|
|
306
|
-
* @see https://
|
|
281
|
+
* Disallow `then` property.
|
|
282
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-thenable.md
|
|
307
283
|
*/
|
|
308
|
-
'
|
|
284
|
+
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
309
285
|
/**
|
|
310
|
-
* Disallow
|
|
311
|
-
* @see https://
|
|
286
|
+
* Disallow assigning `this` to a variable.
|
|
287
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-this-assignment.md
|
|
312
288
|
*/
|
|
313
|
-
'
|
|
289
|
+
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
314
290
|
/**
|
|
315
|
-
* Disallow
|
|
316
|
-
* @see https://
|
|
291
|
+
* Disallow comparing `undefined` using `typeof`.
|
|
292
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-typeof-undefined.md
|
|
317
293
|
*/
|
|
318
|
-
'
|
|
294
|
+
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
319
295
|
/**
|
|
320
|
-
*
|
|
321
|
-
* @see https://
|
|
296
|
+
* Disallow awaiting non-promise values.
|
|
297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-await.md
|
|
322
298
|
*/
|
|
323
|
-
'
|
|
299
|
+
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
324
300
|
/**
|
|
325
|
-
*
|
|
326
|
-
* @see https://
|
|
301
|
+
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
302
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
327
303
|
*/
|
|
328
|
-
'
|
|
304
|
+
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
329
305
|
/**
|
|
330
|
-
* Disallow
|
|
331
|
-
* @see https://
|
|
306
|
+
* Disallow unreadable array destructuring.
|
|
307
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
332
308
|
*/
|
|
333
|
-
'
|
|
309
|
+
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
334
310
|
/**
|
|
335
|
-
* Disallow
|
|
336
|
-
* @see https://
|
|
311
|
+
* Disallow unreadable IIFEs.
|
|
312
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-iife.md
|
|
337
313
|
*/
|
|
338
|
-
'
|
|
314
|
+
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>
|
|
339
315
|
/**
|
|
340
|
-
*
|
|
341
|
-
* @
|
|
316
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-unsafe-regex
|
|
317
|
+
* @deprecated
|
|
342
318
|
*/
|
|
343
|
-
'
|
|
319
|
+
'unicorn/no-unsafe-regex'?: Linter.RuleEntry<[]>
|
|
344
320
|
/**
|
|
345
|
-
* Disallow
|
|
346
|
-
* @see https://
|
|
321
|
+
* Disallow unused object properties.
|
|
322
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unused-properties.md
|
|
347
323
|
*/
|
|
348
|
-
'
|
|
324
|
+
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>
|
|
349
325
|
/**
|
|
350
|
-
* Disallow
|
|
351
|
-
* @see https://
|
|
326
|
+
* Disallow useless fallback when spreading in object literals.
|
|
327
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
352
328
|
*/
|
|
353
|
-
'
|
|
329
|
+
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>
|
|
354
330
|
/**
|
|
355
|
-
* Disallow
|
|
356
|
-
* @see https://
|
|
331
|
+
* Disallow useless array length check.
|
|
332
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-length-check.md
|
|
357
333
|
*/
|
|
358
|
-
'
|
|
334
|
+
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>
|
|
359
335
|
/**
|
|
360
|
-
*
|
|
361
|
-
* @see https://
|
|
336
|
+
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
337
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
362
338
|
*/
|
|
363
|
-
'
|
|
339
|
+
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>
|
|
364
340
|
/**
|
|
365
|
-
* Disallow
|
|
366
|
-
* @see https://
|
|
341
|
+
* Disallow unnecessary spread.
|
|
342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-spread.md
|
|
367
343
|
*/
|
|
368
|
-
'
|
|
344
|
+
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>
|
|
369
345
|
/**
|
|
370
|
-
* Disallow
|
|
371
|
-
* @see https://
|
|
346
|
+
* Disallow useless case in switch statements.
|
|
347
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-switch-case.md
|
|
372
348
|
*/
|
|
373
|
-
'
|
|
349
|
+
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>
|
|
374
350
|
/**
|
|
375
|
-
* Disallow
|
|
376
|
-
* @see https://
|
|
351
|
+
* Disallow useless `undefined`.
|
|
352
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-undefined.md
|
|
377
353
|
*/
|
|
378
|
-
'
|
|
354
|
+
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>
|
|
379
355
|
/**
|
|
380
|
-
* Disallow
|
|
381
|
-
* @see https://
|
|
356
|
+
* Disallow number literals with zero fractions or dangling dots.
|
|
357
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-zero-fractions.md
|
|
382
358
|
*/
|
|
383
|
-
'
|
|
359
|
+
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>
|
|
384
360
|
/**
|
|
385
|
-
*
|
|
386
|
-
* @see https://
|
|
361
|
+
* Enforce proper case for numeric literals.
|
|
362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/number-literal-case.md
|
|
387
363
|
*/
|
|
388
|
-
'
|
|
364
|
+
'unicorn/number-literal-case'?: Linter.RuleEntry<[]>
|
|
389
365
|
/**
|
|
390
|
-
*
|
|
391
|
-
* @see https://
|
|
366
|
+
* Enforce the style of numeric separators by correctly grouping digits.
|
|
367
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/numeric-separators-style.md
|
|
392
368
|
*/
|
|
393
|
-
'
|
|
369
|
+
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>
|
|
394
370
|
/**
|
|
395
|
-
*
|
|
396
|
-
* @see https://
|
|
371
|
+
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-add-event-listener.md
|
|
397
373
|
*/
|
|
398
|
-
'
|
|
374
|
+
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
399
375
|
/**
|
|
400
|
-
*
|
|
401
|
-
* @see https://
|
|
376
|
+
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
377
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-find.md
|
|
402
378
|
*/
|
|
403
|
-
'
|
|
379
|
+
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
404
380
|
/**
|
|
405
|
-
*
|
|
406
|
-
* @see https://
|
|
381
|
+
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
382
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat.md
|
|
407
383
|
*/
|
|
408
|
-
'
|
|
384
|
+
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
409
385
|
/**
|
|
410
|
-
*
|
|
411
|
-
* @see https://
|
|
386
|
+
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
387
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat-map.md
|
|
412
388
|
*/
|
|
413
|
-
'
|
|
389
|
+
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
414
390
|
/**
|
|
415
|
-
*
|
|
416
|
-
* @see https://
|
|
391
|
+
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
392
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-index-of.md
|
|
417
393
|
*/
|
|
418
|
-
'
|
|
394
|
+
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
419
395
|
/**
|
|
420
|
-
*
|
|
421
|
-
* @see https://
|
|
396
|
+
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
397
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-some.md
|
|
422
398
|
*/
|
|
423
|
-
'
|
|
399
|
+
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
424
400
|
/**
|
|
425
|
-
*
|
|
426
|
-
* @see https://
|
|
427
|
-
* @deprecated
|
|
401
|
+
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
402
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-at.md
|
|
428
403
|
*/
|
|
429
|
-
'
|
|
404
|
+
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
430
405
|
/**
|
|
431
|
-
*
|
|
432
|
-
* @see https://
|
|
433
|
-
* @deprecated
|
|
406
|
+
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
434
408
|
*/
|
|
435
|
-
'
|
|
409
|
+
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
436
410
|
/**
|
|
437
|
-
*
|
|
438
|
-
* @see https://
|
|
411
|
+
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
412
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-code-point.md
|
|
439
413
|
*/
|
|
440
|
-
'
|
|
414
|
+
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
441
415
|
/**
|
|
442
|
-
*
|
|
443
|
-
* @
|
|
416
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
417
|
+
* @deprecated
|
|
444
418
|
*/
|
|
445
|
-
'
|
|
419
|
+
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
|
|
446
420
|
/**
|
|
447
|
-
*
|
|
448
|
-
* @see https://
|
|
421
|
+
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
422
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-date-now.md
|
|
449
423
|
*/
|
|
450
|
-
'
|
|
424
|
+
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
451
425
|
/**
|
|
452
|
-
*
|
|
453
|
-
* @see https://
|
|
426
|
+
* Prefer default parameters over reassignment.
|
|
427
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-default-parameters.md
|
|
454
428
|
*/
|
|
455
|
-
'
|
|
429
|
+
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
456
430
|
/**
|
|
457
|
-
*
|
|
458
|
-
* @see https://
|
|
431
|
+
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
432
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-append.md
|
|
459
433
|
*/
|
|
460
|
-
'
|
|
434
|
+
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
461
435
|
/**
|
|
462
|
-
*
|
|
463
|
-
* @see https://
|
|
436
|
+
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
437
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
464
438
|
*/
|
|
465
|
-
'
|
|
439
|
+
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
466
440
|
/**
|
|
467
|
-
*
|
|
468
|
-
* @see https://
|
|
441
|
+
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
442
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-remove.md
|
|
469
443
|
*/
|
|
470
|
-
'
|
|
444
|
+
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
471
445
|
/**
|
|
472
|
-
*
|
|
473
|
-
* @see https://
|
|
446
|
+
* Prefer `.textContent` over `.innerText`.
|
|
447
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
474
448
|
*/
|
|
475
|
-
'
|
|
449
|
+
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
476
450
|
/**
|
|
477
|
-
*
|
|
478
|
-
* @
|
|
451
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
452
|
+
* @deprecated
|
|
479
453
|
*/
|
|
480
|
-
'
|
|
454
|
+
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
|
|
481
455
|
/**
|
|
482
|
-
*
|
|
483
|
-
* @see https://
|
|
456
|
+
* Prefer `EventTarget` over `EventEmitter`.
|
|
457
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-event-target.md
|
|
484
458
|
*/
|
|
485
|
-
'
|
|
459
|
+
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
486
460
|
/**
|
|
487
|
-
*
|
|
488
|
-
* @
|
|
461
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
462
|
+
* @deprecated
|
|
489
463
|
*/
|
|
490
|
-
'
|
|
464
|
+
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
|
|
491
465
|
/**
|
|
492
|
-
*
|
|
493
|
-
* @see https://
|
|
466
|
+
* Prefer `export…from` when re-exporting.
|
|
467
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-export-from.md
|
|
494
468
|
*/
|
|
495
|
-
'
|
|
469
|
+
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
496
470
|
/**
|
|
497
|
-
*
|
|
498
|
-
* @
|
|
471
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
472
|
+
* @deprecated
|
|
499
473
|
*/
|
|
500
|
-
'
|
|
474
|
+
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
|
|
501
475
|
/**
|
|
502
|
-
*
|
|
503
|
-
* @see https://
|
|
476
|
+
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
477
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-includes.md
|
|
504
478
|
*/
|
|
505
|
-
'
|
|
479
|
+
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
506
480
|
/**
|
|
507
|
-
*
|
|
508
|
-
* @see https://
|
|
481
|
+
* Prefer reading a JSON file as a buffer.
|
|
482
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
509
483
|
*/
|
|
510
|
-
'
|
|
484
|
+
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
511
485
|
/**
|
|
512
|
-
*
|
|
513
|
-
* @see https://
|
|
486
|
+
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
487
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
514
488
|
*/
|
|
515
|
-
'
|
|
489
|
+
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
516
490
|
/**
|
|
517
|
-
*
|
|
518
|
-
* @see https://
|
|
491
|
+
* Prefer using a logical operator over a ternary.
|
|
492
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
519
493
|
*/
|
|
520
|
-
'
|
|
494
|
+
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
521
495
|
/**
|
|
522
|
-
*
|
|
523
|
-
* @see https://
|
|
496
|
+
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
497
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-math-trunc.md
|
|
524
498
|
*/
|
|
525
|
-
'
|
|
499
|
+
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
526
500
|
/**
|
|
527
|
-
*
|
|
528
|
-
* @see https://
|
|
501
|
+
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
502
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
529
503
|
*/
|
|
530
|
-
'
|
|
504
|
+
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
531
505
|
/**
|
|
532
|
-
*
|
|
533
|
-
* @see https://
|
|
506
|
+
* Prefer modern `Math` APIs over legacy patterns.
|
|
507
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-math-apis.md
|
|
534
508
|
*/
|
|
535
|
-
'
|
|
509
|
+
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
536
510
|
/**
|
|
537
|
-
*
|
|
538
|
-
* @see https://
|
|
511
|
+
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
512
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-module.md
|
|
539
513
|
*/
|
|
540
|
-
'
|
|
514
|
+
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
541
515
|
/**
|
|
542
|
-
*
|
|
543
|
-
* @see https://
|
|
516
|
+
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
517
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
544
518
|
*/
|
|
545
|
-
'
|
|
519
|
+
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
546
520
|
/**
|
|
547
|
-
*
|
|
548
|
-
* @see https://
|
|
549
|
-
* @deprecated
|
|
521
|
+
* Prefer negative index over `.length - index` when possible.
|
|
522
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-negative-index.md
|
|
550
523
|
*/
|
|
551
|
-
'
|
|
524
|
+
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
552
525
|
/**
|
|
553
|
-
*
|
|
554
|
-
* @
|
|
526
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
527
|
+
* @deprecated
|
|
555
528
|
*/
|
|
556
|
-
'
|
|
529
|
+
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
|
|
557
530
|
/**
|
|
558
|
-
*
|
|
559
|
-
* @see https://
|
|
531
|
+
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
532
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-node-protocol.md
|
|
560
533
|
*/
|
|
561
|
-
'
|
|
534
|
+
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
562
535
|
/**
|
|
563
|
-
*
|
|
564
|
-
* @see https://typescript-eslint.io/rules/object-curly-spacing
|
|
536
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
565
537
|
* @deprecated
|
|
566
538
|
*/
|
|
567
|
-
'
|
|
539
|
+
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
|
|
568
540
|
/**
|
|
569
|
-
*
|
|
570
|
-
* @see https://
|
|
541
|
+
* Prefer `Number` static properties over global ones.
|
|
542
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-number-properties.md
|
|
571
543
|
*/
|
|
572
|
-
'
|
|
544
|
+
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
573
545
|
/**
|
|
574
|
-
*
|
|
575
|
-
* @see https://
|
|
576
|
-
* @deprecated
|
|
546
|
+
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
547
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-object-from-entries.md
|
|
577
548
|
*/
|
|
578
|
-
'
|
|
549
|
+
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
579
550
|
/**
|
|
580
|
-
*
|
|
581
|
-
* @
|
|
551
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
552
|
+
* @deprecated
|
|
582
553
|
*/
|
|
583
|
-
'
|
|
554
|
+
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
584
555
|
/**
|
|
585
|
-
*
|
|
586
|
-
* @see https://
|
|
556
|
+
* Prefer omitting the `catch` binding parameter.
|
|
557
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
587
558
|
*/
|
|
588
|
-
'
|
|
559
|
+
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
589
560
|
/**
|
|
590
|
-
*
|
|
591
|
-
* @see https://
|
|
561
|
+
* Prefer borrowing methods from the prototype instead of the instance.
|
|
562
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-prototype-methods.md
|
|
592
563
|
*/
|
|
593
|
-
'
|
|
564
|
+
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
594
565
|
/**
|
|
595
|
-
*
|
|
596
|
-
* @see https://
|
|
566
|
+
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
|
|
567
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-query-selector.md
|
|
597
568
|
*/
|
|
598
|
-
'
|
|
569
|
+
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
599
570
|
/**
|
|
600
|
-
*
|
|
601
|
-
* @see https://
|
|
571
|
+
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
572
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-reflect-apply.md
|
|
602
573
|
*/
|
|
603
|
-
'
|
|
574
|
+
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
604
575
|
/**
|
|
605
|
-
*
|
|
606
|
-
* @see https://
|
|
576
|
+
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
577
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-regexp-test.md
|
|
607
578
|
*/
|
|
608
|
-
'
|
|
579
|
+
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
609
580
|
/**
|
|
610
|
-
*
|
|
611
|
-
* @
|
|
581
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
582
|
+
* @deprecated
|
|
612
583
|
*/
|
|
613
|
-
'
|
|
584
|
+
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
|
|
614
585
|
/**
|
|
615
|
-
*
|
|
616
|
-
* @see https://
|
|
586
|
+
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
587
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-has.md
|
|
617
588
|
*/
|
|
618
|
-
'
|
|
589
|
+
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
619
590
|
/**
|
|
620
|
-
*
|
|
621
|
-
* @see https://
|
|
591
|
+
* Prefer using `Set#size` instead of `Array#length`.
|
|
592
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-size.md
|
|
622
593
|
*/
|
|
623
|
-
'
|
|
594
|
+
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
624
595
|
/**
|
|
625
|
-
*
|
|
626
|
-
* @see https://
|
|
596
|
+
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
597
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-spread.md
|
|
627
598
|
*/
|
|
628
|
-
'
|
|
599
|
+
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
629
600
|
/**
|
|
630
|
-
*
|
|
631
|
-
* @
|
|
601
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
602
|
+
* @deprecated
|
|
632
603
|
*/
|
|
633
|
-
'
|
|
604
|
+
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
634
605
|
/**
|
|
635
|
-
*
|
|
636
|
-
* @see https://
|
|
606
|
+
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
607
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-raw.md
|
|
637
608
|
*/
|
|
638
|
-
'
|
|
609
|
+
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
639
610
|
/**
|
|
640
|
-
*
|
|
641
|
-
* @see https://
|
|
611
|
+
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
612
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-replace-all.md
|
|
642
613
|
*/
|
|
643
|
-
'
|
|
614
|
+
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
644
615
|
/**
|
|
645
|
-
*
|
|
646
|
-
* @see https://
|
|
616
|
+
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
617
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-slice.md
|
|
647
618
|
*/
|
|
648
|
-
'
|
|
619
|
+
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
649
620
|
/**
|
|
650
|
-
*
|
|
651
|
-
* @see https://
|
|
621
|
+
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
622
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
652
623
|
*/
|
|
653
|
-
'
|
|
624
|
+
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
654
625
|
/**
|
|
655
|
-
*
|
|
656
|
-
* @see https://
|
|
626
|
+
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
627
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
657
628
|
*/
|
|
658
|
-
'
|
|
629
|
+
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
659
630
|
/**
|
|
660
|
-
*
|
|
661
|
-
* @see https://
|
|
631
|
+
* Prefer using `structuredClone` to create a deep clone.
|
|
632
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-structured-clone.md
|
|
662
633
|
*/
|
|
663
|
-
'
|
|
634
|
+
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
664
635
|
/**
|
|
665
|
-
*
|
|
666
|
-
* @see https://
|
|
636
|
+
* Prefer `switch` over multiple `else-if`.
|
|
637
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-switch.md
|
|
667
638
|
*/
|
|
668
|
-
'
|
|
639
|
+
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
669
640
|
/**
|
|
670
|
-
*
|
|
671
|
-
* @see https://
|
|
641
|
+
* Prefer ternary expressions over simple `if-else` statements.
|
|
642
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-ternary.md
|
|
672
643
|
*/
|
|
673
|
-
'
|
|
644
|
+
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
674
645
|
/**
|
|
675
|
-
*
|
|
676
|
-
* @see https://typescript-eslint.io/rules/prefer-ts-expect-error
|
|
646
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
677
647
|
* @deprecated
|
|
678
648
|
*/
|
|
679
|
-
'
|
|
649
|
+
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
|
|
680
650
|
/**
|
|
681
|
-
*
|
|
682
|
-
* @see https://
|
|
651
|
+
* Prefer top-level await over top-level promises and async function calls.
|
|
652
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-top-level-await.md
|
|
683
653
|
*/
|
|
684
|
-
'
|
|
654
|
+
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
685
655
|
/**
|
|
686
|
-
*
|
|
687
|
-
* @see https://typescript-eslint.io/rules/quotes
|
|
656
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
688
657
|
* @deprecated
|
|
689
658
|
*/
|
|
690
|
-
'
|
|
659
|
+
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
|
|
691
660
|
/**
|
|
692
|
-
*
|
|
693
|
-
* @see https://
|
|
661
|
+
* Enforce throwing `TypeError` in type checking conditions.
|
|
662
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-type-error.md
|
|
694
663
|
*/
|
|
695
|
-
'
|
|
664
|
+
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
696
665
|
/**
|
|
697
|
-
*
|
|
698
|
-
* @see https://
|
|
666
|
+
* Prevent abbreviations.
|
|
667
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prevent-abbreviations.md
|
|
699
668
|
*/
|
|
700
|
-
'
|
|
669
|
+
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
701
670
|
/**
|
|
702
|
-
*
|
|
703
|
-
* @
|
|
671
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
672
|
+
* @deprecated
|
|
704
673
|
*/
|
|
705
|
-
'
|
|
674
|
+
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
|
|
706
675
|
/**
|
|
707
|
-
* Enforce
|
|
708
|
-
* @see https://
|
|
676
|
+
* Enforce consistent relative URL style.
|
|
677
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/relative-url-style.md
|
|
709
678
|
*/
|
|
710
|
-
'
|
|
679
|
+
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
711
680
|
/**
|
|
712
|
-
* Enforce
|
|
713
|
-
* @see https://
|
|
681
|
+
* Enforce using the separator argument with `Array#join()`.
|
|
682
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-array-join-separator.md
|
|
714
683
|
*/
|
|
715
|
-
'
|
|
684
|
+
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
716
685
|
/**
|
|
717
|
-
*
|
|
718
|
-
* @see https://
|
|
719
|
-
* @deprecated
|
|
686
|
+
* Enforce using the digits argument with `Number#toFixed()`.
|
|
687
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
720
688
|
*/
|
|
721
|
-
'
|
|
689
|
+
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
722
690
|
/**
|
|
723
|
-
* Enforce
|
|
724
|
-
* @see https://
|
|
725
|
-
* @deprecated
|
|
691
|
+
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
692
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-post-message-target-origin.md
|
|
726
693
|
*/
|
|
727
|
-
'
|
|
694
|
+
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
728
695
|
/**
|
|
729
|
-
* Enforce
|
|
730
|
-
* @see https://
|
|
731
|
-
* @deprecated
|
|
696
|
+
* Enforce better string content.
|
|
697
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/string-content.md
|
|
732
698
|
*/
|
|
733
|
-
'
|
|
699
|
+
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
734
700
|
/**
|
|
735
|
-
* Enforce consistent
|
|
736
|
-
* @see https://
|
|
737
|
-
* @deprecated
|
|
701
|
+
* Enforce consistent brace style for `case` clauses.
|
|
702
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/switch-case-braces.md
|
|
738
703
|
*/
|
|
739
|
-
'
|
|
704
|
+
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
740
705
|
/**
|
|
741
|
-
*
|
|
742
|
-
* @see https://
|
|
743
|
-
* @deprecated
|
|
706
|
+
* Fix whitespace-insensitive template indentation.
|
|
707
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/template-indent.md
|
|
744
708
|
*/
|
|
745
|
-
'
|
|
709
|
+
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
746
710
|
/**
|
|
747
|
-
*
|
|
748
|
-
* @see https://
|
|
711
|
+
* Enforce consistent case for text encoding identifiers.
|
|
712
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/text-encoding-identifier-case.md
|
|
749
713
|
*/
|
|
750
|
-
'
|
|
714
|
+
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
751
715
|
/**
|
|
752
|
-
* Require
|
|
753
|
-
* @see https://
|
|
716
|
+
* Require `new` when creating an error.
|
|
717
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/throw-new-error.md
|
|
754
718
|
*/
|
|
755
|
-
'
|
|
719
|
+
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
756
720
|
/**
|
|
757
|
-
*
|
|
758
|
-
* @see https://
|
|
721
|
+
* require or disallow block style mappings.
|
|
722
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/block-mapping.html
|
|
759
723
|
*/
|
|
760
|
-
'
|
|
724
|
+
'yml/block-mapping'?: Linter.RuleEntry<YmlBlockMapping>
|
|
761
725
|
/**
|
|
762
|
-
*
|
|
763
|
-
* @see https://
|
|
764
|
-
* @deprecated
|
|
726
|
+
* enforce consistent line breaks after `:` indicator
|
|
727
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/block-mapping-colon-indicator-newline.html
|
|
765
728
|
*/
|
|
766
|
-
'
|
|
729
|
+
'yml/block-mapping-colon-indicator-newline'?: Linter.RuleEntry<YmlBlockMappingColonIndicatorNewline>
|
|
767
730
|
/**
|
|
768
|
-
*
|
|
769
|
-
* @see https://
|
|
731
|
+
* enforce consistent line breaks after `?` indicator
|
|
732
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/block-mapping-question-indicator-newline.html
|
|
770
733
|
*/
|
|
771
|
-
'
|
|
734
|
+
'yml/block-mapping-question-indicator-newline'?: Linter.RuleEntry<YmlBlockMappingQuestionIndicatorNewline>
|
|
772
735
|
/**
|
|
773
|
-
*
|
|
774
|
-
* @see https://
|
|
736
|
+
* require or disallow block style sequences.
|
|
737
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/block-sequence.html
|
|
775
738
|
*/
|
|
776
|
-
'
|
|
739
|
+
'yml/block-sequence'?: Linter.RuleEntry<YmlBlockSequence>
|
|
777
740
|
/**
|
|
778
|
-
*
|
|
779
|
-
* @see https://
|
|
741
|
+
* enforce consistent line breaks after `-` indicator
|
|
742
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/block-sequence-hyphen-indicator-newline.html
|
|
780
743
|
*/
|
|
781
|
-
'
|
|
744
|
+
'yml/block-sequence-hyphen-indicator-newline'?: Linter.RuleEntry<YmlBlockSequenceHyphenIndicatorNewline>
|
|
782
745
|
/**
|
|
783
|
-
*
|
|
784
|
-
* @see https://
|
|
746
|
+
* enforce YAML file extension
|
|
747
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/file-extension.html
|
|
785
748
|
*/
|
|
786
|
-
'
|
|
749
|
+
'yml/file-extension'?: Linter.RuleEntry<YmlFileExtension>
|
|
787
750
|
/**
|
|
788
|
-
*
|
|
789
|
-
* @see https://
|
|
751
|
+
* enforce consistent line breaks inside braces
|
|
752
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/flow-mapping-curly-newline.html
|
|
790
753
|
*/
|
|
791
|
-
'
|
|
754
|
+
'yml/flow-mapping-curly-newline'?: Linter.RuleEntry<YmlFlowMappingCurlyNewline>
|
|
792
755
|
/**
|
|
793
|
-
*
|
|
756
|
+
* enforce consistent spacing inside braces
|
|
757
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/flow-mapping-curly-spacing.html
|
|
794
758
|
*/
|
|
795
|
-
'
|
|
759
|
+
'yml/flow-mapping-curly-spacing'?: Linter.RuleEntry<YmlFlowMappingCurlySpacing>
|
|
796
760
|
/**
|
|
797
|
-
*
|
|
798
|
-
* @see https://
|
|
761
|
+
* enforce linebreaks after opening and before closing flow sequence brackets
|
|
762
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/flow-sequence-bracket-newline.html
|
|
799
763
|
*/
|
|
800
|
-
'
|
|
764
|
+
'yml/flow-sequence-bracket-newline'?: Linter.RuleEntry<YmlFlowSequenceBracketNewline>
|
|
801
765
|
/**
|
|
802
|
-
*
|
|
803
|
-
* @see https://github.
|
|
766
|
+
* enforce consistent spacing inside flow sequence brackets
|
|
767
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/flow-sequence-bracket-spacing.html
|
|
804
768
|
*/
|
|
805
|
-
'
|
|
769
|
+
'yml/flow-sequence-bracket-spacing'?: Linter.RuleEntry<YmlFlowSequenceBracketSpacing>
|
|
806
770
|
/**
|
|
807
|
-
*
|
|
808
|
-
* @see https://github.
|
|
771
|
+
* enforce consistent indentation
|
|
772
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/indent.html
|
|
809
773
|
*/
|
|
810
|
-
'
|
|
774
|
+
'yml/indent'?: Linter.RuleEntry<YmlIndent>
|
|
811
775
|
/**
|
|
812
|
-
*
|
|
813
|
-
* @see https://github.
|
|
776
|
+
* enforce naming convention to key names
|
|
777
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/key-name-casing.html
|
|
814
778
|
*/
|
|
815
|
-
'
|
|
779
|
+
'yml/key-name-casing'?: Linter.RuleEntry<YmlKeyNameCasing>
|
|
816
780
|
/**
|
|
817
|
-
*
|
|
818
|
-
* @see https://github.
|
|
781
|
+
* enforce consistent spacing between keys and values in mapping pairs
|
|
782
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/key-spacing.html
|
|
819
783
|
*/
|
|
820
|
-
'
|
|
784
|
+
'yml/key-spacing'?: Linter.RuleEntry<YmlKeySpacing>
|
|
821
785
|
/**
|
|
822
|
-
*
|
|
823
|
-
* @see https://github.
|
|
786
|
+
* disallow empty document
|
|
787
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-empty-document.html
|
|
824
788
|
*/
|
|
825
|
-
'
|
|
789
|
+
'yml/no-empty-document'?: Linter.RuleEntry<[]>
|
|
826
790
|
/**
|
|
827
|
-
*
|
|
828
|
-
* @see https://github.
|
|
791
|
+
* disallow empty mapping keys
|
|
792
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-empty-key.html
|
|
829
793
|
*/
|
|
830
|
-
'
|
|
794
|
+
'yml/no-empty-key'?: Linter.RuleEntry<[]>
|
|
831
795
|
/**
|
|
832
|
-
*
|
|
833
|
-
* @see https://github.
|
|
796
|
+
* disallow empty mapping values
|
|
797
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-empty-mapping-value.html
|
|
834
798
|
*/
|
|
835
|
-
'
|
|
836
|
-
/**
|
|
837
|
-
* Enforce passing a `message` value when creating a built-in error.
|
|
838
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/error-message.md
|
|
839
|
-
*/
|
|
840
|
-
'unicorn/error-message'?: Linter.RuleEntry<[]>
|
|
841
|
-
/**
|
|
842
|
-
* Require escape sequences to use uppercase values.
|
|
843
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/escape-case.md
|
|
844
|
-
*/
|
|
845
|
-
'unicorn/escape-case'?: Linter.RuleEntry<[]>
|
|
846
|
-
/**
|
|
847
|
-
* Add expiration conditions to TODO comments.
|
|
848
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/expiring-todo-comments.md
|
|
849
|
-
*/
|
|
850
|
-
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>
|
|
851
|
-
/**
|
|
852
|
-
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
853
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/explicit-length-check.md
|
|
854
|
-
*/
|
|
855
|
-
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>
|
|
856
|
-
/**
|
|
857
|
-
* Enforce a case style for filenames.
|
|
858
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/filename-case.md
|
|
859
|
-
*/
|
|
860
|
-
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>
|
|
861
|
-
/**
|
|
862
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#import-index
|
|
863
|
-
* @deprecated
|
|
864
|
-
*/
|
|
865
|
-
'unicorn/import-index'?: Linter.RuleEntry<[]>
|
|
866
|
-
/**
|
|
867
|
-
* Enforce specific import styles per module.
|
|
868
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/import-style.md
|
|
869
|
-
*/
|
|
870
|
-
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>
|
|
871
|
-
/**
|
|
872
|
-
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
873
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/new-for-builtins.md
|
|
874
|
-
*/
|
|
875
|
-
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>
|
|
876
|
-
/**
|
|
877
|
-
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
878
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
879
|
-
*/
|
|
880
|
-
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>
|
|
881
|
-
/**
|
|
882
|
-
* Disallow anonymous functions and classes as the default export.
|
|
883
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-anonymous-default-export.md
|
|
884
|
-
*/
|
|
885
|
-
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>
|
|
886
|
-
/**
|
|
887
|
-
* Prevent passing a function reference directly to iterator methods.
|
|
888
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-callback-reference.md
|
|
889
|
-
*/
|
|
890
|
-
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<[]>
|
|
891
|
-
/**
|
|
892
|
-
* Prefer `for…of` over the `forEach` method.
|
|
893
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-for-each.md
|
|
894
|
-
*/
|
|
895
|
-
'unicorn/no-array-for-each'?: Linter.RuleEntry<[]>
|
|
896
|
-
/**
|
|
897
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
898
|
-
* @deprecated
|
|
899
|
-
*/
|
|
900
|
-
'unicorn/no-array-instanceof'?: Linter.RuleEntry<[]>
|
|
901
|
-
/**
|
|
902
|
-
* Disallow using the `this` argument in array methods.
|
|
903
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-method-this-argument.md
|
|
904
|
-
*/
|
|
905
|
-
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>
|
|
906
|
-
/**
|
|
907
|
-
* Enforce combining multiple `Array#push()` into one call.
|
|
908
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-push-push.md
|
|
909
|
-
*/
|
|
910
|
-
'unicorn/no-array-push-push'?: Linter.RuleEntry<UnicornNoArrayPushPush>
|
|
911
|
-
/**
|
|
912
|
-
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
913
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-reduce.md
|
|
914
|
-
*/
|
|
915
|
-
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>
|
|
916
|
-
/**
|
|
917
|
-
* Disallow member access from await expression.
|
|
918
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-expression-member.md
|
|
919
|
-
*/
|
|
920
|
-
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>
|
|
921
|
-
/**
|
|
922
|
-
* Disallow using `await` in `Promise` method parameters.
|
|
923
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-in-promise-methods.md
|
|
924
|
-
*/
|
|
925
|
-
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
926
|
-
/**
|
|
927
|
-
* Do not use leading/trailing space between `console.log` parameters.
|
|
928
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-console-spaces.md
|
|
929
|
-
*/
|
|
930
|
-
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>
|
|
931
|
-
/**
|
|
932
|
-
* Do not use `document.cookie` directly.
|
|
933
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-document-cookie.md
|
|
934
|
-
*/
|
|
935
|
-
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>
|
|
936
|
-
/**
|
|
937
|
-
* Disallow empty files.
|
|
938
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-empty-file.md
|
|
939
|
-
*/
|
|
940
|
-
'unicorn/no-empty-file'?: Linter.RuleEntry<[]>
|
|
941
|
-
/**
|
|
942
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
943
|
-
* @deprecated
|
|
944
|
-
*/
|
|
945
|
-
'unicorn/no-fn-reference-in-iterator'?: Linter.RuleEntry<[]>
|
|
946
|
-
/**
|
|
947
|
-
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
948
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-for-loop.md
|
|
949
|
-
*/
|
|
950
|
-
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>
|
|
951
|
-
/**
|
|
952
|
-
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
953
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-hex-escape.md
|
|
954
|
-
*/
|
|
955
|
-
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>
|
|
956
|
-
/**
|
|
957
|
-
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
958
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-instanceof-array.md
|
|
959
|
-
*/
|
|
960
|
-
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>
|
|
961
|
-
/**
|
|
962
|
-
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
963
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-fetch-options.md
|
|
964
|
-
*/
|
|
965
|
-
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>
|
|
966
|
-
/**
|
|
967
|
-
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
968
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
969
|
-
*/
|
|
970
|
-
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>
|
|
971
|
-
/**
|
|
972
|
-
* Disallow identifiers starting with `new` or `class`.
|
|
973
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-keyword-prefix.md
|
|
974
|
-
*/
|
|
975
|
-
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>
|
|
976
|
-
/**
|
|
977
|
-
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
978
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-lonely-if.md
|
|
979
|
-
*/
|
|
980
|
-
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>
|
|
981
|
-
/**
|
|
982
|
-
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
983
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
984
|
-
*/
|
|
985
|
-
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>
|
|
986
|
-
/**
|
|
987
|
-
* Disallow negated conditions.
|
|
988
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negated-condition.md
|
|
989
|
-
*/
|
|
990
|
-
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>
|
|
991
|
-
/**
|
|
992
|
-
* Disallow negated expression in equality check.
|
|
993
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negation-in-equality-check.md
|
|
994
|
-
*/
|
|
995
|
-
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>
|
|
996
|
-
/**
|
|
997
|
-
* Disallow nested ternary expressions.
|
|
998
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-nested-ternary.md
|
|
999
|
-
*/
|
|
1000
|
-
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>
|
|
1001
|
-
/**
|
|
1002
|
-
* Disallow `new Array()`.
|
|
1003
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-array.md
|
|
1004
|
-
*/
|
|
1005
|
-
'unicorn/no-new-array'?: Linter.RuleEntry<[]>
|
|
1006
|
-
/**
|
|
1007
|
-
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
1008
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-buffer.md
|
|
1009
|
-
*/
|
|
1010
|
-
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>
|
|
1011
|
-
/**
|
|
1012
|
-
* Disallow the use of the `null` literal.
|
|
1013
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-null.md
|
|
1014
|
-
*/
|
|
1015
|
-
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>
|
|
1016
|
-
/**
|
|
1017
|
-
* Disallow the use of objects as default parameters.
|
|
1018
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-object-as-default-parameter.md
|
|
1019
|
-
*/
|
|
1020
|
-
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>
|
|
1021
|
-
/**
|
|
1022
|
-
* Disallow `process.exit()`.
|
|
1023
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-process-exit.md
|
|
1024
|
-
*/
|
|
1025
|
-
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>
|
|
1026
|
-
/**
|
|
1027
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-reduce
|
|
1028
|
-
* @deprecated
|
|
1029
|
-
*/
|
|
1030
|
-
'unicorn/no-reduce'?: Linter.RuleEntry<[]>
|
|
1031
|
-
/**
|
|
1032
|
-
* Disallow passing single-element arrays to `Promise` methods.
|
|
1033
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
1034
|
-
*/
|
|
1035
|
-
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>
|
|
1036
|
-
/**
|
|
1037
|
-
* Disallow classes that only have static members.
|
|
1038
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-static-only-class.md
|
|
1039
|
-
*/
|
|
1040
|
-
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>
|
|
1041
|
-
/**
|
|
1042
|
-
* Disallow `then` property.
|
|
1043
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-thenable.md
|
|
1044
|
-
*/
|
|
1045
|
-
'unicorn/no-thenable'?: Linter.RuleEntry<[]>
|
|
1046
|
-
/**
|
|
1047
|
-
* Disallow assigning `this` to a variable.
|
|
1048
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-this-assignment.md
|
|
1049
|
-
*/
|
|
1050
|
-
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>
|
|
1051
|
-
/**
|
|
1052
|
-
* Disallow comparing `undefined` using `typeof`.
|
|
1053
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-typeof-undefined.md
|
|
1054
|
-
*/
|
|
1055
|
-
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>
|
|
1056
|
-
/**
|
|
1057
|
-
* Disallow awaiting non-promise values.
|
|
1058
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-await.md
|
|
1059
|
-
*/
|
|
1060
|
-
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>
|
|
1061
|
-
/**
|
|
1062
|
-
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
1063
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
1064
|
-
*/
|
|
1065
|
-
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>
|
|
1066
|
-
/**
|
|
1067
|
-
* Disallow unreadable array destructuring.
|
|
1068
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
1069
|
-
*/
|
|
1070
|
-
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<[]>
|
|
799
|
+
'yml/no-empty-mapping-value'?: Linter.RuleEntry<[]>
|
|
1071
800
|
/**
|
|
1072
|
-
*
|
|
1073
|
-
* @see https://github.
|
|
801
|
+
* disallow empty sequence entries
|
|
802
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-empty-sequence-entry.html
|
|
1074
803
|
*/
|
|
1075
|
-
'
|
|
804
|
+
'yml/no-empty-sequence-entry'?: Linter.RuleEntry<[]>
|
|
1076
805
|
/**
|
|
1077
|
-
*
|
|
1078
|
-
* @
|
|
806
|
+
* disallow irregular whitespace
|
|
807
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-irregular-whitespace.html
|
|
1079
808
|
*/
|
|
1080
|
-
'
|
|
809
|
+
'yml/no-irregular-whitespace'?: Linter.RuleEntry<YmlNoIrregularWhitespace>
|
|
1081
810
|
/**
|
|
1082
|
-
*
|
|
1083
|
-
* @see https://github.
|
|
811
|
+
* disallow multiple empty lines
|
|
812
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-multiple-empty-lines.html
|
|
1084
813
|
*/
|
|
1085
|
-
'
|
|
814
|
+
'yml/no-multiple-empty-lines'?: Linter.RuleEntry<YmlNoMultipleEmptyLines>
|
|
1086
815
|
/**
|
|
1087
|
-
*
|
|
1088
|
-
* @see https://github.
|
|
1089
|
-
*/
|
|
1090
|
-
'
|
|
1091
|
-
/**
|
|
1092
|
-
*
|
|
1093
|
-
* @see https://github.
|
|
1094
|
-
*/
|
|
1095
|
-
'
|
|
1096
|
-
/**
|
|
1097
|
-
*
|
|
1098
|
-
* @see https://github.
|
|
1099
|
-
*/
|
|
1100
|
-
'
|
|
1101
|
-
/**
|
|
1102
|
-
*
|
|
1103
|
-
* @see https://github.
|
|
1104
|
-
*/
|
|
1105
|
-
'
|
|
1106
|
-
/**
|
|
1107
|
-
*
|
|
1108
|
-
* @see https://github.
|
|
1109
|
-
*/
|
|
1110
|
-
'
|
|
1111
|
-
/**
|
|
1112
|
-
*
|
|
1113
|
-
* @see https://github.
|
|
1114
|
-
*/
|
|
1115
|
-
'
|
|
1116
|
-
/**
|
|
1117
|
-
*
|
|
1118
|
-
* @see https://github.
|
|
1119
|
-
*/
|
|
1120
|
-
'
|
|
1121
|
-
/**
|
|
1122
|
-
*
|
|
1123
|
-
* @see https://github.
|
|
1124
|
-
*/
|
|
1125
|
-
'
|
|
1126
|
-
/**
|
|
1127
|
-
*
|
|
1128
|
-
* @see https://github.
|
|
1129
|
-
*/
|
|
1130
|
-
'
|
|
1131
|
-
/**
|
|
1132
|
-
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
1133
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-add-event-listener.md
|
|
1134
|
-
*/
|
|
1135
|
-
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>
|
|
1136
|
-
/**
|
|
1137
|
-
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
1138
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-find.md
|
|
1139
|
-
*/
|
|
1140
|
-
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>
|
|
1141
|
-
/**
|
|
1142
|
-
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
1143
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat.md
|
|
1144
|
-
*/
|
|
1145
|
-
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>
|
|
1146
|
-
/**
|
|
1147
|
-
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
1148
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat-map.md
|
|
1149
|
-
*/
|
|
1150
|
-
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>
|
|
1151
|
-
/**
|
|
1152
|
-
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
1153
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-index-of.md
|
|
1154
|
-
*/
|
|
1155
|
-
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>
|
|
1156
|
-
/**
|
|
1157
|
-
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
1158
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-some.md
|
|
1159
|
-
*/
|
|
1160
|
-
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>
|
|
1161
|
-
/**
|
|
1162
|
-
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
1163
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-at.md
|
|
1164
|
-
*/
|
|
1165
|
-
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>
|
|
1166
|
-
/**
|
|
1167
|
-
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
1168
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
1169
|
-
*/
|
|
1170
|
-
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>
|
|
1171
|
-
/**
|
|
1172
|
-
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
1173
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-code-point.md
|
|
1174
|
-
*/
|
|
1175
|
-
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>
|
|
1176
|
-
/**
|
|
1177
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
1178
|
-
* @deprecated
|
|
1179
|
-
*/
|
|
1180
|
-
'unicorn/prefer-dataset'?: Linter.RuleEntry<[]>
|
|
1181
|
-
/**
|
|
1182
|
-
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
1183
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-date-now.md
|
|
1184
|
-
*/
|
|
1185
|
-
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>
|
|
1186
|
-
/**
|
|
1187
|
-
* Prefer default parameters over reassignment.
|
|
1188
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-default-parameters.md
|
|
1189
|
-
*/
|
|
1190
|
-
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>
|
|
1191
|
-
/**
|
|
1192
|
-
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
1193
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-append.md
|
|
1194
|
-
*/
|
|
1195
|
-
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>
|
|
1196
|
-
/**
|
|
1197
|
-
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
1198
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
1199
|
-
*/
|
|
1200
|
-
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>
|
|
1201
|
-
/**
|
|
1202
|
-
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
1203
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-remove.md
|
|
1204
|
-
*/
|
|
1205
|
-
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>
|
|
1206
|
-
/**
|
|
1207
|
-
* Prefer `.textContent` over `.innerText`.
|
|
1208
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
1209
|
-
*/
|
|
1210
|
-
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>
|
|
1211
|
-
/**
|
|
1212
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
1213
|
-
* @deprecated
|
|
1214
|
-
*/
|
|
1215
|
-
'unicorn/prefer-event-key'?: Linter.RuleEntry<[]>
|
|
1216
|
-
/**
|
|
1217
|
-
* Prefer `EventTarget` over `EventEmitter`.
|
|
1218
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-event-target.md
|
|
1219
|
-
*/
|
|
1220
|
-
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>
|
|
1221
|
-
/**
|
|
1222
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
1223
|
-
* @deprecated
|
|
1224
|
-
*/
|
|
1225
|
-
'unicorn/prefer-exponentiation-operator'?: Linter.RuleEntry<[]>
|
|
1226
|
-
/**
|
|
1227
|
-
* Prefer `export…from` when re-exporting.
|
|
1228
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-export-from.md
|
|
1229
|
-
*/
|
|
1230
|
-
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>
|
|
1231
|
-
/**
|
|
1232
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
1233
|
-
* @deprecated
|
|
1234
|
-
*/
|
|
1235
|
-
'unicorn/prefer-flat-map'?: Linter.RuleEntry<[]>
|
|
1236
|
-
/**
|
|
1237
|
-
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
1238
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-includes.md
|
|
1239
|
-
*/
|
|
1240
|
-
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>
|
|
1241
|
-
/**
|
|
1242
|
-
* Prefer reading a JSON file as a buffer.
|
|
1243
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
1244
|
-
*/
|
|
1245
|
-
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>
|
|
1246
|
-
/**
|
|
1247
|
-
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
1248
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
1249
|
-
*/
|
|
1250
|
-
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>
|
|
1251
|
-
/**
|
|
1252
|
-
* Prefer using a logical operator over a ternary.
|
|
1253
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
1254
|
-
*/
|
|
1255
|
-
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>
|
|
1256
|
-
/**
|
|
1257
|
-
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
1258
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-math-trunc.md
|
|
1259
|
-
*/
|
|
1260
|
-
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>
|
|
1261
|
-
/**
|
|
1262
|
-
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
1263
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
1264
|
-
*/
|
|
1265
|
-
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>
|
|
1266
|
-
/**
|
|
1267
|
-
* Prefer modern `Math` APIs over legacy patterns.
|
|
1268
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-math-apis.md
|
|
1269
|
-
*/
|
|
1270
|
-
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>
|
|
1271
|
-
/**
|
|
1272
|
-
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
1273
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-module.md
|
|
1274
|
-
*/
|
|
1275
|
-
'unicorn/prefer-module'?: Linter.RuleEntry<[]>
|
|
1276
|
-
/**
|
|
1277
|
-
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
1278
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
1279
|
-
*/
|
|
1280
|
-
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>
|
|
1281
|
-
/**
|
|
1282
|
-
* Prefer negative index over `.length - index` when possible.
|
|
1283
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-negative-index.md
|
|
1284
|
-
*/
|
|
1285
|
-
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>
|
|
1286
|
-
/**
|
|
1287
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
1288
|
-
* @deprecated
|
|
1289
|
-
*/
|
|
1290
|
-
'unicorn/prefer-node-append'?: Linter.RuleEntry<[]>
|
|
1291
|
-
/**
|
|
1292
|
-
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
1293
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-node-protocol.md
|
|
1294
|
-
*/
|
|
1295
|
-
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>
|
|
1296
|
-
/**
|
|
1297
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
1298
|
-
* @deprecated
|
|
1299
|
-
*/
|
|
1300
|
-
'unicorn/prefer-node-remove'?: Linter.RuleEntry<[]>
|
|
1301
|
-
/**
|
|
1302
|
-
* Prefer `Number` static properties over global ones.
|
|
1303
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-number-properties.md
|
|
1304
|
-
*/
|
|
1305
|
-
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>
|
|
1306
|
-
/**
|
|
1307
|
-
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
1308
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-object-from-entries.md
|
|
1309
|
-
*/
|
|
1310
|
-
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>
|
|
1311
|
-
/**
|
|
1312
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
1313
|
-
* @deprecated
|
|
1314
|
-
*/
|
|
1315
|
-
'unicorn/prefer-object-has-own'?: Linter.RuleEntry<[]>
|
|
1316
|
-
/**
|
|
1317
|
-
* Prefer omitting the `catch` binding parameter.
|
|
1318
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
1319
|
-
*/
|
|
1320
|
-
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>
|
|
1321
|
-
/**
|
|
1322
|
-
* Prefer borrowing methods from the prototype instead of the instance.
|
|
1323
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-prototype-methods.md
|
|
1324
|
-
*/
|
|
1325
|
-
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>
|
|
1326
|
-
/**
|
|
1327
|
-
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
|
|
1328
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-query-selector.md
|
|
1329
|
-
*/
|
|
1330
|
-
'unicorn/prefer-query-selector'?: Linter.RuleEntry<[]>
|
|
1331
|
-
/**
|
|
1332
|
-
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
1333
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-reflect-apply.md
|
|
1334
|
-
*/
|
|
1335
|
-
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>
|
|
1336
|
-
/**
|
|
1337
|
-
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
1338
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-regexp-test.md
|
|
1339
|
-
*/
|
|
1340
|
-
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>
|
|
1341
|
-
/**
|
|
1342
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
1343
|
-
* @deprecated
|
|
1344
|
-
*/
|
|
1345
|
-
'unicorn/prefer-replace-all'?: Linter.RuleEntry<[]>
|
|
1346
|
-
/**
|
|
1347
|
-
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
1348
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-has.md
|
|
1349
|
-
*/
|
|
1350
|
-
'unicorn/prefer-set-has'?: Linter.RuleEntry<[]>
|
|
1351
|
-
/**
|
|
1352
|
-
* Prefer using `Set#size` instead of `Array#length`.
|
|
1353
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-size.md
|
|
1354
|
-
*/
|
|
1355
|
-
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>
|
|
1356
|
-
/**
|
|
1357
|
-
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
1358
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-spread.md
|
|
1359
|
-
*/
|
|
1360
|
-
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>
|
|
1361
|
-
/**
|
|
1362
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
1363
|
-
* @deprecated
|
|
1364
|
-
*/
|
|
1365
|
-
'unicorn/prefer-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
1366
|
-
/**
|
|
1367
|
-
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
1368
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-raw.md
|
|
1369
|
-
*/
|
|
1370
|
-
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>
|
|
1371
|
-
/**
|
|
1372
|
-
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
1373
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-replace-all.md
|
|
1374
|
-
*/
|
|
1375
|
-
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>
|
|
1376
|
-
/**
|
|
1377
|
-
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
1378
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-slice.md
|
|
1379
|
-
*/
|
|
1380
|
-
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>
|
|
1381
|
-
/**
|
|
1382
|
-
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
1383
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
1384
|
-
*/
|
|
1385
|
-
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>
|
|
1386
|
-
/**
|
|
1387
|
-
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
1388
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
1389
|
-
*/
|
|
1390
|
-
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>
|
|
1391
|
-
/**
|
|
1392
|
-
* Prefer using `structuredClone` to create a deep clone.
|
|
1393
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-structured-clone.md
|
|
1394
|
-
*/
|
|
1395
|
-
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>
|
|
1396
|
-
/**
|
|
1397
|
-
* Prefer `switch` over multiple `else-if`.
|
|
1398
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-switch.md
|
|
1399
|
-
*/
|
|
1400
|
-
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>
|
|
1401
|
-
/**
|
|
1402
|
-
* Prefer ternary expressions over simple `if-else` statements.
|
|
1403
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-ternary.md
|
|
1404
|
-
*/
|
|
1405
|
-
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>
|
|
1406
|
-
/**
|
|
1407
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
1408
|
-
* @deprecated
|
|
1409
|
-
*/
|
|
1410
|
-
'unicorn/prefer-text-content'?: Linter.RuleEntry<[]>
|
|
1411
|
-
/**
|
|
1412
|
-
* Prefer top-level await over top-level promises and async function calls.
|
|
1413
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-top-level-await.md
|
|
1414
|
-
*/
|
|
1415
|
-
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>
|
|
1416
|
-
/**
|
|
1417
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
1418
|
-
* @deprecated
|
|
1419
|
-
*/
|
|
1420
|
-
'unicorn/prefer-trim-start-end'?: Linter.RuleEntry<[]>
|
|
1421
|
-
/**
|
|
1422
|
-
* Enforce throwing `TypeError` in type checking conditions.
|
|
1423
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-type-error.md
|
|
1424
|
-
*/
|
|
1425
|
-
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>
|
|
1426
|
-
/**
|
|
1427
|
-
* Prevent abbreviations.
|
|
1428
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prevent-abbreviations.md
|
|
1429
|
-
*/
|
|
1430
|
-
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<UnicornPreventAbbreviations>
|
|
1431
|
-
/**
|
|
1432
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
1433
|
-
* @deprecated
|
|
1434
|
-
*/
|
|
1435
|
-
'unicorn/regex-shorthand'?: Linter.RuleEntry<[]>
|
|
1436
|
-
/**
|
|
1437
|
-
* Enforce consistent relative URL style.
|
|
1438
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/relative-url-style.md
|
|
1439
|
-
*/
|
|
1440
|
-
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>
|
|
1441
|
-
/**
|
|
1442
|
-
* Enforce using the separator argument with `Array#join()`.
|
|
1443
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-array-join-separator.md
|
|
1444
|
-
*/
|
|
1445
|
-
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>
|
|
1446
|
-
/**
|
|
1447
|
-
* Enforce using the digits argument with `Number#toFixed()`.
|
|
1448
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
1449
|
-
*/
|
|
1450
|
-
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>
|
|
1451
|
-
/**
|
|
1452
|
-
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
1453
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-post-message-target-origin.md
|
|
1454
|
-
*/
|
|
1455
|
-
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>
|
|
1456
|
-
/**
|
|
1457
|
-
* Enforce better string content.
|
|
1458
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/string-content.md
|
|
1459
|
-
*/
|
|
1460
|
-
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>
|
|
1461
|
-
/**
|
|
1462
|
-
* Enforce consistent brace style for `case` clauses.
|
|
1463
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/switch-case-braces.md
|
|
1464
|
-
*/
|
|
1465
|
-
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>
|
|
1466
|
-
/**
|
|
1467
|
-
* Fix whitespace-insensitive template indentation.
|
|
1468
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/template-indent.md
|
|
1469
|
-
*/
|
|
1470
|
-
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>
|
|
1471
|
-
/**
|
|
1472
|
-
* Enforce consistent case for text encoding identifiers.
|
|
1473
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/text-encoding-identifier-case.md
|
|
1474
|
-
*/
|
|
1475
|
-
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<[]>
|
|
1476
|
-
/**
|
|
1477
|
-
* Require `new` when creating an error.
|
|
1478
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/throw-new-error.md
|
|
1479
|
-
*/
|
|
1480
|
-
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>
|
|
1481
|
-
/**
|
|
1482
|
-
* require or disallow block style mappings.
|
|
1483
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/block-mapping.html
|
|
1484
|
-
*/
|
|
1485
|
-
'yml/block-mapping'?: Linter.RuleEntry<YmlBlockMapping>
|
|
1486
|
-
/**
|
|
1487
|
-
* enforce consistent line breaks after `:` indicator
|
|
1488
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/block-mapping-colon-indicator-newline.html
|
|
1489
|
-
*/
|
|
1490
|
-
'yml/block-mapping-colon-indicator-newline'?: Linter.RuleEntry<YmlBlockMappingColonIndicatorNewline>
|
|
1491
|
-
/**
|
|
1492
|
-
* enforce consistent line breaks after `?` indicator
|
|
1493
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/block-mapping-question-indicator-newline.html
|
|
1494
|
-
*/
|
|
1495
|
-
'yml/block-mapping-question-indicator-newline'?: Linter.RuleEntry<YmlBlockMappingQuestionIndicatorNewline>
|
|
1496
|
-
/**
|
|
1497
|
-
* require or disallow block style sequences.
|
|
1498
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/block-sequence.html
|
|
1499
|
-
*/
|
|
1500
|
-
'yml/block-sequence'?: Linter.RuleEntry<YmlBlockSequence>
|
|
1501
|
-
/**
|
|
1502
|
-
* enforce consistent line breaks after `-` indicator
|
|
1503
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/block-sequence-hyphen-indicator-newline.html
|
|
1504
|
-
*/
|
|
1505
|
-
'yml/block-sequence-hyphen-indicator-newline'?: Linter.RuleEntry<YmlBlockSequenceHyphenIndicatorNewline>
|
|
1506
|
-
/**
|
|
1507
|
-
* enforce YAML file extension
|
|
1508
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/file-extension.html
|
|
1509
|
-
*/
|
|
1510
|
-
'yml/file-extension'?: Linter.RuleEntry<YmlFileExtension>
|
|
1511
|
-
/**
|
|
1512
|
-
* enforce consistent line breaks inside braces
|
|
1513
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/flow-mapping-curly-newline.html
|
|
1514
|
-
*/
|
|
1515
|
-
'yml/flow-mapping-curly-newline'?: Linter.RuleEntry<YmlFlowMappingCurlyNewline>
|
|
1516
|
-
/**
|
|
1517
|
-
* enforce consistent spacing inside braces
|
|
1518
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/flow-mapping-curly-spacing.html
|
|
1519
|
-
*/
|
|
1520
|
-
'yml/flow-mapping-curly-spacing'?: Linter.RuleEntry<YmlFlowMappingCurlySpacing>
|
|
1521
|
-
/**
|
|
1522
|
-
* enforce linebreaks after opening and before closing flow sequence brackets
|
|
1523
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/flow-sequence-bracket-newline.html
|
|
1524
|
-
*/
|
|
1525
|
-
'yml/flow-sequence-bracket-newline'?: Linter.RuleEntry<YmlFlowSequenceBracketNewline>
|
|
1526
|
-
/**
|
|
1527
|
-
* enforce consistent spacing inside flow sequence brackets
|
|
1528
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/flow-sequence-bracket-spacing.html
|
|
1529
|
-
*/
|
|
1530
|
-
'yml/flow-sequence-bracket-spacing'?: Linter.RuleEntry<YmlFlowSequenceBracketSpacing>
|
|
1531
|
-
/**
|
|
1532
|
-
* enforce consistent indentation
|
|
1533
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/indent.html
|
|
1534
|
-
*/
|
|
1535
|
-
'yml/indent'?: Linter.RuleEntry<YmlIndent>
|
|
1536
|
-
/**
|
|
1537
|
-
* enforce naming convention to key names
|
|
1538
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/key-name-casing.html
|
|
1539
|
-
*/
|
|
1540
|
-
'yml/key-name-casing'?: Linter.RuleEntry<YmlKeyNameCasing>
|
|
1541
|
-
/**
|
|
1542
|
-
* enforce consistent spacing between keys and values in mapping pairs
|
|
1543
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/key-spacing.html
|
|
1544
|
-
*/
|
|
1545
|
-
'yml/key-spacing'?: Linter.RuleEntry<YmlKeySpacing>
|
|
1546
|
-
/**
|
|
1547
|
-
* disallow empty document
|
|
1548
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-empty-document.html
|
|
1549
|
-
*/
|
|
1550
|
-
'yml/no-empty-document'?: Linter.RuleEntry<[]>
|
|
1551
|
-
/**
|
|
1552
|
-
* disallow empty mapping keys
|
|
1553
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-empty-key.html
|
|
1554
|
-
*/
|
|
1555
|
-
'yml/no-empty-key'?: Linter.RuleEntry<[]>
|
|
1556
|
-
/**
|
|
1557
|
-
* disallow empty mapping values
|
|
1558
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-empty-mapping-value.html
|
|
1559
|
-
*/
|
|
1560
|
-
'yml/no-empty-mapping-value'?: Linter.RuleEntry<[]>
|
|
1561
|
-
/**
|
|
1562
|
-
* disallow empty sequence entries
|
|
1563
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-empty-sequence-entry.html
|
|
1564
|
-
*/
|
|
1565
|
-
'yml/no-empty-sequence-entry'?: Linter.RuleEntry<[]>
|
|
1566
|
-
/**
|
|
1567
|
-
* disallow irregular whitespace
|
|
1568
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-irregular-whitespace.html
|
|
1569
|
-
*/
|
|
1570
|
-
'yml/no-irregular-whitespace'?: Linter.RuleEntry<YmlNoIrregularWhitespace>
|
|
1571
|
-
/**
|
|
1572
|
-
* disallow multiple empty lines
|
|
1573
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-multiple-empty-lines.html
|
|
1574
|
-
*/
|
|
1575
|
-
'yml/no-multiple-empty-lines'?: Linter.RuleEntry<YmlNoMultipleEmptyLines>
|
|
1576
|
-
/**
|
|
1577
|
-
* disallow tabs for indentation.
|
|
1578
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-tab-indent.html
|
|
1579
|
-
*/
|
|
1580
|
-
'yml/no-tab-indent'?: Linter.RuleEntry<[]>
|
|
1581
|
-
/**
|
|
1582
|
-
* disallow trailing zeros for floats
|
|
1583
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-trailing-zeros.html
|
|
1584
|
-
*/
|
|
1585
|
-
'yml/no-trailing-zeros'?: Linter.RuleEntry<[]>
|
|
1586
|
-
/**
|
|
1587
|
-
* require or disallow plain style scalar.
|
|
1588
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/plain-scalar.html
|
|
1589
|
-
*/
|
|
1590
|
-
'yml/plain-scalar'?: Linter.RuleEntry<YmlPlainScalar>
|
|
1591
|
-
/**
|
|
1592
|
-
* enforce the consistent use of either double, or single quotes
|
|
1593
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/quotes.html
|
|
1594
|
-
*/
|
|
1595
|
-
'yml/quotes'?: Linter.RuleEntry<YmlQuotes>
|
|
1596
|
-
/**
|
|
1597
|
-
* disallow mapping keys other than strings
|
|
1598
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/require-string-key.html
|
|
1599
|
-
*/
|
|
1600
|
-
'yml/require-string-key'?: Linter.RuleEntry<[]>
|
|
1601
|
-
/**
|
|
1602
|
-
* require mapping keys to be sorted
|
|
1603
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/sort-keys.html
|
|
1604
|
-
*/
|
|
1605
|
-
'yml/sort-keys'?: Linter.RuleEntry<YmlSortKeys>
|
|
1606
|
-
/**
|
|
1607
|
-
* require sequence values to be sorted
|
|
1608
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/sort-sequence-values.html
|
|
1609
|
-
*/
|
|
1610
|
-
'yml/sort-sequence-values'?: Linter.RuleEntry<YmlSortSequenceValues>
|
|
1611
|
-
/**
|
|
1612
|
-
* enforce consistent spacing after the `#` in a comment
|
|
1613
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/spaced-comment.html
|
|
1614
|
-
*/
|
|
1615
|
-
'yml/spaced-comment'?: Linter.RuleEntry<YmlSpacedComment>
|
|
1616
|
-
/**
|
|
1617
|
-
* disallow parsing errors in Vue custom blocks
|
|
1618
|
-
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/vue-custom-block/no-parsing-error.html
|
|
1619
|
-
*/
|
|
1620
|
-
'yml/vue-custom-block/no-parsing-error'?: Linter.RuleEntry<[]>
|
|
1621
|
-
}
|
|
1622
|
-
|
|
1623
|
-
/* ======= Declarations ======= */
|
|
1624
|
-
// ----- @cspell/spellchecker -----
|
|
1625
|
-
type CspellSpellchecker = []|[{
|
|
1626
|
-
|
|
1627
|
-
autoFix: boolean
|
|
1628
|
-
|
|
1629
|
-
checkComments?: boolean
|
|
1630
|
-
|
|
1631
|
-
checkIdentifiers?: boolean
|
|
1632
|
-
|
|
1633
|
-
checkJSXText?: boolean
|
|
1634
|
-
|
|
1635
|
-
checkScope?: [string, boolean][]
|
|
1636
|
-
|
|
1637
|
-
checkStringTemplates?: boolean
|
|
1638
|
-
|
|
1639
|
-
checkStrings?: boolean
|
|
1640
|
-
|
|
1641
|
-
configFile?: string
|
|
1642
|
-
|
|
1643
|
-
cspell?: {
|
|
1644
|
-
|
|
1645
|
-
allowCompoundWords?: boolean
|
|
1646
|
-
|
|
1647
|
-
dictionaries?: (string | string)[]
|
|
1648
|
-
dictionaryDefinitions?: {
|
|
1649
|
-
|
|
1650
|
-
description?: string
|
|
1651
|
-
|
|
1652
|
-
name: string
|
|
1653
|
-
|
|
1654
|
-
noSuggest?: boolean
|
|
1655
|
-
|
|
1656
|
-
path: string
|
|
1657
|
-
|
|
1658
|
-
repMap?: [string, string][]
|
|
1659
|
-
|
|
1660
|
-
type?: ("S" | "W" | "C" | "T")
|
|
1661
|
-
|
|
1662
|
-
useCompounds?: boolean
|
|
1663
|
-
}[]
|
|
1664
|
-
|
|
1665
|
-
enabled?: boolean
|
|
1666
|
-
|
|
1667
|
-
flagWords?: string[]
|
|
1668
|
-
|
|
1669
|
-
ignoreRegExpList?: (string | string | ("Base64" | "Base64MultiLine" | "Base64SingleLine" | "CStyleComment" | "CStyleHexValue" | "CSSHexValue" | "CommitHash" | "CommitHashLink" | "Email" | "EscapeCharacters" | "HexValues" | "href" | "PhpHereDoc" | "PublicKey" | "RsaCert" | "SshRsa" | "SHA" | "HashStrings" | "SpellCheckerDisable" | "SpellCheckerDisableBlock" | "SpellCheckerDisableLine" | "SpellCheckerDisableNext" | "SpellCheckerIgnoreInDocSetting" | "string" | "UnicodeRef" | "Urls" | "UUID" | "Everything"))[]
|
|
1670
|
-
|
|
1671
|
-
ignoreWords?: string[]
|
|
1672
|
-
|
|
1673
|
-
import?: (string | string[])
|
|
1674
|
-
|
|
1675
|
-
includeRegExpList?: (string | string | ("Base64" | "Base64MultiLine" | "Base64SingleLine" | "CStyleComment" | "CStyleHexValue" | "CSSHexValue" | "CommitHash" | "CommitHashLink" | "Email" | "EscapeCharacters" | "HexValues" | "href" | "PhpHereDoc" | "PublicKey" | "RsaCert" | "SshRsa" | "SHA" | "HashStrings" | "SpellCheckerDisable" | "SpellCheckerDisableBlock" | "SpellCheckerDisableLine" | "SpellCheckerDisableNext" | "SpellCheckerIgnoreInDocSetting" | "string" | "UnicodeRef" | "Urls" | "UUID" | "Everything"))[]
|
|
1676
|
-
|
|
1677
|
-
language?: string
|
|
1678
|
-
|
|
1679
|
-
words?: string[]
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
cspellOptionsRoot?: (string | string)
|
|
1683
|
-
|
|
1684
|
-
customWordListFile?: (string | {
|
|
1685
|
-
|
|
1686
|
-
path: string
|
|
1687
|
-
})
|
|
1688
|
-
|
|
1689
|
-
debugMode?: boolean
|
|
1690
|
-
|
|
1691
|
-
generateSuggestions: boolean
|
|
1692
|
-
|
|
1693
|
-
ignoreImportProperties?: boolean
|
|
1694
|
-
|
|
1695
|
-
ignoreImports?: boolean
|
|
1696
|
-
|
|
1697
|
-
numSuggestions: number
|
|
1698
|
-
}]
|
|
1699
|
-
// ----- @nx/dependency-checks -----
|
|
1700
|
-
type NxDependencyChecks = []|[{
|
|
1701
|
-
buildTargets?: string[]
|
|
1702
|
-
ignoredDependencies?: string[]
|
|
1703
|
-
ignoredFiles?: string[]
|
|
1704
|
-
checkMissingDependencies?: boolean
|
|
1705
|
-
checkObsoleteDependencies?: boolean
|
|
1706
|
-
checkVersionMismatches?: boolean
|
|
1707
|
-
includeTransitiveDependencies?: boolean
|
|
1708
|
-
useLocalPathsForWorkspaceDependencies?: boolean
|
|
1709
|
-
}]
|
|
1710
|
-
// ----- @nx/enforce-module-boundaries -----
|
|
1711
|
-
type NxEnforceModuleBoundaries = []|[{
|
|
1712
|
-
enforceBuildableLibDependency?: boolean
|
|
1713
|
-
allowCircularSelfDependency?: boolean
|
|
1714
|
-
checkDynamicDependenciesExceptions?: string[]
|
|
1715
|
-
banTransitiveDependencies?: boolean
|
|
1716
|
-
checkNestedExternalImports?: boolean
|
|
1717
|
-
allow?: string[]
|
|
1718
|
-
buildTargets?: string[]
|
|
1719
|
-
depConstraints?: ({
|
|
1720
|
-
sourceTag?: string
|
|
1721
|
-
onlyDependOnLibsWithTags?: string[]
|
|
1722
|
-
allowedExternalImports?: string[]
|
|
1723
|
-
bannedExternalImports?: string[]
|
|
1724
|
-
notDependOnLibsWithTags?: string[]
|
|
1725
|
-
} | {
|
|
1726
|
-
|
|
1727
|
-
allSourceTags?: [string, string, ...(string)[]]
|
|
1728
|
-
onlyDependOnLibsWithTags?: string[]
|
|
1729
|
-
allowedExternalImports?: string[]
|
|
1730
|
-
bannedExternalImports?: string[]
|
|
1731
|
-
notDependOnLibsWithTags?: string[]
|
|
1732
|
-
})[]
|
|
1733
|
-
}]
|
|
1734
|
-
// ----- @nx/nx-plugin-checks -----
|
|
1735
|
-
type NxNxPluginChecks = []|[{
|
|
1736
|
-
|
|
1737
|
-
generatorsJson?: string
|
|
1738
|
-
|
|
1739
|
-
executorsJson?: string
|
|
1740
|
-
|
|
1741
|
-
migrationsJson?: string
|
|
1742
|
-
|
|
1743
|
-
packageJson?: string
|
|
1744
|
-
|
|
1745
|
-
allowedVersionStrings?: string[]
|
|
1746
|
-
}]
|
|
1747
|
-
// ----- @typescript-eslint/array-type -----
|
|
1748
|
-
type TypescriptEslintArrayType = []|[{
|
|
1749
|
-
|
|
1750
|
-
default?: ("array" | "generic" | "array-simple")
|
|
1751
|
-
|
|
1752
|
-
readonly?: ("array" | "generic" | "array-simple")
|
|
1753
|
-
}]
|
|
1754
|
-
// ----- @typescript-eslint/ban-ts-comment -----
|
|
1755
|
-
type TypescriptEslintBanTsComment = []|[{
|
|
1756
|
-
"ts-expect-error"?: (boolean | "allow-with-description" | {
|
|
1757
|
-
descriptionFormat?: string
|
|
1758
|
-
})
|
|
1759
|
-
"ts-ignore"?: (boolean | "allow-with-description" | {
|
|
1760
|
-
descriptionFormat?: string
|
|
1761
|
-
})
|
|
1762
|
-
"ts-nocheck"?: (boolean | "allow-with-description" | {
|
|
1763
|
-
descriptionFormat?: string
|
|
1764
|
-
})
|
|
1765
|
-
"ts-check"?: (boolean | "allow-with-description" | {
|
|
1766
|
-
descriptionFormat?: string
|
|
1767
|
-
})
|
|
1768
|
-
minimumDescriptionLength?: number
|
|
1769
|
-
}]
|
|
1770
|
-
// ----- @typescript-eslint/ban-types -----
|
|
1771
|
-
type TypescriptEslintBanTypes = []|[{
|
|
1772
|
-
types?: {
|
|
1773
|
-
[k: string]: (null | false | true | string | {
|
|
1774
|
-
|
|
1775
|
-
message?: string
|
|
1776
|
-
|
|
1777
|
-
fixWith?: string
|
|
1778
|
-
|
|
1779
|
-
suggest?: string[]
|
|
1780
|
-
}) | undefined
|
|
1781
|
-
}
|
|
1782
|
-
extendDefaults?: boolean
|
|
1783
|
-
}]
|
|
1784
|
-
// ----- @typescript-eslint/block-spacing -----
|
|
1785
|
-
type TypescriptEslintBlockSpacing = []|[("always" | "never")]
|
|
1786
|
-
// ----- @typescript-eslint/brace-style -----
|
|
1787
|
-
type TypescriptEslintBraceStyle = []|[("1tbs" | "stroustrup" | "allman")]|[("1tbs" | "stroustrup" | "allman"), {
|
|
1788
|
-
allowSingleLine?: boolean
|
|
1789
|
-
}]
|
|
1790
|
-
// ----- @typescript-eslint/class-literal-property-style -----
|
|
1791
|
-
type TypescriptEslintClassLiteralPropertyStyle = []|[("fields" | "getters")]
|
|
1792
|
-
// ----- @typescript-eslint/class-methods-use-this -----
|
|
1793
|
-
type TypescriptEslintClassMethodsUseThis = []|[{
|
|
1794
|
-
|
|
1795
|
-
exceptMethods?: string[]
|
|
1796
|
-
|
|
1797
|
-
enforceForClassFields?: boolean
|
|
1798
|
-
|
|
1799
|
-
ignoreOverrideMethods?: boolean
|
|
1800
|
-
|
|
1801
|
-
ignoreClassesThatImplementAnInterface?: (boolean | "public-fields")
|
|
1802
|
-
}]
|
|
1803
|
-
// ----- @typescript-eslint/comma-dangle -----
|
|
1804
|
-
type TypescriptEslintCommaDangle = []|[(_TypescriptEslintCommaDangleValue | {
|
|
1805
|
-
arrays?: _TypescriptEslintCommaDangleValueWithIgnore
|
|
1806
|
-
objects?: _TypescriptEslintCommaDangleValueWithIgnore
|
|
1807
|
-
imports?: _TypescriptEslintCommaDangleValueWithIgnore
|
|
1808
|
-
exports?: _TypescriptEslintCommaDangleValueWithIgnore
|
|
1809
|
-
functions?: _TypescriptEslintCommaDangleValueWithIgnore
|
|
1810
|
-
enums?: _TypescriptEslintCommaDangleValueWithIgnore
|
|
1811
|
-
generics?: _TypescriptEslintCommaDangleValueWithIgnore
|
|
1812
|
-
tuples?: _TypescriptEslintCommaDangleValueWithIgnore
|
|
1813
|
-
})]
|
|
1814
|
-
type _TypescriptEslintCommaDangleValue = ("always-multiline" | "always" | "never" | "only-multiline")
|
|
1815
|
-
type _TypescriptEslintCommaDangleValueWithIgnore = ("always-multiline" | "always" | "never" | "only-multiline" | "ignore")
|
|
1816
|
-
// ----- @typescript-eslint/comma-spacing -----
|
|
1817
|
-
type TypescriptEslintCommaSpacing = []|[{
|
|
1818
|
-
before?: boolean
|
|
1819
|
-
after?: boolean
|
|
1820
|
-
}]
|
|
1821
|
-
// ----- @typescript-eslint/consistent-generic-constructors -----
|
|
1822
|
-
type TypescriptEslintConsistentGenericConstructors = []|[("type-annotation" | "constructor")]
|
|
1823
|
-
// ----- @typescript-eslint/consistent-indexed-object-style -----
|
|
1824
|
-
type TypescriptEslintConsistentIndexedObjectStyle = []|[("record" | "index-signature")]
|
|
1825
|
-
// ----- @typescript-eslint/consistent-return -----
|
|
1826
|
-
type TypescriptEslintConsistentReturn = []|[{
|
|
1827
|
-
treatUndefinedAsUnspecified?: boolean
|
|
1828
|
-
}]
|
|
1829
|
-
// ----- @typescript-eslint/consistent-type-assertions -----
|
|
1830
|
-
type TypescriptEslintConsistentTypeAssertions = []|[({
|
|
1831
|
-
assertionStyle: "never"
|
|
1832
|
-
} | {
|
|
1833
|
-
assertionStyle: ("as" | "angle-bracket")
|
|
1834
|
-
objectLiteralTypeAssertions?: ("allow" | "allow-as-parameter" | "never")
|
|
1835
|
-
})]
|
|
1836
|
-
// ----- @typescript-eslint/consistent-type-definitions -----
|
|
1837
|
-
type TypescriptEslintConsistentTypeDefinitions = []|[("interface" | "type")]
|
|
1838
|
-
// ----- @typescript-eslint/consistent-type-exports -----
|
|
1839
|
-
type TypescriptEslintConsistentTypeExports = []|[{
|
|
1840
|
-
fixMixedExportsWithInlineTypeSpecifier?: boolean
|
|
1841
|
-
}]
|
|
1842
|
-
// ----- @typescript-eslint/consistent-type-imports -----
|
|
1843
|
-
type TypescriptEslintConsistentTypeImports = []|[{
|
|
1844
|
-
disallowTypeAnnotations?: boolean
|
|
1845
|
-
fixStyle?: ("separate-type-imports" | "inline-type-imports")
|
|
1846
|
-
prefer?: ("type-imports" | "no-type-imports")
|
|
1847
|
-
}]
|
|
1848
|
-
// ----- @typescript-eslint/dot-notation -----
|
|
1849
|
-
type TypescriptEslintDotNotation = []|[{
|
|
1850
|
-
allowKeywords?: boolean
|
|
1851
|
-
allowPattern?: string
|
|
1852
|
-
allowPrivateClassPropertyAccess?: boolean
|
|
1853
|
-
allowProtectedClassPropertyAccess?: boolean
|
|
1854
|
-
allowIndexSignaturePropertyAccess?: boolean
|
|
1855
|
-
}]
|
|
1856
|
-
// ----- @typescript-eslint/explicit-function-return-type -----
|
|
1857
|
-
type TypescriptEslintExplicitFunctionReturnType = []|[{
|
|
1858
|
-
|
|
1859
|
-
allowConciseArrowFunctionExpressionsStartingWithVoid?: boolean
|
|
1860
|
-
|
|
1861
|
-
allowExpressions?: boolean
|
|
1862
|
-
|
|
1863
|
-
allowHigherOrderFunctions?: boolean
|
|
1864
|
-
|
|
1865
|
-
allowTypedFunctionExpressions?: boolean
|
|
1866
|
-
|
|
1867
|
-
allowDirectConstAssertionInArrowFunctions?: boolean
|
|
1868
|
-
|
|
1869
|
-
allowFunctionsWithoutTypeParameters?: boolean
|
|
1870
|
-
|
|
1871
|
-
allowedNames?: string[]
|
|
1872
|
-
|
|
1873
|
-
allowIIFEs?: boolean
|
|
1874
|
-
}]
|
|
1875
|
-
// ----- @typescript-eslint/explicit-member-accessibility -----
|
|
1876
|
-
type TypescriptEslintExplicitMemberAccessibility = []|[{
|
|
1877
|
-
accessibility?: ("explicit" | "no-public" | "off")
|
|
1878
|
-
overrides?: {
|
|
1879
|
-
accessors?: ("explicit" | "no-public" | "off")
|
|
1880
|
-
constructors?: ("explicit" | "no-public" | "off")
|
|
1881
|
-
methods?: ("explicit" | "no-public" | "off")
|
|
1882
|
-
properties?: ("explicit" | "no-public" | "off")
|
|
1883
|
-
parameterProperties?: ("explicit" | "no-public" | "off")
|
|
1884
|
-
}
|
|
1885
|
-
ignoredMethodNames?: string[]
|
|
1886
|
-
}]
|
|
1887
|
-
// ----- @typescript-eslint/explicit-module-boundary-types -----
|
|
1888
|
-
type TypescriptEslintExplicitModuleBoundaryTypes = []|[{
|
|
1889
|
-
|
|
1890
|
-
allowArgumentsExplicitlyTypedAsAny?: boolean
|
|
1891
|
-
|
|
1892
|
-
allowDirectConstAssertionInArrowFunctions?: boolean
|
|
1893
|
-
|
|
1894
|
-
allowedNames?: string[]
|
|
1895
|
-
|
|
1896
|
-
allowHigherOrderFunctions?: boolean
|
|
1897
|
-
|
|
1898
|
-
allowTypedFunctionExpressions?: boolean
|
|
1899
|
-
}]
|
|
1900
|
-
// ----- @typescript-eslint/func-call-spacing -----
|
|
1901
|
-
type TypescriptEslintFuncCallSpacing = ([]|["never"] | []|["always"]|["always", {
|
|
1902
|
-
allowNewlines?: boolean
|
|
1903
|
-
}])
|
|
1904
|
-
// ----- @typescript-eslint/indent -----
|
|
1905
|
-
type TypescriptEslintIndent = []|[("tab" | number)]|[("tab" | number), {
|
|
1906
|
-
SwitchCase?: number
|
|
1907
|
-
VariableDeclarator?: ((number | ("first" | "off")) | {
|
|
1908
|
-
var?: (number | ("first" | "off"))
|
|
1909
|
-
let?: (number | ("first" | "off"))
|
|
1910
|
-
const?: (number | ("first" | "off"))
|
|
1911
|
-
})
|
|
1912
|
-
outerIIFEBody?: (number | "off")
|
|
1913
|
-
MemberExpression?: (number | "off")
|
|
1914
|
-
FunctionDeclaration?: {
|
|
1915
|
-
parameters?: (number | ("first" | "off"))
|
|
1916
|
-
body?: number
|
|
1917
|
-
}
|
|
1918
|
-
FunctionExpression?: {
|
|
1919
|
-
parameters?: (number | ("first" | "off"))
|
|
1920
|
-
body?: number
|
|
1921
|
-
}
|
|
1922
|
-
StaticBlock?: {
|
|
1923
|
-
body?: number
|
|
1924
|
-
}
|
|
1925
|
-
CallExpression?: {
|
|
1926
|
-
arguments?: (number | ("first" | "off"))
|
|
1927
|
-
}
|
|
1928
|
-
ArrayExpression?: (number | ("first" | "off"))
|
|
1929
|
-
ObjectExpression?: (number | ("first" | "off"))
|
|
1930
|
-
ImportDeclaration?: (number | ("first" | "off"))
|
|
1931
|
-
flatTernaryExpressions?: boolean
|
|
1932
|
-
offsetTernaryExpressions?: boolean
|
|
1933
|
-
ignoredNodes?: string[]
|
|
1934
|
-
ignoreComments?: boolean
|
|
1935
|
-
}]
|
|
1936
|
-
// ----- @typescript-eslint/init-declarations -----
|
|
1937
|
-
type TypescriptEslintInitDeclarations = ([]|["always"] | []|["never"]|["never", {
|
|
1938
|
-
ignoreForLoopInit?: boolean
|
|
1939
|
-
}])
|
|
1940
|
-
// ----- @typescript-eslint/key-spacing -----
|
|
1941
|
-
type TypescriptEslintKeySpacing = []|[({
|
|
1942
|
-
align?: (("colon" | "value") | {
|
|
1943
|
-
mode?: ("strict" | "minimum")
|
|
1944
|
-
on?: ("colon" | "value")
|
|
1945
|
-
beforeColon?: boolean
|
|
1946
|
-
afterColon?: boolean
|
|
1947
|
-
})
|
|
1948
|
-
mode?: ("strict" | "minimum")
|
|
1949
|
-
beforeColon?: boolean
|
|
1950
|
-
afterColon?: boolean
|
|
1951
|
-
} | {
|
|
1952
|
-
singleLine?: {
|
|
1953
|
-
mode?: ("strict" | "minimum")
|
|
1954
|
-
beforeColon?: boolean
|
|
1955
|
-
afterColon?: boolean
|
|
1956
|
-
}
|
|
1957
|
-
multiLine?: {
|
|
1958
|
-
align?: (("colon" | "value") | {
|
|
1959
|
-
mode?: ("strict" | "minimum")
|
|
1960
|
-
on?: ("colon" | "value")
|
|
1961
|
-
beforeColon?: boolean
|
|
1962
|
-
afterColon?: boolean
|
|
1963
|
-
})
|
|
1964
|
-
mode?: ("strict" | "minimum")
|
|
1965
|
-
beforeColon?: boolean
|
|
1966
|
-
afterColon?: boolean
|
|
1967
|
-
}
|
|
1968
|
-
} | {
|
|
1969
|
-
singleLine?: {
|
|
1970
|
-
mode?: ("strict" | "minimum")
|
|
1971
|
-
beforeColon?: boolean
|
|
1972
|
-
afterColon?: boolean
|
|
1973
|
-
}
|
|
1974
|
-
multiLine?: {
|
|
1975
|
-
mode?: ("strict" | "minimum")
|
|
1976
|
-
beforeColon?: boolean
|
|
1977
|
-
afterColon?: boolean
|
|
1978
|
-
}
|
|
1979
|
-
align?: {
|
|
1980
|
-
mode?: ("strict" | "minimum")
|
|
1981
|
-
on?: ("colon" | "value")
|
|
1982
|
-
beforeColon?: boolean
|
|
1983
|
-
afterColon?: boolean
|
|
1984
|
-
}
|
|
1985
|
-
})]
|
|
1986
|
-
// ----- @typescript-eslint/keyword-spacing -----
|
|
1987
|
-
type TypescriptEslintKeywordSpacing = []|[{
|
|
1988
|
-
before?: boolean
|
|
1989
|
-
after?: boolean
|
|
1990
|
-
overrides?: {
|
|
1991
|
-
abstract?: {
|
|
1992
|
-
before?: boolean
|
|
1993
|
-
after?: boolean
|
|
1994
|
-
}
|
|
1995
|
-
as?: {
|
|
1996
|
-
before?: boolean
|
|
1997
|
-
after?: boolean
|
|
1998
|
-
}
|
|
1999
|
-
async?: {
|
|
2000
|
-
before?: boolean
|
|
2001
|
-
after?: boolean
|
|
2002
|
-
}
|
|
2003
|
-
await?: {
|
|
2004
|
-
before?: boolean
|
|
2005
|
-
after?: boolean
|
|
2006
|
-
}
|
|
2007
|
-
boolean?: {
|
|
2008
|
-
before?: boolean
|
|
2009
|
-
after?: boolean
|
|
2010
|
-
}
|
|
2011
|
-
break?: {
|
|
2012
|
-
before?: boolean
|
|
2013
|
-
after?: boolean
|
|
2014
|
-
}
|
|
2015
|
-
byte?: {
|
|
2016
|
-
before?: boolean
|
|
2017
|
-
after?: boolean
|
|
2018
|
-
}
|
|
2019
|
-
case?: {
|
|
2020
|
-
before?: boolean
|
|
2021
|
-
after?: boolean
|
|
2022
|
-
}
|
|
2023
|
-
catch?: {
|
|
2024
|
-
before?: boolean
|
|
2025
|
-
after?: boolean
|
|
2026
|
-
}
|
|
2027
|
-
char?: {
|
|
2028
|
-
before?: boolean
|
|
2029
|
-
after?: boolean
|
|
2030
|
-
}
|
|
2031
|
-
class?: {
|
|
2032
|
-
before?: boolean
|
|
2033
|
-
after?: boolean
|
|
2034
|
-
}
|
|
2035
|
-
const?: {
|
|
2036
|
-
before?: boolean
|
|
2037
|
-
after?: boolean
|
|
2038
|
-
}
|
|
2039
|
-
continue?: {
|
|
2040
|
-
before?: boolean
|
|
2041
|
-
after?: boolean
|
|
2042
|
-
}
|
|
2043
|
-
debugger?: {
|
|
2044
|
-
before?: boolean
|
|
2045
|
-
after?: boolean
|
|
2046
|
-
}
|
|
2047
|
-
default?: {
|
|
2048
|
-
before?: boolean
|
|
2049
|
-
after?: boolean
|
|
2050
|
-
}
|
|
2051
|
-
delete?: {
|
|
2052
|
-
before?: boolean
|
|
2053
|
-
after?: boolean
|
|
2054
|
-
}
|
|
2055
|
-
do?: {
|
|
2056
|
-
before?: boolean
|
|
2057
|
-
after?: boolean
|
|
2058
|
-
}
|
|
2059
|
-
double?: {
|
|
2060
|
-
before?: boolean
|
|
2061
|
-
after?: boolean
|
|
2062
|
-
}
|
|
2063
|
-
else?: {
|
|
2064
|
-
before?: boolean
|
|
2065
|
-
after?: boolean
|
|
2066
|
-
}
|
|
2067
|
-
enum?: {
|
|
2068
|
-
before?: boolean
|
|
2069
|
-
after?: boolean
|
|
2070
|
-
}
|
|
2071
|
-
export?: {
|
|
2072
|
-
before?: boolean
|
|
2073
|
-
after?: boolean
|
|
2074
|
-
}
|
|
2075
|
-
extends?: {
|
|
2076
|
-
before?: boolean
|
|
2077
|
-
after?: boolean
|
|
2078
|
-
}
|
|
2079
|
-
false?: {
|
|
2080
|
-
before?: boolean
|
|
2081
|
-
after?: boolean
|
|
2082
|
-
}
|
|
2083
|
-
final?: {
|
|
2084
|
-
before?: boolean
|
|
2085
|
-
after?: boolean
|
|
2086
|
-
}
|
|
2087
|
-
finally?: {
|
|
2088
|
-
before?: boolean
|
|
2089
|
-
after?: boolean
|
|
2090
|
-
}
|
|
2091
|
-
float?: {
|
|
2092
|
-
before?: boolean
|
|
2093
|
-
after?: boolean
|
|
2094
|
-
}
|
|
2095
|
-
for?: {
|
|
2096
|
-
before?: boolean
|
|
2097
|
-
after?: boolean
|
|
2098
|
-
}
|
|
2099
|
-
from?: {
|
|
2100
|
-
before?: boolean
|
|
2101
|
-
after?: boolean
|
|
2102
|
-
}
|
|
2103
|
-
function?: {
|
|
2104
|
-
before?: boolean
|
|
2105
|
-
after?: boolean
|
|
2106
|
-
}
|
|
2107
|
-
get?: {
|
|
2108
|
-
before?: boolean
|
|
2109
|
-
after?: boolean
|
|
2110
|
-
}
|
|
2111
|
-
goto?: {
|
|
2112
|
-
before?: boolean
|
|
2113
|
-
after?: boolean
|
|
2114
|
-
}
|
|
2115
|
-
if?: {
|
|
2116
|
-
before?: boolean
|
|
2117
|
-
after?: boolean
|
|
2118
|
-
}
|
|
2119
|
-
implements?: {
|
|
2120
|
-
before?: boolean
|
|
2121
|
-
after?: boolean
|
|
2122
|
-
}
|
|
2123
|
-
import?: {
|
|
2124
|
-
before?: boolean
|
|
2125
|
-
after?: boolean
|
|
2126
|
-
}
|
|
2127
|
-
in?: {
|
|
2128
|
-
before?: boolean
|
|
2129
|
-
after?: boolean
|
|
2130
|
-
}
|
|
2131
|
-
instanceof?: {
|
|
2132
|
-
before?: boolean
|
|
2133
|
-
after?: boolean
|
|
2134
|
-
}
|
|
2135
|
-
int?: {
|
|
2136
|
-
before?: boolean
|
|
2137
|
-
after?: boolean
|
|
2138
|
-
}
|
|
2139
|
-
interface?: {
|
|
2140
|
-
before?: boolean
|
|
2141
|
-
after?: boolean
|
|
2142
|
-
}
|
|
2143
|
-
let?: {
|
|
2144
|
-
before?: boolean
|
|
2145
|
-
after?: boolean
|
|
2146
|
-
}
|
|
2147
|
-
long?: {
|
|
2148
|
-
before?: boolean
|
|
2149
|
-
after?: boolean
|
|
2150
|
-
}
|
|
2151
|
-
native?: {
|
|
2152
|
-
before?: boolean
|
|
2153
|
-
after?: boolean
|
|
2154
|
-
}
|
|
2155
|
-
new?: {
|
|
2156
|
-
before?: boolean
|
|
2157
|
-
after?: boolean
|
|
2158
|
-
}
|
|
2159
|
-
null?: {
|
|
2160
|
-
before?: boolean
|
|
2161
|
-
after?: boolean
|
|
2162
|
-
}
|
|
2163
|
-
of?: {
|
|
2164
|
-
before?: boolean
|
|
2165
|
-
after?: boolean
|
|
2166
|
-
}
|
|
2167
|
-
package?: {
|
|
2168
|
-
before?: boolean
|
|
2169
|
-
after?: boolean
|
|
2170
|
-
}
|
|
2171
|
-
private?: {
|
|
2172
|
-
before?: boolean
|
|
2173
|
-
after?: boolean
|
|
2174
|
-
}
|
|
2175
|
-
protected?: {
|
|
2176
|
-
before?: boolean
|
|
2177
|
-
after?: boolean
|
|
2178
|
-
}
|
|
2179
|
-
public?: {
|
|
2180
|
-
before?: boolean
|
|
2181
|
-
after?: boolean
|
|
2182
|
-
}
|
|
2183
|
-
return?: {
|
|
2184
|
-
before?: boolean
|
|
2185
|
-
after?: boolean
|
|
2186
|
-
}
|
|
2187
|
-
set?: {
|
|
2188
|
-
before?: boolean
|
|
2189
|
-
after?: boolean
|
|
2190
|
-
}
|
|
2191
|
-
short?: {
|
|
2192
|
-
before?: boolean
|
|
2193
|
-
after?: boolean
|
|
2194
|
-
}
|
|
2195
|
-
static?: {
|
|
2196
|
-
before?: boolean
|
|
2197
|
-
after?: boolean
|
|
2198
|
-
}
|
|
2199
|
-
super?: {
|
|
2200
|
-
before?: boolean
|
|
2201
|
-
after?: boolean
|
|
2202
|
-
}
|
|
2203
|
-
switch?: {
|
|
2204
|
-
before?: boolean
|
|
2205
|
-
after?: boolean
|
|
2206
|
-
}
|
|
2207
|
-
synchronized?: {
|
|
2208
|
-
before?: boolean
|
|
2209
|
-
after?: boolean
|
|
2210
|
-
}
|
|
2211
|
-
this?: {
|
|
2212
|
-
before?: boolean
|
|
2213
|
-
after?: boolean
|
|
2214
|
-
}
|
|
2215
|
-
throw?: {
|
|
2216
|
-
before?: boolean
|
|
2217
|
-
after?: boolean
|
|
2218
|
-
}
|
|
2219
|
-
throws?: {
|
|
2220
|
-
before?: boolean
|
|
2221
|
-
after?: boolean
|
|
2222
|
-
}
|
|
2223
|
-
transient?: {
|
|
2224
|
-
before?: boolean
|
|
2225
|
-
after?: boolean
|
|
2226
|
-
}
|
|
2227
|
-
true?: {
|
|
2228
|
-
before?: boolean
|
|
2229
|
-
after?: boolean
|
|
2230
|
-
}
|
|
2231
|
-
try?: {
|
|
2232
|
-
before?: boolean
|
|
2233
|
-
after?: boolean
|
|
2234
|
-
}
|
|
2235
|
-
typeof?: {
|
|
2236
|
-
before?: boolean
|
|
2237
|
-
after?: boolean
|
|
2238
|
-
}
|
|
2239
|
-
var?: {
|
|
2240
|
-
before?: boolean
|
|
2241
|
-
after?: boolean
|
|
2242
|
-
}
|
|
2243
|
-
void?: {
|
|
2244
|
-
before?: boolean
|
|
2245
|
-
after?: boolean
|
|
2246
|
-
}
|
|
2247
|
-
volatile?: {
|
|
2248
|
-
before?: boolean
|
|
2249
|
-
after?: boolean
|
|
2250
|
-
}
|
|
2251
|
-
while?: {
|
|
2252
|
-
before?: boolean
|
|
2253
|
-
after?: boolean
|
|
2254
|
-
}
|
|
2255
|
-
with?: {
|
|
2256
|
-
before?: boolean
|
|
2257
|
-
after?: boolean
|
|
2258
|
-
}
|
|
2259
|
-
yield?: {
|
|
2260
|
-
before?: boolean
|
|
2261
|
-
after?: boolean
|
|
2262
|
-
}
|
|
2263
|
-
type?: {
|
|
2264
|
-
before?: boolean
|
|
2265
|
-
after?: boolean
|
|
2266
|
-
}
|
|
2267
|
-
}
|
|
2268
|
-
}]
|
|
2269
|
-
// ----- @typescript-eslint/lines-around-comment -----
|
|
2270
|
-
type TypescriptEslintLinesAroundComment = []|[{
|
|
2271
|
-
beforeBlockComment?: boolean
|
|
2272
|
-
afterBlockComment?: boolean
|
|
2273
|
-
beforeLineComment?: boolean
|
|
2274
|
-
afterLineComment?: boolean
|
|
2275
|
-
allowBlockStart?: boolean
|
|
2276
|
-
allowBlockEnd?: boolean
|
|
2277
|
-
allowClassStart?: boolean
|
|
2278
|
-
allowClassEnd?: boolean
|
|
2279
|
-
allowObjectStart?: boolean
|
|
2280
|
-
allowObjectEnd?: boolean
|
|
2281
|
-
allowArrayStart?: boolean
|
|
2282
|
-
allowArrayEnd?: boolean
|
|
2283
|
-
allowInterfaceStart?: boolean
|
|
2284
|
-
allowInterfaceEnd?: boolean
|
|
2285
|
-
allowTypeStart?: boolean
|
|
2286
|
-
allowTypeEnd?: boolean
|
|
2287
|
-
allowEnumStart?: boolean
|
|
2288
|
-
allowEnumEnd?: boolean
|
|
2289
|
-
allowModuleStart?: boolean
|
|
2290
|
-
allowModuleEnd?: boolean
|
|
2291
|
-
ignorePattern?: string
|
|
2292
|
-
applyDefaultIgnorePatterns?: boolean
|
|
2293
|
-
}]
|
|
2294
|
-
// ----- @typescript-eslint/lines-between-class-members -----
|
|
2295
|
-
type TypescriptEslintLinesBetweenClassMembers = []|[({
|
|
2296
|
-
|
|
2297
|
-
enforce: [{
|
|
2298
|
-
blankLine: ("always" | "never")
|
|
2299
|
-
prev: ("method" | "field" | "*")
|
|
2300
|
-
next: ("method" | "field" | "*")
|
|
2301
|
-
}, ...({
|
|
2302
|
-
blankLine: ("always" | "never")
|
|
2303
|
-
prev: ("method" | "field" | "*")
|
|
2304
|
-
next: ("method" | "field" | "*")
|
|
2305
|
-
})[]]
|
|
2306
|
-
} | ("always" | "never"))]|[({
|
|
2307
|
-
|
|
2308
|
-
enforce: [{
|
|
2309
|
-
blankLine: ("always" | "never")
|
|
2310
|
-
prev: ("method" | "field" | "*")
|
|
2311
|
-
next: ("method" | "field" | "*")
|
|
2312
|
-
}, ...({
|
|
2313
|
-
blankLine: ("always" | "never")
|
|
2314
|
-
prev: ("method" | "field" | "*")
|
|
2315
|
-
next: ("method" | "field" | "*")
|
|
2316
|
-
})[]]
|
|
2317
|
-
} | ("always" | "never")), {
|
|
2318
|
-
exceptAfterSingleLine?: boolean
|
|
2319
|
-
exceptAfterOverload?: boolean
|
|
2320
|
-
}]
|
|
2321
|
-
// ----- @typescript-eslint/max-params -----
|
|
2322
|
-
type TypescriptEslintMaxParams = []|[{
|
|
2323
|
-
maximum?: number
|
|
2324
|
-
max?: number
|
|
2325
|
-
countVoidThis?: boolean
|
|
2326
|
-
}]
|
|
2327
|
-
// ----- @typescript-eslint/member-delimiter-style -----
|
|
2328
|
-
type TypescriptEslintMemberDelimiterStyle = []|[{
|
|
2329
|
-
multiline?: {
|
|
2330
|
-
delimiter?: ("none" | "semi" | "comma")
|
|
2331
|
-
requireLast?: boolean
|
|
2332
|
-
}
|
|
2333
|
-
singleline?: {
|
|
2334
|
-
delimiter?: ("semi" | "comma")
|
|
2335
|
-
requireLast?: boolean
|
|
2336
|
-
}
|
|
2337
|
-
overrides?: {
|
|
2338
|
-
interface?: _TypescriptEslintMemberDelimiterStyle_DelimiterConfig
|
|
2339
|
-
typeLiteral?: _TypescriptEslintMemberDelimiterStyle_DelimiterConfig
|
|
2340
|
-
}
|
|
2341
|
-
multilineDetection?: ("brackets" | "last-member")
|
|
2342
|
-
}]
|
|
2343
|
-
interface _TypescriptEslintMemberDelimiterStyle_DelimiterConfig {
|
|
2344
|
-
multiline?: {
|
|
2345
|
-
delimiter?: ("none" | "semi" | "comma")
|
|
2346
|
-
requireLast?: boolean
|
|
2347
|
-
}
|
|
2348
|
-
singleline?: {
|
|
2349
|
-
delimiter?: ("semi" | "comma")
|
|
2350
|
-
requireLast?: boolean
|
|
2351
|
-
}
|
|
2352
|
-
}
|
|
2353
|
-
// ----- @typescript-eslint/member-ordering -----
|
|
2354
|
-
type TypescriptEslintMemberOrdering = []|[{
|
|
2355
|
-
default?: ("never" | (("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | {
|
|
2356
|
-
memberTypes?: ((("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | "never")
|
|
2357
|
-
order?: ("alphabetically" | "alphabetically-case-insensitive" | "as-written" | "natural" | "natural-case-insensitive")
|
|
2358
|
-
optionalityOrder?: ("optional-first" | "required-first")
|
|
2359
|
-
})
|
|
2360
|
-
classes?: ("never" | (("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | {
|
|
2361
|
-
memberTypes?: ((("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | "never")
|
|
2362
|
-
order?: ("alphabetically" | "alphabetically-case-insensitive" | "as-written" | "natural" | "natural-case-insensitive")
|
|
2363
|
-
optionalityOrder?: ("optional-first" | "required-first")
|
|
2364
|
-
})
|
|
2365
|
-
classExpressions?: ("never" | (("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | {
|
|
2366
|
-
memberTypes?: ((("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization") | ("readonly-signature" | "signature" | "readonly-field" | "public-readonly-field" | "public-decorated-readonly-field" | "decorated-readonly-field" | "static-readonly-field" | "public-static-readonly-field" | "instance-readonly-field" | "public-instance-readonly-field" | "abstract-readonly-field" | "public-abstract-readonly-field" | "protected-readonly-field" | "protected-decorated-readonly-field" | "protected-static-readonly-field" | "protected-instance-readonly-field" | "protected-abstract-readonly-field" | "private-readonly-field" | "private-decorated-readonly-field" | "private-static-readonly-field" | "private-instance-readonly-field" | "#private-readonly-field" | "#private-static-readonly-field" | "#private-instance-readonly-field" | "field" | "public-field" | "public-decorated-field" | "decorated-field" | "static-field" | "public-static-field" | "instance-field" | "public-instance-field" | "abstract-field" | "public-abstract-field" | "protected-field" | "protected-decorated-field" | "protected-static-field" | "protected-instance-field" | "protected-abstract-field" | "private-field" | "private-decorated-field" | "private-static-field" | "private-instance-field" | "#private-field" | "#private-static-field" | "#private-instance-field" | "method" | "public-method" | "public-decorated-method" | "decorated-method" | "static-method" | "public-static-method" | "instance-method" | "public-instance-method" | "abstract-method" | "public-abstract-method" | "protected-method" | "protected-decorated-method" | "protected-static-method" | "protected-instance-method" | "protected-abstract-method" | "private-method" | "private-decorated-method" | "private-static-method" | "private-instance-method" | "#private-method" | "#private-static-method" | "#private-instance-method" | "call-signature" | "constructor" | "public-constructor" | "protected-constructor" | "private-constructor" | "accessor" | "public-accessor" | "public-decorated-accessor" | "decorated-accessor" | "static-accessor" | "public-static-accessor" | "instance-accessor" | "public-instance-accessor" | "abstract-accessor" | "public-abstract-accessor" | "protected-accessor" | "protected-decorated-accessor" | "protected-static-accessor" | "protected-instance-accessor" | "protected-abstract-accessor" | "private-accessor" | "private-decorated-accessor" | "private-static-accessor" | "private-instance-accessor" | "#private-accessor" | "#private-static-accessor" | "#private-instance-accessor" | "get" | "public-get" | "public-decorated-get" | "decorated-get" | "static-get" | "public-static-get" | "instance-get" | "public-instance-get" | "abstract-get" | "public-abstract-get" | "protected-get" | "protected-decorated-get" | "protected-static-get" | "protected-instance-get" | "protected-abstract-get" | "private-get" | "private-decorated-get" | "private-static-get" | "private-instance-get" | "#private-get" | "#private-static-get" | "#private-instance-get" | "set" | "public-set" | "public-decorated-set" | "decorated-set" | "static-set" | "public-static-set" | "instance-set" | "public-instance-set" | "abstract-set" | "public-abstract-set" | "protected-set" | "protected-decorated-set" | "protected-static-set" | "protected-instance-set" | "protected-abstract-set" | "private-set" | "private-decorated-set" | "private-static-set" | "private-instance-set" | "#private-set" | "#private-static-set" | "#private-instance-set" | "static-initialization" | "static-static-initialization" | "public-static-static-initialization" | "instance-static-initialization" | "public-instance-static-initialization" | "abstract-static-initialization" | "public-abstract-static-initialization" | "protected-static-static-initialization" | "protected-instance-static-initialization" | "protected-abstract-static-initialization" | "private-static-static-initialization" | "private-instance-static-initialization" | "#private-static-static-initialization" | "#private-instance-static-initialization")[])[] | "never")
|
|
2367
|
-
order?: ("alphabetically" | "alphabetically-case-insensitive" | "as-written" | "natural" | "natural-case-insensitive")
|
|
2368
|
-
optionalityOrder?: ("optional-first" | "required-first")
|
|
2369
|
-
})
|
|
2370
|
-
interfaces?: ("never" | (("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor") | ("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor")[])[] | {
|
|
2371
|
-
memberTypes?: ((("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor") | ("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor")[])[] | "never")
|
|
2372
|
-
order?: ("alphabetically" | "alphabetically-case-insensitive" | "as-written" | "natural" | "natural-case-insensitive")
|
|
2373
|
-
optionalityOrder?: ("optional-first" | "required-first")
|
|
2374
|
-
})
|
|
2375
|
-
typeLiterals?: ("never" | (("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor") | ("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor")[])[] | {
|
|
2376
|
-
memberTypes?: ((("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor") | ("readonly-signature" | "signature" | "readonly-field" | "field" | "method" | "constructor")[])[] | "never")
|
|
2377
|
-
order?: ("alphabetically" | "alphabetically-case-insensitive" | "as-written" | "natural" | "natural-case-insensitive")
|
|
2378
|
-
optionalityOrder?: ("optional-first" | "required-first")
|
|
2379
|
-
})
|
|
2380
|
-
}]
|
|
2381
|
-
// ----- @typescript-eslint/method-signature-style -----
|
|
2382
|
-
type TypescriptEslintMethodSignatureStyle = []|[("property" | "method")]
|
|
2383
|
-
// ----- @typescript-eslint/naming-convention -----
|
|
2384
|
-
type _TypescriptEslintNamingConventionFormatOptionsConfig = (_TypescriptEslintNamingConventionPredefinedFormats[] | null)
|
|
2385
|
-
type _TypescriptEslintNamingConventionPredefinedFormats = ("camelCase" | "strictCamelCase" | "PascalCase" | "StrictPascalCase" | "snake_case" | "UPPER_CASE")
|
|
2386
|
-
type _TypescriptEslintNamingConventionUnderscoreOptions = ("forbid" | "allow" | "require" | "requireDouble" | "allowDouble" | "allowSingleOrDouble")
|
|
2387
|
-
type _TypescriptEslintNamingConvention_PrefixSuffixConfig = string[]
|
|
2388
|
-
type _TypescriptEslintNamingConventionTypeModifiers = ("boolean" | "string" | "number" | "function" | "array")
|
|
2389
|
-
type TypescriptEslintNamingConvention = ({
|
|
2390
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2391
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2392
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2393
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2394
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2395
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2396
|
-
failureMessage?: string
|
|
2397
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2398
|
-
selector: ("default" | "variableLike" | "memberLike" | "typeLike" | "method" | "property" | "accessor" | "variable" | "function" | "parameter" | "parameterProperty" | "classicAccessor" | "enumMember" | "classMethod" | "objectLiteralMethod" | "typeMethod" | "classProperty" | "objectLiteralProperty" | "typeProperty" | "autoAccessor" | "class" | "interface" | "typeAlias" | "enum" | "typeParameter" | "import")[]
|
|
2399
|
-
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace")[]
|
|
2400
|
-
types?: _TypescriptEslintNamingConventionTypeModifiers[]
|
|
2401
|
-
} | {
|
|
2402
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2403
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2404
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2405
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2406
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2407
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2408
|
-
failureMessage?: string
|
|
2409
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2410
|
-
selector: "default"
|
|
2411
|
-
modifiers?: ("const" | "readonly" | "static" | "public" | "protected" | "private" | "#private" | "abstract" | "destructured" | "global" | "exported" | "unused" | "requiresQuotes" | "override" | "async" | "default" | "namespace")[]
|
|
2412
|
-
} | {
|
|
2413
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2414
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2415
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2416
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2417
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2418
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2419
|
-
failureMessage?: string
|
|
2420
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2421
|
-
selector: "variableLike"
|
|
2422
|
-
modifiers?: ("unused" | "async")[]
|
|
2423
|
-
} | {
|
|
2424
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2425
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2426
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2427
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2428
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2429
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2430
|
-
failureMessage?: string
|
|
2431
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2432
|
-
selector: "variable"
|
|
2433
|
-
modifiers?: ("const" | "destructured" | "exported" | "global" | "unused" | "async")[]
|
|
2434
|
-
types?: _TypescriptEslintNamingConventionTypeModifiers[]
|
|
2435
|
-
} | {
|
|
2436
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2437
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2438
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2439
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2440
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2441
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2442
|
-
failureMessage?: string
|
|
2443
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2444
|
-
selector: "function"
|
|
2445
|
-
modifiers?: ("exported" | "global" | "unused" | "async")[]
|
|
2446
|
-
} | {
|
|
2447
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2448
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2449
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2450
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2451
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2452
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2453
|
-
failureMessage?: string
|
|
2454
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2455
|
-
selector: "parameter"
|
|
2456
|
-
modifiers?: ("destructured" | "unused")[]
|
|
2457
|
-
types?: _TypescriptEslintNamingConventionTypeModifiers[]
|
|
2458
|
-
} | {
|
|
2459
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2460
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2461
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2462
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2463
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2464
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2465
|
-
failureMessage?: string
|
|
2466
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2467
|
-
selector: "memberLike"
|
|
2468
|
-
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "readonly" | "requiresQuotes" | "static" | "override" | "async")[]
|
|
2469
|
-
} | {
|
|
2470
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2471
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2472
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2473
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2474
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2475
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2476
|
-
failureMessage?: string
|
|
2477
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2478
|
-
selector: "classProperty"
|
|
2479
|
-
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "readonly" | "requiresQuotes" | "static" | "override")[]
|
|
2480
|
-
types?: _TypescriptEslintNamingConventionTypeModifiers[]
|
|
2481
|
-
} | {
|
|
2482
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2483
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2484
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2485
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2486
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2487
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2488
|
-
failureMessage?: string
|
|
2489
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2490
|
-
selector: "objectLiteralProperty"
|
|
2491
|
-
modifiers?: ("public" | "requiresQuotes")[]
|
|
2492
|
-
types?: _TypescriptEslintNamingConventionTypeModifiers[]
|
|
2493
|
-
} | {
|
|
2494
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2495
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2496
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2497
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2498
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2499
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2500
|
-
failureMessage?: string
|
|
2501
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2502
|
-
selector: "typeProperty"
|
|
2503
|
-
modifiers?: ("public" | "readonly" | "requiresQuotes")[]
|
|
2504
|
-
types?: _TypescriptEslintNamingConventionTypeModifiers[]
|
|
2505
|
-
} | {
|
|
2506
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2507
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2508
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2509
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2510
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2511
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2512
|
-
failureMessage?: string
|
|
2513
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2514
|
-
selector: "parameterProperty"
|
|
2515
|
-
modifiers?: ("private" | "protected" | "public" | "readonly")[]
|
|
2516
|
-
types?: _TypescriptEslintNamingConventionTypeModifiers[]
|
|
2517
|
-
} | {
|
|
2518
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2519
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2520
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2521
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2522
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2523
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2524
|
-
failureMessage?: string
|
|
2525
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2526
|
-
selector: "property"
|
|
2527
|
-
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "readonly" | "requiresQuotes" | "static" | "override" | "async")[]
|
|
2528
|
-
types?: _TypescriptEslintNamingConventionTypeModifiers[]
|
|
2529
|
-
} | {
|
|
2530
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2531
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2532
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2533
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2534
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2535
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2536
|
-
failureMessage?: string
|
|
2537
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2538
|
-
selector: "classMethod"
|
|
2539
|
-
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "requiresQuotes" | "static" | "override" | "async")[]
|
|
2540
|
-
} | {
|
|
2541
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2542
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2543
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2544
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2545
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2546
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2547
|
-
failureMessage?: string
|
|
2548
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2549
|
-
selector: "objectLiteralMethod"
|
|
2550
|
-
modifiers?: ("public" | "requiresQuotes" | "async")[]
|
|
2551
|
-
} | {
|
|
2552
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2553
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2554
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2555
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2556
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2557
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2558
|
-
failureMessage?: string
|
|
2559
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2560
|
-
selector: "typeMethod"
|
|
2561
|
-
modifiers?: ("public" | "requiresQuotes")[]
|
|
2562
|
-
} | {
|
|
2563
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2564
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2565
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2566
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2567
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2568
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2569
|
-
failureMessage?: string
|
|
2570
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2571
|
-
selector: "method"
|
|
2572
|
-
modifiers?: ("abstract" | "private" | "#private" | "protected" | "public" | "requiresQuotes" | "static" | "override" | "async")[]
|
|
2573
|
-
} | {
|
|
2574
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2575
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2576
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2577
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2578
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2579
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2580
|
-
failureMessage?: string
|
|
2581
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2582
|
-
selector: "classicAccessor"
|
|
2583
|
-
modifiers?: ("abstract" | "private" | "protected" | "public" | "requiresQuotes" | "static" | "override")[]
|
|
2584
|
-
types?: _TypescriptEslintNamingConventionTypeModifiers[]
|
|
2585
|
-
} | {
|
|
2586
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2587
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2588
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2589
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2590
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2591
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2592
|
-
failureMessage?: string
|
|
2593
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2594
|
-
selector: "autoAccessor"
|
|
2595
|
-
modifiers?: ("abstract" | "private" | "protected" | "public" | "requiresQuotes" | "static" | "override")[]
|
|
2596
|
-
types?: _TypescriptEslintNamingConventionTypeModifiers[]
|
|
2597
|
-
} | {
|
|
2598
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2599
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2600
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2601
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2602
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2603
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2604
|
-
failureMessage?: string
|
|
2605
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2606
|
-
selector: "accessor"
|
|
2607
|
-
modifiers?: ("abstract" | "private" | "protected" | "public" | "requiresQuotes" | "static" | "override")[]
|
|
2608
|
-
types?: _TypescriptEslintNamingConventionTypeModifiers[]
|
|
2609
|
-
} | {
|
|
2610
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2611
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2612
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2613
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2614
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2615
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2616
|
-
failureMessage?: string
|
|
2617
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2618
|
-
selector: "enumMember"
|
|
2619
|
-
modifiers?: ("requiresQuotes")[]
|
|
2620
|
-
} | {
|
|
2621
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2622
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2623
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2624
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2625
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2626
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2627
|
-
failureMessage?: string
|
|
2628
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2629
|
-
selector: "typeLike"
|
|
2630
|
-
modifiers?: ("abstract" | "exported" | "unused")[]
|
|
2631
|
-
} | {
|
|
2632
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2633
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2634
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2635
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2636
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2637
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2638
|
-
failureMessage?: string
|
|
2639
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2640
|
-
selector: "class"
|
|
2641
|
-
modifiers?: ("abstract" | "exported" | "unused")[]
|
|
2642
|
-
} | {
|
|
2643
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2644
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2645
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2646
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2647
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2648
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2649
|
-
failureMessage?: string
|
|
2650
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2651
|
-
selector: "interface"
|
|
2652
|
-
modifiers?: ("exported" | "unused")[]
|
|
2653
|
-
} | {
|
|
2654
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2655
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2656
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2657
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2658
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2659
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2660
|
-
failureMessage?: string
|
|
2661
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2662
|
-
selector: "typeAlias"
|
|
2663
|
-
modifiers?: ("exported" | "unused")[]
|
|
2664
|
-
} | {
|
|
2665
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2666
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2667
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2668
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2669
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2670
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2671
|
-
failureMessage?: string
|
|
2672
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2673
|
-
selector: "enum"
|
|
2674
|
-
modifiers?: ("exported" | "unused")[]
|
|
2675
|
-
} | {
|
|
2676
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2677
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2678
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2679
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2680
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2681
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2682
|
-
failureMessage?: string
|
|
2683
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2684
|
-
selector: "typeParameter"
|
|
2685
|
-
modifiers?: ("unused")[]
|
|
2686
|
-
} | {
|
|
2687
|
-
format: _TypescriptEslintNamingConventionFormatOptionsConfig
|
|
2688
|
-
custom?: _TypescriptEslintNamingConvention_MatchRegexConfig
|
|
2689
|
-
leadingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2690
|
-
trailingUnderscore?: _TypescriptEslintNamingConventionUnderscoreOptions
|
|
2691
|
-
prefix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2692
|
-
suffix?: _TypescriptEslintNamingConvention_PrefixSuffixConfig
|
|
2693
|
-
failureMessage?: string
|
|
2694
|
-
filter?: (string | _TypescriptEslintNamingConvention_MatchRegexConfig)
|
|
2695
|
-
selector: "import"
|
|
2696
|
-
modifiers?: ("default" | "namespace")[]
|
|
2697
|
-
})[]
|
|
2698
|
-
interface _TypescriptEslintNamingConvention_MatchRegexConfig {
|
|
2699
|
-
match: boolean
|
|
2700
|
-
regex: string
|
|
816
|
+
* disallow tabs for indentation.
|
|
817
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-tab-indent.html
|
|
818
|
+
*/
|
|
819
|
+
'yml/no-tab-indent'?: Linter.RuleEntry<[]>
|
|
820
|
+
/**
|
|
821
|
+
* disallow trailing zeros for floats
|
|
822
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/no-trailing-zeros.html
|
|
823
|
+
*/
|
|
824
|
+
'yml/no-trailing-zeros'?: Linter.RuleEntry<[]>
|
|
825
|
+
/**
|
|
826
|
+
* require or disallow plain style scalar.
|
|
827
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/plain-scalar.html
|
|
828
|
+
*/
|
|
829
|
+
'yml/plain-scalar'?: Linter.RuleEntry<YmlPlainScalar>
|
|
830
|
+
/**
|
|
831
|
+
* enforce the consistent use of either double, or single quotes
|
|
832
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/quotes.html
|
|
833
|
+
*/
|
|
834
|
+
'yml/quotes'?: Linter.RuleEntry<YmlQuotes>
|
|
835
|
+
/**
|
|
836
|
+
* disallow mapping keys other than strings
|
|
837
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/require-string-key.html
|
|
838
|
+
*/
|
|
839
|
+
'yml/require-string-key'?: Linter.RuleEntry<[]>
|
|
840
|
+
/**
|
|
841
|
+
* require mapping keys to be sorted
|
|
842
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/sort-keys.html
|
|
843
|
+
*/
|
|
844
|
+
'yml/sort-keys'?: Linter.RuleEntry<YmlSortKeys>
|
|
845
|
+
/**
|
|
846
|
+
* require sequence values to be sorted
|
|
847
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/sort-sequence-values.html
|
|
848
|
+
*/
|
|
849
|
+
'yml/sort-sequence-values'?: Linter.RuleEntry<YmlSortSequenceValues>
|
|
850
|
+
/**
|
|
851
|
+
* enforce consistent spacing after the `#` in a comment
|
|
852
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/spaced-comment.html
|
|
853
|
+
*/
|
|
854
|
+
'yml/spaced-comment'?: Linter.RuleEntry<YmlSpacedComment>
|
|
855
|
+
/**
|
|
856
|
+
* disallow parsing errors in Vue custom blocks
|
|
857
|
+
* @see https://ota-meshi.github.io/eslint-plugin-yml/rules/vue-custom-block/no-parsing-error.html
|
|
858
|
+
*/
|
|
859
|
+
'yml/vue-custom-block/no-parsing-error'?: Linter.RuleEntry<[]>
|
|
2701
860
|
}
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
// ----- @typescript-eslint/no-confusing-void-expression -----
|
|
2707
|
-
type TypescriptEslintNoConfusingVoidExpression = []|[{
|
|
2708
|
-
ignoreArrowShorthand?: boolean
|
|
2709
|
-
ignoreVoidOperator?: boolean
|
|
2710
|
-
}]
|
|
2711
|
-
// ----- @typescript-eslint/no-duplicate-type-constituents -----
|
|
2712
|
-
type TypescriptEslintNoDuplicateTypeConstituents = []|[{
|
|
2713
|
-
ignoreIntersections?: boolean
|
|
2714
|
-
ignoreUnions?: boolean
|
|
2715
|
-
}]
|
|
2716
|
-
// ----- @typescript-eslint/no-empty-function -----
|
|
2717
|
-
type TypescriptEslintNoEmptyFunction = []|[{
|
|
2718
|
-
allow?: ("functions" | "arrowFunctions" | "generatorFunctions" | "methods" | "generatorMethods" | "getters" | "setters" | "constructors" | "private-constructors" | "protected-constructors" | "asyncFunctions" | "asyncMethods" | "decoratedFunctions" | "overrideMethods")[]
|
|
2719
|
-
}]
|
|
2720
|
-
// ----- @typescript-eslint/no-empty-interface -----
|
|
2721
|
-
type TypescriptEslintNoEmptyInterface = []|[{
|
|
2722
|
-
allowSingleExtends?: boolean
|
|
2723
|
-
}]
|
|
2724
|
-
// ----- @typescript-eslint/no-empty-object-type -----
|
|
2725
|
-
type TypescriptEslintNoEmptyObjectType = []|[{
|
|
2726
|
-
allowInterfaces?: ("always" | "never" | "with-single-extends")
|
|
2727
|
-
allowObjectTypes?: ("always" | "in-type-alias-with-name" | "never")
|
|
2728
|
-
allowWithName?: string
|
|
2729
|
-
}]
|
|
2730
|
-
// ----- @typescript-eslint/no-explicit-any -----
|
|
2731
|
-
type TypescriptEslintNoExplicitAny = []|[{
|
|
2732
|
-
|
|
2733
|
-
fixToUnknown?: boolean
|
|
2734
|
-
|
|
2735
|
-
ignoreRestArgs?: boolean
|
|
2736
|
-
}]
|
|
2737
|
-
// ----- @typescript-eslint/no-extra-parens -----
|
|
2738
|
-
type TypescriptEslintNoExtraParens = ([]|["functions"] | []|["all"]|["all", {
|
|
2739
|
-
conditionalAssign?: boolean
|
|
2740
|
-
ternaryOperandBinaryExpressions?: boolean
|
|
2741
|
-
nestedBinaryExpressions?: boolean
|
|
2742
|
-
returnAssign?: boolean
|
|
2743
|
-
ignoreJSX?: ("none" | "all" | "single-line" | "multi-line")
|
|
2744
|
-
enforceForArrowConditionals?: boolean
|
|
2745
|
-
enforceForSequenceExpressions?: boolean
|
|
2746
|
-
enforceForNewInMemberExpressions?: boolean
|
|
2747
|
-
enforceForFunctionPrototypeMethods?: boolean
|
|
2748
|
-
allowParensAfterCommentPattern?: string
|
|
2749
|
-
}])
|
|
2750
|
-
// ----- @typescript-eslint/no-extraneous-class -----
|
|
2751
|
-
type TypescriptEslintNoExtraneousClass = []|[{
|
|
2752
|
-
|
|
2753
|
-
allowConstructorOnly?: boolean
|
|
2754
|
-
|
|
2755
|
-
allowEmpty?: boolean
|
|
861
|
+
|
|
862
|
+
/* ======= Declarations ======= */
|
|
863
|
+
// ----- @cspell/spellchecker -----
|
|
864
|
+
type CspellSpellchecker = []|[{
|
|
2756
865
|
|
|
2757
|
-
|
|
866
|
+
autoFix: boolean
|
|
2758
867
|
|
|
2759
|
-
|
|
2760
|
-
}]
|
|
2761
|
-
// ----- @typescript-eslint/no-floating-promises -----
|
|
2762
|
-
type TypescriptEslintNoFloatingPromises = []|[{
|
|
2763
|
-
allowForKnownSafePromises?: (string | {
|
|
2764
|
-
from: "file"
|
|
2765
|
-
name: (string | [string, ...(string)[]])
|
|
2766
|
-
path?: string
|
|
2767
|
-
} | {
|
|
2768
|
-
from: "lib"
|
|
2769
|
-
name: (string | [string, ...(string)[]])
|
|
2770
|
-
} | {
|
|
2771
|
-
from: "package"
|
|
2772
|
-
name: (string | [string, ...(string)[]])
|
|
2773
|
-
package: string
|
|
2774
|
-
})[]
|
|
868
|
+
checkComments?: boolean
|
|
2775
869
|
|
|
2776
|
-
|
|
870
|
+
checkIdentifiers?: boolean
|
|
2777
871
|
|
|
2778
|
-
|
|
872
|
+
checkJSXText?: boolean
|
|
2779
873
|
|
|
2780
|
-
|
|
2781
|
-
}]
|
|
2782
|
-
// ----- @typescript-eslint/no-inferrable-types -----
|
|
2783
|
-
type TypescriptEslintNoInferrableTypes = []|[{
|
|
2784
|
-
ignoreParameters?: boolean
|
|
2785
|
-
ignoreProperties?: boolean
|
|
2786
|
-
}]
|
|
2787
|
-
// ----- @typescript-eslint/no-invalid-this -----
|
|
2788
|
-
type TypescriptEslintNoInvalidThis = []|[{
|
|
2789
|
-
capIsConstructor?: boolean
|
|
2790
|
-
}]
|
|
2791
|
-
// ----- @typescript-eslint/no-invalid-void-type -----
|
|
2792
|
-
type TypescriptEslintNoInvalidVoidType = []|[{
|
|
2793
|
-
allowInGenericTypeArguments?: (boolean | [string, ...(string)[]])
|
|
2794
|
-
allowAsThisParameter?: boolean
|
|
2795
|
-
}]
|
|
2796
|
-
// ----- @typescript-eslint/no-magic-numbers -----
|
|
2797
|
-
type TypescriptEslintNoMagicNumbers = []|[{
|
|
2798
|
-
detectObjects?: boolean
|
|
2799
|
-
enforceConst?: boolean
|
|
2800
|
-
ignore?: (number | string)[]
|
|
2801
|
-
ignoreArrayIndexes?: boolean
|
|
2802
|
-
ignoreDefaultValues?: boolean
|
|
2803
|
-
ignoreClassFieldInitialValues?: boolean
|
|
2804
|
-
ignoreNumericLiteralTypes?: boolean
|
|
2805
|
-
ignoreEnums?: boolean
|
|
2806
|
-
ignoreReadonlyClassProperties?: boolean
|
|
2807
|
-
ignoreTypeIndexes?: boolean
|
|
2808
|
-
}]
|
|
2809
|
-
// ----- @typescript-eslint/no-meaningless-void-operator -----
|
|
2810
|
-
type TypescriptEslintNoMeaninglessVoidOperator = []|[{
|
|
2811
|
-
checkNever?: boolean
|
|
2812
|
-
}]
|
|
2813
|
-
// ----- @typescript-eslint/no-misused-promises -----
|
|
2814
|
-
type TypescriptEslintNoMisusedPromises = []|[{
|
|
2815
|
-
checksConditionals?: boolean
|
|
2816
|
-
checksVoidReturn?: (boolean | {
|
|
2817
|
-
arguments?: boolean
|
|
2818
|
-
attributes?: boolean
|
|
2819
|
-
properties?: boolean
|
|
2820
|
-
returns?: boolean
|
|
2821
|
-
variables?: boolean
|
|
2822
|
-
})
|
|
2823
|
-
checksSpreads?: boolean
|
|
2824
|
-
}]
|
|
2825
|
-
// ----- @typescript-eslint/no-namespace -----
|
|
2826
|
-
type TypescriptEslintNoNamespace = []|[{
|
|
874
|
+
checkScope?: [string, boolean][]
|
|
2827
875
|
|
|
2828
|
-
|
|
876
|
+
checkStringTemplates?: boolean
|
|
2829
877
|
|
|
2830
|
-
|
|
2831
|
-
}]
|
|
2832
|
-
// ----- @typescript-eslint/no-redeclare -----
|
|
2833
|
-
type TypescriptEslintNoRedeclare = []|[{
|
|
2834
|
-
builtinGlobals?: boolean
|
|
2835
|
-
ignoreDeclarationMerge?: boolean
|
|
2836
|
-
}]
|
|
2837
|
-
// ----- @typescript-eslint/no-require-imports -----
|
|
2838
|
-
type TypescriptEslintNoRequireImports = []|[{
|
|
878
|
+
checkStrings?: boolean
|
|
2839
879
|
|
|
2840
|
-
|
|
2841
|
-
}]
|
|
2842
|
-
// ----- @typescript-eslint/no-restricted-imports -----
|
|
2843
|
-
type TypescriptEslintNoRestrictedImports = ((string | {
|
|
2844
|
-
name: string
|
|
2845
|
-
message?: string
|
|
2846
|
-
importNames?: string[]
|
|
2847
|
-
allowImportNames?: string[]
|
|
880
|
+
configFile?: string
|
|
2848
881
|
|
|
2849
|
-
|
|
2850
|
-
})[] | []|[{
|
|
2851
|
-
paths?: (string | {
|
|
2852
|
-
name: string
|
|
2853
|
-
message?: string
|
|
2854
|
-
importNames?: string[]
|
|
2855
|
-
allowImportNames?: string[]
|
|
882
|
+
cspell?: {
|
|
2856
883
|
|
|
2857
|
-
|
|
2858
|
-
})[]
|
|
2859
|
-
patterns?: (string[] | {
|
|
884
|
+
allowCompoundWords?: boolean
|
|
2860
885
|
|
|
2861
|
-
|
|
886
|
+
dictionaries?: (string | string)[]
|
|
887
|
+
dictionaryDefinitions?: {
|
|
888
|
+
|
|
889
|
+
description?: string
|
|
890
|
+
|
|
891
|
+
name: string
|
|
892
|
+
|
|
893
|
+
noSuggest?: boolean
|
|
894
|
+
|
|
895
|
+
path: string
|
|
896
|
+
|
|
897
|
+
repMap?: [string, string][]
|
|
898
|
+
|
|
899
|
+
type?: ("S" | "W" | "C" | "T")
|
|
900
|
+
|
|
901
|
+
useCompounds?: boolean
|
|
902
|
+
}[]
|
|
2862
903
|
|
|
2863
|
-
|
|
904
|
+
enabled?: boolean
|
|
2864
905
|
|
|
2865
|
-
|
|
2866
|
-
importNamePattern?: string
|
|
2867
|
-
allowImportNamePattern?: string
|
|
2868
|
-
message?: string
|
|
2869
|
-
caseSensitive?: boolean
|
|
906
|
+
flagWords?: string[]
|
|
2870
907
|
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
}]
|
|
2883
|
-
// ----- @typescript-eslint/no-this-alias -----
|
|
2884
|
-
type TypescriptEslintNoThisAlias = []|[{
|
|
2885
|
-
|
|
2886
|
-
allowDestructuring?: boolean
|
|
2887
|
-
|
|
2888
|
-
allowedNames?: string[]
|
|
2889
|
-
}]
|
|
2890
|
-
// ----- @typescript-eslint/no-throw-literal -----
|
|
2891
|
-
type TypescriptEslintNoThrowLiteral = []|[{
|
|
2892
|
-
allowThrowingAny?: boolean
|
|
2893
|
-
allowThrowingUnknown?: boolean
|
|
2894
|
-
}]
|
|
2895
|
-
// ----- @typescript-eslint/no-type-alias -----
|
|
2896
|
-
type TypescriptEslintNoTypeAlias = []|[{
|
|
2897
|
-
|
|
2898
|
-
allowAliases?: ("always" | "never" | "in-unions" | "in-intersections" | "in-unions-and-intersections")
|
|
2899
|
-
|
|
2900
|
-
allowCallbacks?: ("always" | "never")
|
|
2901
|
-
|
|
2902
|
-
allowConditionalTypes?: ("always" | "never")
|
|
2903
|
-
|
|
2904
|
-
allowConstructors?: ("always" | "never")
|
|
2905
|
-
|
|
2906
|
-
allowLiterals?: ("always" | "never" | "in-unions" | "in-intersections" | "in-unions-and-intersections")
|
|
2907
|
-
|
|
2908
|
-
allowMappedTypes?: ("always" | "never" | "in-unions" | "in-intersections" | "in-unions-and-intersections")
|
|
2909
|
-
|
|
2910
|
-
allowTupleTypes?: ("always" | "never" | "in-unions" | "in-intersections" | "in-unions-and-intersections")
|
|
2911
|
-
|
|
2912
|
-
allowGenerics?: ("always" | "never")
|
|
2913
|
-
}]
|
|
2914
|
-
// ----- @typescript-eslint/no-unnecessary-boolean-literal-compare -----
|
|
2915
|
-
type TypescriptEslintNoUnnecessaryBooleanLiteralCompare = []|[{
|
|
2916
|
-
|
|
2917
|
-
allowComparingNullableBooleansToTrue?: boolean
|
|
2918
|
-
|
|
2919
|
-
allowComparingNullableBooleansToFalse?: boolean
|
|
2920
|
-
}]
|
|
2921
|
-
// ----- @typescript-eslint/no-unnecessary-condition -----
|
|
2922
|
-
type TypescriptEslintNoUnnecessaryCondition = []|[{
|
|
2923
|
-
|
|
2924
|
-
allowConstantLoopConditions?: boolean
|
|
2925
|
-
|
|
2926
|
-
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
2927
|
-
}]
|
|
2928
|
-
// ----- @typescript-eslint/no-unnecessary-type-assertion -----
|
|
2929
|
-
type TypescriptEslintNoUnnecessaryTypeAssertion = []|[{
|
|
2930
|
-
|
|
2931
|
-
typesToIgnore?: string[]
|
|
2932
|
-
}]
|
|
2933
|
-
// ----- @typescript-eslint/no-unused-expressions -----
|
|
2934
|
-
type TypescriptEslintNoUnusedExpressions = []|[{
|
|
2935
|
-
allowShortCircuit?: boolean
|
|
2936
|
-
allowTernary?: boolean
|
|
2937
|
-
allowTaggedTemplates?: boolean
|
|
2938
|
-
enforceForJSX?: boolean
|
|
2939
|
-
}]
|
|
2940
|
-
// ----- @typescript-eslint/no-unused-vars -----
|
|
2941
|
-
type TypescriptEslintNoUnusedVars = []|[(("all" | "local") | {
|
|
2942
|
-
vars?: ("all" | "local")
|
|
2943
|
-
varsIgnorePattern?: string
|
|
2944
|
-
args?: ("all" | "after-used" | "none")
|
|
2945
|
-
ignoreRestSiblings?: boolean
|
|
2946
|
-
argsIgnorePattern?: string
|
|
2947
|
-
caughtErrors?: ("all" | "none")
|
|
2948
|
-
caughtErrorsIgnorePattern?: string
|
|
2949
|
-
destructuredArrayIgnorePattern?: string
|
|
2950
|
-
})]
|
|
2951
|
-
// ----- @typescript-eslint/no-use-before-define -----
|
|
2952
|
-
type TypescriptEslintNoUseBeforeDefine = []|[("nofunc" | {
|
|
2953
|
-
functions?: boolean
|
|
2954
|
-
classes?: boolean
|
|
2955
|
-
enums?: boolean
|
|
2956
|
-
variables?: boolean
|
|
2957
|
-
typedefs?: boolean
|
|
2958
|
-
ignoreTypeReferences?: boolean
|
|
2959
|
-
allowNamedExports?: boolean
|
|
2960
|
-
})]
|
|
2961
|
-
// ----- @typescript-eslint/no-var-requires -----
|
|
2962
|
-
type TypescriptEslintNoVarRequires = []|[{
|
|
2963
|
-
|
|
2964
|
-
allow?: string[]
|
|
2965
|
-
}]
|
|
2966
|
-
// ----- @typescript-eslint/object-curly-spacing -----
|
|
2967
|
-
type TypescriptEslintObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
2968
|
-
arraysInObjects?: boolean
|
|
2969
|
-
objectsInObjects?: boolean
|
|
2970
|
-
}]
|
|
2971
|
-
// ----- @typescript-eslint/only-throw-error -----
|
|
2972
|
-
type TypescriptEslintOnlyThrowError = []|[{
|
|
2973
|
-
allowThrowingAny?: boolean
|
|
2974
|
-
allowThrowingUnknown?: boolean
|
|
2975
|
-
}]
|
|
2976
|
-
// ----- @typescript-eslint/padding-line-between-statements -----
|
|
2977
|
-
type _TypescriptEslintPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always")
|
|
2978
|
-
type _TypescriptEslintPaddingLineBetweenStatementsStatementType = (("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "interface" | "type") | [("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "interface" | "type"), ...(("*" | "block-like" | "exports" | "require" | "directive" | "expression" | "iife" | "multiline-block-like" | "multiline-expression" | "multiline-const" | "multiline-let" | "multiline-var" | "singleline-const" | "singleline-let" | "singleline-var" | "block" | "empty" | "function" | "break" | "case" | "class" | "const" | "continue" | "debugger" | "default" | "do" | "export" | "for" | "if" | "import" | "let" | "return" | "switch" | "throw" | "try" | "var" | "while" | "with" | "interface" | "type"))[]])
|
|
2979
|
-
type TypescriptEslintPaddingLineBetweenStatements = {
|
|
2980
|
-
blankLine: _TypescriptEslintPaddingLineBetweenStatementsPaddingType
|
|
2981
|
-
prev: _TypescriptEslintPaddingLineBetweenStatementsStatementType
|
|
2982
|
-
next: _TypescriptEslintPaddingLineBetweenStatementsStatementType
|
|
2983
|
-
}[]
|
|
2984
|
-
// ----- @typescript-eslint/parameter-properties -----
|
|
2985
|
-
type TypescriptEslintParameterProperties = []|[{
|
|
2986
|
-
allow?: ("readonly" | "private" | "protected" | "public" | "private readonly" | "protected readonly" | "public readonly")[]
|
|
2987
|
-
prefer?: ("class-property" | "parameter-property")
|
|
2988
|
-
}]
|
|
2989
|
-
// ----- @typescript-eslint/prefer-destructuring -----
|
|
2990
|
-
type TypescriptEslintPreferDestructuring = []|[({
|
|
2991
|
-
VariableDeclarator?: {
|
|
2992
|
-
array?: boolean
|
|
2993
|
-
object?: boolean
|
|
2994
|
-
}
|
|
2995
|
-
AssignmentExpression?: {
|
|
2996
|
-
array?: boolean
|
|
2997
|
-
object?: boolean
|
|
2998
|
-
}
|
|
2999
|
-
} | {
|
|
3000
|
-
array?: boolean
|
|
3001
|
-
object?: boolean
|
|
3002
|
-
})]|[({
|
|
3003
|
-
VariableDeclarator?: {
|
|
3004
|
-
array?: boolean
|
|
3005
|
-
object?: boolean
|
|
3006
|
-
}
|
|
3007
|
-
AssignmentExpression?: {
|
|
3008
|
-
array?: boolean
|
|
3009
|
-
object?: boolean
|
|
908
|
+
ignoreRegExpList?: (string | string | ("Base64" | "Base64MultiLine" | "Base64SingleLine" | "CStyleComment" | "CStyleHexValue" | "CSSHexValue" | "CommitHash" | "CommitHashLink" | "Email" | "EscapeCharacters" | "HexValues" | "href" | "PhpHereDoc" | "PublicKey" | "RsaCert" | "SshRsa" | "SHA" | "HashStrings" | "SpellCheckerDisable" | "SpellCheckerDisableBlock" | "SpellCheckerDisableLine" | "SpellCheckerDisableNext" | "SpellCheckerIgnoreInDocSetting" | "string" | "UnicodeRef" | "Urls" | "UUID" | "Everything"))[]
|
|
909
|
+
|
|
910
|
+
ignoreWords?: string[]
|
|
911
|
+
|
|
912
|
+
import?: (string | string[])
|
|
913
|
+
|
|
914
|
+
includeRegExpList?: (string | string | ("Base64" | "Base64MultiLine" | "Base64SingleLine" | "CStyleComment" | "CStyleHexValue" | "CSSHexValue" | "CommitHash" | "CommitHashLink" | "Email" | "EscapeCharacters" | "HexValues" | "href" | "PhpHereDoc" | "PublicKey" | "RsaCert" | "SshRsa" | "SHA" | "HashStrings" | "SpellCheckerDisable" | "SpellCheckerDisableBlock" | "SpellCheckerDisableLine" | "SpellCheckerDisableNext" | "SpellCheckerIgnoreInDocSetting" | "string" | "UnicodeRef" | "Urls" | "UUID" | "Everything"))[]
|
|
915
|
+
|
|
916
|
+
language?: string
|
|
917
|
+
|
|
918
|
+
words?: string[]
|
|
3010
919
|
}
|
|
3011
|
-
} | {
|
|
3012
|
-
array?: boolean
|
|
3013
|
-
object?: boolean
|
|
3014
|
-
}), {
|
|
3015
|
-
enforceForRenamedProperties?: boolean
|
|
3016
|
-
enforceForDeclarationWithTypeAnnotation?: boolean
|
|
3017
|
-
[k: string]: unknown | undefined
|
|
3018
|
-
}]
|
|
3019
|
-
// ----- @typescript-eslint/prefer-literal-enum-member -----
|
|
3020
|
-
type TypescriptEslintPreferLiteralEnumMember = []|[{
|
|
3021
|
-
allowBitwiseExpressions?: boolean
|
|
3022
|
-
}]
|
|
3023
|
-
// ----- @typescript-eslint/prefer-nullish-coalescing -----
|
|
3024
|
-
type TypescriptEslintPreferNullishCoalescing = []|[{
|
|
3025
|
-
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
3026
|
-
ignoreConditionalTests?: boolean
|
|
3027
|
-
ignoreMixedLogicalExpressions?: boolean
|
|
3028
|
-
ignorePrimitives?: ({
|
|
3029
|
-
bigint?: boolean
|
|
3030
|
-
boolean?: boolean
|
|
3031
|
-
number?: boolean
|
|
3032
|
-
string?: boolean
|
|
3033
|
-
[k: string]: unknown | undefined
|
|
3034
|
-
} | true)
|
|
3035
|
-
ignoreTernaryTests?: boolean
|
|
3036
|
-
}]
|
|
3037
|
-
// ----- @typescript-eslint/prefer-optional-chain -----
|
|
3038
|
-
type TypescriptEslintPreferOptionalChain = []|[{
|
|
3039
|
-
|
|
3040
|
-
checkAny?: boolean
|
|
3041
920
|
|
|
3042
|
-
|
|
921
|
+
cspellOptionsRoot?: (string | string)
|
|
3043
922
|
|
|
3044
|
-
|
|
923
|
+
customWordListFile?: (string | {
|
|
924
|
+
|
|
925
|
+
path: string
|
|
926
|
+
})
|
|
3045
927
|
|
|
3046
|
-
|
|
928
|
+
debugMode?: boolean
|
|
3047
929
|
|
|
3048
|
-
|
|
930
|
+
generateSuggestions: boolean
|
|
3049
931
|
|
|
3050
|
-
|
|
932
|
+
ignoreImportProperties?: boolean
|
|
3051
933
|
|
|
3052
|
-
|
|
934
|
+
ignoreImports?: boolean
|
|
3053
935
|
|
|
3054
|
-
|
|
3055
|
-
}]
|
|
3056
|
-
// ----- @typescript-eslint/prefer-promise-reject-errors -----
|
|
3057
|
-
type TypescriptEslintPreferPromiseRejectErrors = []|[{
|
|
3058
|
-
allowEmptyReject?: boolean
|
|
936
|
+
numSuggestions: number
|
|
3059
937
|
}]
|
|
3060
|
-
// ----- @
|
|
3061
|
-
type
|
|
3062
|
-
|
|
938
|
+
// ----- @nx/dependency-checks -----
|
|
939
|
+
type NxDependencyChecks = []|[{
|
|
940
|
+
buildTargets?: string[]
|
|
941
|
+
ignoredDependencies?: string[]
|
|
942
|
+
ignoredFiles?: string[]
|
|
943
|
+
checkMissingDependencies?: boolean
|
|
944
|
+
checkObsoleteDependencies?: boolean
|
|
945
|
+
checkVersionMismatches?: boolean
|
|
946
|
+
includeTransitiveDependencies?: boolean
|
|
947
|
+
useLocalPathsForWorkspaceDependencies?: boolean
|
|
3063
948
|
}]
|
|
3064
|
-
// ----- @
|
|
3065
|
-
type
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
949
|
+
// ----- @nx/enforce-module-boundaries -----
|
|
950
|
+
type NxEnforceModuleBoundaries = []|[{
|
|
951
|
+
enforceBuildableLibDependency?: boolean
|
|
952
|
+
allowCircularSelfDependency?: boolean
|
|
953
|
+
checkDynamicDependenciesExceptions?: string[]
|
|
954
|
+
banTransitiveDependencies?: boolean
|
|
955
|
+
checkNestedExternalImports?: boolean
|
|
956
|
+
allow?: string[]
|
|
957
|
+
buildTargets?: string[]
|
|
958
|
+
depConstraints?: ({
|
|
959
|
+
sourceTag?: string
|
|
960
|
+
onlyDependOnLibsWithTags?: string[]
|
|
961
|
+
allowedExternalImports?: string[]
|
|
962
|
+
bannedExternalImports?: string[]
|
|
963
|
+
notDependOnLibsWithTags?: string[]
|
|
3073
964
|
} | {
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
965
|
+
|
|
966
|
+
allSourceTags?: [string, string, ...(string)[]]
|
|
967
|
+
onlyDependOnLibsWithTags?: string[]
|
|
968
|
+
allowedExternalImports?: string[]
|
|
969
|
+
bannedExternalImports?: string[]
|
|
970
|
+
notDependOnLibsWithTags?: string[]
|
|
3077
971
|
})[]
|
|
3078
|
-
checkParameterProperties?: boolean
|
|
3079
|
-
ignoreInferredTypes?: boolean
|
|
3080
|
-
treatMethodsAsReadonly?: boolean
|
|
3081
|
-
}]
|
|
3082
|
-
// ----- @typescript-eslint/prefer-string-starts-ends-with -----
|
|
3083
|
-
type TypescriptEslintPreferStringStartsEndsWith = []|[{
|
|
3084
|
-
|
|
3085
|
-
allowSingleElementEquality?: ("always" | "never")
|
|
3086
|
-
}]
|
|
3087
|
-
// ----- @typescript-eslint/promise-function-async -----
|
|
3088
|
-
type TypescriptEslintPromiseFunctionAsync = []|[{
|
|
3089
|
-
|
|
3090
|
-
allowAny?: boolean
|
|
3091
|
-
|
|
3092
|
-
allowedPromiseNames?: string[]
|
|
3093
|
-
checkArrowFunctions?: boolean
|
|
3094
|
-
checkFunctionDeclarations?: boolean
|
|
3095
|
-
checkFunctionExpressions?: boolean
|
|
3096
|
-
checkMethodDeclarations?: boolean
|
|
3097
|
-
}]
|
|
3098
|
-
// ----- @typescript-eslint/quotes -----
|
|
3099
|
-
type TypescriptEslintQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
|
|
3100
|
-
avoidEscape?: boolean
|
|
3101
|
-
allowTemplateLiterals?: boolean
|
|
3102
|
-
})]
|
|
3103
|
-
// ----- @typescript-eslint/require-array-sort-compare -----
|
|
3104
|
-
type TypescriptEslintRequireArraySortCompare = []|[{
|
|
3105
|
-
|
|
3106
|
-
ignoreStringArrays?: boolean
|
|
3107
|
-
}]
|
|
3108
|
-
// ----- @typescript-eslint/restrict-plus-operands -----
|
|
3109
|
-
type TypescriptEslintRestrictPlusOperands = []|[{
|
|
3110
|
-
|
|
3111
|
-
allowAny?: boolean
|
|
3112
|
-
|
|
3113
|
-
allowBoolean?: boolean
|
|
3114
|
-
|
|
3115
|
-
allowNullish?: boolean
|
|
3116
|
-
|
|
3117
|
-
allowNumberAndString?: boolean
|
|
3118
|
-
|
|
3119
|
-
allowRegExp?: boolean
|
|
3120
|
-
|
|
3121
|
-
skipCompoundAssignments?: boolean
|
|
3122
972
|
}]
|
|
3123
|
-
// ----- @
|
|
3124
|
-
type
|
|
3125
|
-
|
|
3126
|
-
allowAny?: boolean
|
|
3127
|
-
|
|
3128
|
-
allowArray?: boolean
|
|
3129
|
-
|
|
3130
|
-
allowBoolean?: boolean
|
|
3131
|
-
|
|
3132
|
-
allowNullish?: boolean
|
|
3133
|
-
|
|
3134
|
-
allowNumber?: boolean
|
|
3135
|
-
|
|
3136
|
-
allowRegExp?: boolean
|
|
3137
|
-
|
|
3138
|
-
allowNever?: boolean
|
|
3139
|
-
}]
|
|
3140
|
-
// ----- @typescript-eslint/return-await -----
|
|
3141
|
-
type TypescriptEslintReturnAwait = []|[("in-try-catch" | "always" | "never")]
|
|
3142
|
-
// ----- @typescript-eslint/semi -----
|
|
3143
|
-
type TypescriptEslintSemi = ([]|["never"]|["never", {
|
|
3144
|
-
beforeStatementContinuationChars?: ("always" | "any" | "never")
|
|
3145
|
-
}] | []|["always"]|["always", {
|
|
3146
|
-
omitLastInOneLineBlock?: boolean
|
|
3147
|
-
omitLastInOneLineClassBody?: boolean
|
|
3148
|
-
}])
|
|
3149
|
-
// ----- @typescript-eslint/sort-type-constituents -----
|
|
3150
|
-
type TypescriptEslintSortTypeConstituents = []|[{
|
|
3151
|
-
|
|
3152
|
-
checkIntersections?: boolean
|
|
3153
|
-
|
|
3154
|
-
checkUnions?: boolean
|
|
3155
|
-
|
|
3156
|
-
caseSensitive?: boolean
|
|
973
|
+
// ----- @nx/nx-plugin-checks -----
|
|
974
|
+
type NxNxPluginChecks = []|[{
|
|
3157
975
|
|
|
3158
|
-
|
|
3159
|
-
}]
|
|
3160
|
-
// ----- @typescript-eslint/space-before-blocks -----
|
|
3161
|
-
type TypescriptEslintSpaceBeforeBlocks = []|[(("always" | "never") | {
|
|
3162
|
-
keywords?: ("always" | "never" | "off")
|
|
3163
|
-
functions?: ("always" | "never" | "off")
|
|
3164
|
-
classes?: ("always" | "never" | "off")
|
|
3165
|
-
})]
|
|
3166
|
-
// ----- @typescript-eslint/space-before-function-paren -----
|
|
3167
|
-
type TypescriptEslintSpaceBeforeFunctionParen = []|[(("always" | "never") | {
|
|
3168
|
-
anonymous?: ("always" | "never" | "ignore")
|
|
3169
|
-
named?: ("always" | "never" | "ignore")
|
|
3170
|
-
asyncArrow?: ("always" | "never" | "ignore")
|
|
3171
|
-
})]
|
|
3172
|
-
// ----- @typescript-eslint/space-infix-ops -----
|
|
3173
|
-
type TypescriptEslintSpaceInfixOps = []|[{
|
|
3174
|
-
int32Hint?: boolean
|
|
3175
|
-
}]
|
|
3176
|
-
// ----- @typescript-eslint/strict-boolean-expressions -----
|
|
3177
|
-
type TypescriptEslintStrictBooleanExpressions = []|[{
|
|
3178
|
-
allowString?: boolean
|
|
3179
|
-
allowNumber?: boolean
|
|
3180
|
-
allowNullableObject?: boolean
|
|
3181
|
-
allowNullableBoolean?: boolean
|
|
3182
|
-
allowNullableString?: boolean
|
|
3183
|
-
allowNullableNumber?: boolean
|
|
3184
|
-
allowNullableEnum?: boolean
|
|
3185
|
-
allowAny?: boolean
|
|
3186
|
-
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean
|
|
3187
|
-
}]
|
|
3188
|
-
// ----- @typescript-eslint/switch-exhaustiveness-check -----
|
|
3189
|
-
type TypescriptEslintSwitchExhaustivenessCheck = []|[{
|
|
976
|
+
generatorsJson?: string
|
|
3190
977
|
|
|
3191
|
-
|
|
978
|
+
executorsJson?: string
|
|
3192
979
|
|
|
3193
|
-
|
|
3194
|
-
}]
|
|
3195
|
-
// ----- @typescript-eslint/triple-slash-reference -----
|
|
3196
|
-
type TypescriptEslintTripleSlashReference = []|[{
|
|
3197
|
-
lib?: ("always" | "never")
|
|
3198
|
-
path?: ("always" | "never")
|
|
3199
|
-
types?: ("always" | "never" | "prefer-import")
|
|
3200
|
-
}]
|
|
3201
|
-
// ----- @typescript-eslint/type-annotation-spacing -----
|
|
3202
|
-
type TypescriptEslintTypeAnnotationSpacing = []|[{
|
|
3203
|
-
before?: boolean
|
|
3204
|
-
after?: boolean
|
|
3205
|
-
overrides?: {
|
|
3206
|
-
colon?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig
|
|
3207
|
-
arrow?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig
|
|
3208
|
-
variable?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig
|
|
3209
|
-
parameter?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig
|
|
3210
|
-
property?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig
|
|
3211
|
-
returnType?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig
|
|
3212
|
-
}
|
|
3213
|
-
}]
|
|
3214
|
-
interface _TypescriptEslintTypeAnnotationSpacing_SpacingConfig {
|
|
3215
|
-
before?: boolean
|
|
3216
|
-
after?: boolean
|
|
3217
|
-
}
|
|
3218
|
-
// ----- @typescript-eslint/typedef -----
|
|
3219
|
-
type TypescriptEslintTypedef = []|[{
|
|
3220
|
-
arrayDestructuring?: boolean
|
|
3221
|
-
arrowParameter?: boolean
|
|
3222
|
-
memberVariableDeclaration?: boolean
|
|
3223
|
-
objectDestructuring?: boolean
|
|
3224
|
-
parameter?: boolean
|
|
3225
|
-
propertyDeclaration?: boolean
|
|
3226
|
-
variableDeclaration?: boolean
|
|
3227
|
-
variableDeclarationIgnoreFunction?: boolean
|
|
3228
|
-
}]
|
|
3229
|
-
// ----- @typescript-eslint/unbound-method -----
|
|
3230
|
-
type TypescriptEslintUnboundMethod = []|[{
|
|
980
|
+
migrationsJson?: string
|
|
3231
981
|
|
|
3232
|
-
|
|
3233
|
-
}]
|
|
3234
|
-
// ----- @typescript-eslint/unified-signatures -----
|
|
3235
|
-
type TypescriptEslintUnifiedSignatures = []|[{
|
|
982
|
+
packageJson?: string
|
|
3236
983
|
|
|
3237
|
-
|
|
984
|
+
allowedVersionStrings?: string[]
|
|
3238
985
|
}]
|
|
3239
986
|
// ----- banner/banner -----
|
|
3240
987
|
type BannerBanner = []|[{
|