@favorodera/eslint-config 1.4.0 → 2.0.0
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 -0
- package/dist/index.d.mts +1376 -404
- package/dist/index.mjs +1 -1
- package/package.json +5 -2
package/dist/index.d.mts
CHANGED
|
@@ -132,6 +132,196 @@ interface RuleOptions {
|
|
|
132
132
|
* @see https://eslint.org/docs/latest/rules/constructor-super
|
|
133
133
|
*/
|
|
134
134
|
'constructor-super'?: Linter.RuleEntry<[]>;
|
|
135
|
+
/**
|
|
136
|
+
* Enforce use of fallback fonts and a generic font last
|
|
137
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/font-family-fallbacks.md
|
|
138
|
+
*/
|
|
139
|
+
'css/font-family-fallbacks'?: Linter.RuleEntry<[]>;
|
|
140
|
+
/**
|
|
141
|
+
* Disallow duplicate @import rules
|
|
142
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/no-duplicate-imports.md
|
|
143
|
+
*/
|
|
144
|
+
'css/no-duplicate-imports'?: Linter.RuleEntry<[]>;
|
|
145
|
+
/**
|
|
146
|
+
* Disallow duplicate selectors within keyframe blocks
|
|
147
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/no-duplicate-keyframe-selectors.md
|
|
148
|
+
*/
|
|
149
|
+
'css/no-duplicate-keyframe-selectors'?: Linter.RuleEntry<[]>;
|
|
150
|
+
/**
|
|
151
|
+
* Disallow empty blocks
|
|
152
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/no-empty-blocks.md
|
|
153
|
+
*/
|
|
154
|
+
'css/no-empty-blocks'?: Linter.RuleEntry<[]>;
|
|
155
|
+
/**
|
|
156
|
+
* Disallow !important flags
|
|
157
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/no-important.md
|
|
158
|
+
*/
|
|
159
|
+
'css/no-important'?: Linter.RuleEntry<[]>;
|
|
160
|
+
/**
|
|
161
|
+
* Disallow invalid placement of at-rules
|
|
162
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/no-invalid-at-rule-placement.md
|
|
163
|
+
*/
|
|
164
|
+
'css/no-invalid-at-rule-placement'?: Linter.RuleEntry<[]>;
|
|
165
|
+
/**
|
|
166
|
+
* Disallow invalid at-rules
|
|
167
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/no-invalid-at-rules.md
|
|
168
|
+
*/
|
|
169
|
+
'css/no-invalid-at-rules'?: Linter.RuleEntry<[]>;
|
|
170
|
+
/**
|
|
171
|
+
* Disallow invalid named grid areas
|
|
172
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/no-invalid-named-grid-areas.md
|
|
173
|
+
*/
|
|
174
|
+
'css/no-invalid-named-grid-areas'?: Linter.RuleEntry<[]>;
|
|
175
|
+
/**
|
|
176
|
+
* Disallow invalid properties
|
|
177
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/no-invalid-properties.md
|
|
178
|
+
*/
|
|
179
|
+
'css/no-invalid-properties'?: Linter.RuleEntry<CssNoInvalidProperties>;
|
|
180
|
+
/**
|
|
181
|
+
* Disallow unmatchable selectors
|
|
182
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/no-unmatchable-selectors.md
|
|
183
|
+
*/
|
|
184
|
+
'css/no-unmatchable-selectors'?: Linter.RuleEntry<[]>;
|
|
185
|
+
/**
|
|
186
|
+
* Enforce the use of logical properties
|
|
187
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/prefer-logical-properties.md
|
|
188
|
+
*/
|
|
189
|
+
'css/prefer-logical-properties'?: Linter.RuleEntry<CssPreferLogicalProperties>;
|
|
190
|
+
/**
|
|
191
|
+
* Enforce the use of relative font units
|
|
192
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/relative-font-units.md
|
|
193
|
+
*/
|
|
194
|
+
'css/relative-font-units'?: Linter.RuleEntry<CssRelativeFontUnits>;
|
|
195
|
+
/**
|
|
196
|
+
* Disallow and limit CSS selectors
|
|
197
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/selector-complexity.md
|
|
198
|
+
*/
|
|
199
|
+
'css/selector-complexity'?: Linter.RuleEntry<CssSelectorComplexity>;
|
|
200
|
+
/**
|
|
201
|
+
* Enforce the use of baseline features
|
|
202
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/use-baseline.md
|
|
203
|
+
*/
|
|
204
|
+
'css/use-baseline'?: Linter.RuleEntry<CssUseBaseline>;
|
|
205
|
+
/**
|
|
206
|
+
* Require use of layers
|
|
207
|
+
* @see https://github.com/eslint/css/blob/main/docs/rules/use-layers.md
|
|
208
|
+
*/
|
|
209
|
+
'css/use-layers'?: Linter.RuleEntry<CssUseLayers>;
|
|
210
|
+
/**
|
|
211
|
+
* Enforce lowercase CSS syntax.
|
|
212
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/lowercase.md
|
|
213
|
+
*/
|
|
214
|
+
'cssicorn/lowercase'?: Linter.RuleEntry<[]>;
|
|
215
|
+
/**
|
|
216
|
+
* Disallow declarations after nested rules.
|
|
217
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-declarations-after-nested-rules.md
|
|
218
|
+
*/
|
|
219
|
+
'cssicorn/no-declarations-after-nested-rules'?: Linter.RuleEntry<[]>;
|
|
220
|
+
/**
|
|
221
|
+
* Disallow deprecated CSS features.
|
|
222
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-deprecated-features.md
|
|
223
|
+
*/
|
|
224
|
+
'cssicorn/no-deprecated-features'?: Linter.RuleEntry<CssicornNoDeprecatedFeatures>;
|
|
225
|
+
/**
|
|
226
|
+
* Disallow lower-specificity selectors from following higher-specificity selectors that set the same property.
|
|
227
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-descending-specificity.md
|
|
228
|
+
*/
|
|
229
|
+
'cssicorn/no-descending-specificity'?: Linter.RuleEntry<[]>;
|
|
230
|
+
/**
|
|
231
|
+
* Disallow duplicate font family names.
|
|
232
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-duplicate-font-family-names.md
|
|
233
|
+
*/
|
|
234
|
+
'cssicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
|
|
235
|
+
/**
|
|
236
|
+
* Disallow duplicate properties within CSS declaration blocks.
|
|
237
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-duplicate-properties.md
|
|
238
|
+
*/
|
|
239
|
+
'cssicorn/no-duplicate-properties'?: Linter.RuleEntry<[]>;
|
|
240
|
+
/**
|
|
241
|
+
* Disallow duplicate CSS selectors.
|
|
242
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-duplicate-selectors.md
|
|
243
|
+
*/
|
|
244
|
+
'cssicorn/no-duplicate-selectors'?: Linter.RuleEntry<[]>;
|
|
245
|
+
/**
|
|
246
|
+
* Disallow unknown media features and invalid values for known media features.
|
|
247
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-invalid-media-features.md
|
|
248
|
+
*/
|
|
249
|
+
'cssicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
|
|
250
|
+
/**
|
|
251
|
+
* Disallow nesting under selector lists with mixed specificity.
|
|
252
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-nesting-with-mixed-specificity.md
|
|
253
|
+
*/
|
|
254
|
+
'cssicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
|
|
255
|
+
/**
|
|
256
|
+
* Disallow longhand properties that can be combined into a shorthand.
|
|
257
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-redundant-longhand-properties.md
|
|
258
|
+
*/
|
|
259
|
+
'cssicorn/no-redundant-longhand-properties'?: Linter.RuleEntry<CssicornNoRedundantLonghandProperties>;
|
|
260
|
+
/**
|
|
261
|
+
* Disallow nested style rules that do not modify the parent selector.
|
|
262
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-redundant-nested-style-rules.md
|
|
263
|
+
*/
|
|
264
|
+
'cssicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
|
|
265
|
+
/**
|
|
266
|
+
* Disallow redundant values in CSS shorthand properties.
|
|
267
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-redundant-shorthand-values.md
|
|
268
|
+
*/
|
|
269
|
+
'cssicorn/no-redundant-shorthand-values'?: Linter.RuleEntry<[]>;
|
|
270
|
+
/**
|
|
271
|
+
* Disallow self-references in CSS custom properties.
|
|
272
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-self-referencing-custom-properties.md
|
|
273
|
+
*/
|
|
274
|
+
'cssicorn/no-self-referencing-custom-properties'?: Linter.RuleEntry<[]>;
|
|
275
|
+
/**
|
|
276
|
+
* Disallow unknown animations.
|
|
277
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unknown-animations.md
|
|
278
|
+
*/
|
|
279
|
+
'cssicorn/no-unknown-animations'?: Linter.RuleEntry<[]>;
|
|
280
|
+
/**
|
|
281
|
+
* Disallow unknown and noncanonical CSS annotations.
|
|
282
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unknown-annotations.md
|
|
283
|
+
*/
|
|
284
|
+
'cssicorn/no-unknown-annotations'?: Linter.RuleEntry<[]>;
|
|
285
|
+
/**
|
|
286
|
+
* Disallow unknown pseudo-class and pseudo-element selectors.
|
|
287
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unknown-pseudo-selectors.md
|
|
288
|
+
*/
|
|
289
|
+
'cssicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<CssicornNoUnknownPseudoSelectors>;
|
|
290
|
+
/**
|
|
291
|
+
* Disallow unscoped CSS nesting selectors.
|
|
292
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-unscoped-nesting-selector.md
|
|
293
|
+
*/
|
|
294
|
+
'cssicorn/no-unscoped-nesting-selector'?: Linter.RuleEntry<CssicornNoUnscopedNestingSelector>;
|
|
295
|
+
/**
|
|
296
|
+
* Disallow units on zero CSS lengths.
|
|
297
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/no-zero-length-unit.md
|
|
298
|
+
*/
|
|
299
|
+
'cssicorn/no-zero-length-unit'?: Linter.RuleEntry<[]>;
|
|
300
|
+
/**
|
|
301
|
+
* Prefer explicit viewport units.
|
|
302
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-explicit-viewport-units.md
|
|
303
|
+
*/
|
|
304
|
+
'cssicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<CssicornPreferExplicitViewportUnits>;
|
|
305
|
+
/**
|
|
306
|
+
* Prefer modern media feature range syntax.
|
|
307
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-media-feature-range-syntax.md
|
|
308
|
+
*/
|
|
309
|
+
'cssicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
|
|
310
|
+
/**
|
|
311
|
+
* Prefer modern CSS color and pseudo-element syntax.
|
|
312
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-modern-syntax.md
|
|
313
|
+
*/
|
|
314
|
+
'cssicorn/prefer-modern-syntax'?: Linter.RuleEntry<[]>;
|
|
315
|
+
/**
|
|
316
|
+
* Prefer short hexadecimal color notation.
|
|
317
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/prefer-short-hex-color.md
|
|
318
|
+
*/
|
|
319
|
+
'cssicorn/prefer-short-hex-color'?: Linter.RuleEntry<[]>;
|
|
320
|
+
/**
|
|
321
|
+
* Require descriptors in CSS `@property` rules.
|
|
322
|
+
* @see https://github.com/sindresorhus/eslint-cssicorn/blob/v0.1.0/docs/rules/require-property-descriptors.md
|
|
323
|
+
*/
|
|
324
|
+
'cssicorn/require-property-descriptors'?: Linter.RuleEntry<[]>;
|
|
135
325
|
/**
|
|
136
326
|
* Enforce consistent brace style for all control statements
|
|
137
327
|
* @see https://eslint.org/docs/latest/rules/curly
|
|
@@ -4326,1841 +4516,1992 @@ interface RuleOptions {
|
|
|
4326
4516
|
'unicode-bom'?: Linter.RuleEntry<UnicodeBom>;
|
|
4327
4517
|
/**
|
|
4328
4518
|
* Prefer better DOM traversal APIs.
|
|
4329
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/better-dom-traversing.md
|
|
4330
4520
|
*/
|
|
4331
4521
|
'unicorn/better-dom-traversing'?: Linter.RuleEntry<[]>;
|
|
4332
4522
|
/**
|
|
4333
4523
|
* Removed. Prefer `eslint-plugin-regexp`
|
|
4334
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4524
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#better-regex
|
|
4335
4525
|
* @deprecated
|
|
4336
4526
|
*/
|
|
4337
4527
|
'unicorn/better-regex'?: Linter.RuleEntry<[]>;
|
|
4338
4528
|
/**
|
|
4339
4529
|
* Enforce a specific parameter name in catch clauses.
|
|
4340
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4530
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/catch-error-name.md
|
|
4341
4531
|
*/
|
|
4342
4532
|
'unicorn/catch-error-name'?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
4343
4533
|
/**
|
|
4344
4534
|
* Enforce consistent class references in static methods.
|
|
4345
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4535
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/class-reference-in-static-methods.md
|
|
4346
4536
|
*/
|
|
4347
4537
|
'unicorn/class-reference-in-static-methods'?: Linter.RuleEntry<UnicornClassReferenceInStaticMethods>;
|
|
4538
|
+
/**
|
|
4539
|
+
* Enforce consistent spacing before and after commas in JSON.
|
|
4540
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comma-spacing.md
|
|
4541
|
+
*/
|
|
4542
|
+
'unicorn/comma-spacing'?: Linter.RuleEntry<[]>;
|
|
4348
4543
|
/**
|
|
4349
4544
|
* Enforce better comment content.
|
|
4350
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4545
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/comment-content.md
|
|
4351
4546
|
*/
|
|
4352
4547
|
'unicorn/comment-content'?: Linter.RuleEntry<UnicornCommentContent>;
|
|
4353
4548
|
/**
|
|
4354
4549
|
* Enforce a consistent return style for multiline arrow function bodies.
|
|
4355
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4550
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-arrow-return-style.md
|
|
4356
4551
|
*/
|
|
4357
4552
|
'unicorn/consistent-arrow-return-style'?: Linter.RuleEntry<[]>;
|
|
4358
4553
|
/**
|
|
4359
4554
|
* Enforce consistent assertion style with `node:assert`.
|
|
4360
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4555
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-assert.md
|
|
4361
4556
|
*/
|
|
4362
4557
|
'unicorn/consistent-assert'?: Linter.RuleEntry<[]>;
|
|
4363
4558
|
/**
|
|
4364
4559
|
* Enforce consistent naming for boolean names.
|
|
4365
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4560
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-boolean-name.md
|
|
4366
4561
|
*/
|
|
4367
4562
|
'unicorn/consistent-boolean-name'?: Linter.RuleEntry<UnicornConsistentBooleanName>;
|
|
4368
4563
|
/**
|
|
4369
4564
|
* Enforce consistent class member order.
|
|
4370
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4565
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-class-member-order.md
|
|
4371
4566
|
*/
|
|
4372
4567
|
'unicorn/consistent-class-member-order'?: Linter.RuleEntry<UnicornConsistentClassMemberOrder>;
|
|
4373
4568
|
/**
|
|
4374
4569
|
* Enforce consistent spelling of compound words in identifiers.
|
|
4375
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4570
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-compound-words.md
|
|
4376
4571
|
*/
|
|
4377
4572
|
'unicorn/consistent-compound-words'?: Linter.RuleEntry<UnicornConsistentCompoundWords>;
|
|
4378
4573
|
/**
|
|
4379
4574
|
* Enforce consistent conditional object spread style.
|
|
4380
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4575
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-conditional-object-spread.md
|
|
4381
4576
|
*/
|
|
4382
4577
|
'unicorn/consistent-conditional-object-spread'?: Linter.RuleEntry<UnicornConsistentConditionalObjectSpread>;
|
|
4383
4578
|
/**
|
|
4384
4579
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
4385
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4580
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-date-clone.md
|
|
4386
4581
|
*/
|
|
4387
4582
|
'unicorn/consistent-date-clone'?: Linter.RuleEntry<[]>;
|
|
4388
4583
|
/**
|
|
4389
4584
|
* Use destructured variables over properties.
|
|
4390
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4585
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-destructuring.md
|
|
4391
4586
|
*/
|
|
4392
4587
|
'unicorn/consistent-destructuring'?: Linter.RuleEntry<[]>;
|
|
4393
4588
|
/**
|
|
4394
4589
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
4395
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4590
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-empty-array-spread.md
|
|
4396
4591
|
*/
|
|
4397
4592
|
'unicorn/consistent-empty-array-spread'?: Linter.RuleEntry<[]>;
|
|
4398
4593
|
/**
|
|
4399
4594
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
4400
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4595
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-existence-index-check.md
|
|
4401
4596
|
*/
|
|
4402
4597
|
'unicorn/consistent-existence-index-check'?: Linter.RuleEntry<[]>;
|
|
4403
4598
|
/**
|
|
4404
4599
|
* Enforce consistent decorator position on exported classes.
|
|
4405
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4600
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-export-decorator-position.md
|
|
4406
4601
|
*/
|
|
4407
4602
|
'unicorn/consistent-export-decorator-position'?: Linter.RuleEntry<UnicornConsistentExportDecoratorPosition>;
|
|
4408
4603
|
/**
|
|
4409
4604
|
* Move function definitions to the highest possible scope.
|
|
4410
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4605
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-scoping.md
|
|
4411
4606
|
*/
|
|
4412
4607
|
'unicorn/consistent-function-scoping'?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
4413
4608
|
/**
|
|
4414
4609
|
* Enforce function syntax by role.
|
|
4415
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4610
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-function-style.md
|
|
4416
4611
|
*/
|
|
4417
4612
|
'unicorn/consistent-function-style'?: Linter.RuleEntry<UnicornConsistentFunctionStyle>;
|
|
4418
4613
|
/**
|
|
4419
4614
|
* Enforce consistent JSON file reads before `JSON.parse()`.
|
|
4420
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4615
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-json-file-read.md
|
|
4421
4616
|
*/
|
|
4422
4617
|
'unicorn/consistent-json-file-read'?: Linter.RuleEntry<UnicornConsistentJsonFileRead>;
|
|
4423
4618
|
/**
|
|
4424
4619
|
* Enforce consistent optional chaining for same-base member access.
|
|
4425
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4620
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-optional-chaining.md
|
|
4426
4621
|
*/
|
|
4427
4622
|
'unicorn/consistent-optional-chaining'?: Linter.RuleEntry<[]>;
|
|
4428
4623
|
/**
|
|
4429
4624
|
* Enforce consistent style for escaping `${` in template literals.
|
|
4430
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4625
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-template-literal-escape.md
|
|
4431
4626
|
*/
|
|
4432
4627
|
'unicorn/consistent-template-literal-escape'?: Linter.RuleEntry<[]>;
|
|
4433
4628
|
/**
|
|
4434
4629
|
* Enforce consistent labels on tuple type elements.
|
|
4435
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4630
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/consistent-tuple-labels.md
|
|
4436
4631
|
*/
|
|
4437
4632
|
'unicorn/consistent-tuple-labels'?: Linter.RuleEntry<[]>;
|
|
4438
4633
|
/**
|
|
4439
4634
|
* Enforce correct `Error` subclassing.
|
|
4440
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4635
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/custom-error-definition.md
|
|
4441
4636
|
*/
|
|
4442
4637
|
'unicorn/custom-error-definition'?: Linter.RuleEntry<[]>;
|
|
4443
4638
|
/**
|
|
4444
4639
|
* Enforce consistent default export declarations.
|
|
4445
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4640
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/default-export-style.md
|
|
4446
4641
|
*/
|
|
4447
4642
|
'unicorn/default-export-style'?: Linter.RuleEntry<UnicornDefaultExportStyle>;
|
|
4448
4643
|
/**
|
|
4449
4644
|
* Enforce consistent style for DOM element dataset access.
|
|
4450
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4645
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/dom-node-dataset.md
|
|
4451
4646
|
*/
|
|
4452
4647
|
'unicorn/dom-node-dataset'?: Linter.RuleEntry<UnicornDomNodeDataset>;
|
|
4453
4648
|
/**
|
|
4454
4649
|
* Enforce no spaces between braces.
|
|
4455
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4650
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/empty-brace-spaces.md
|
|
4456
4651
|
*/
|
|
4457
4652
|
'unicorn/empty-brace-spaces'?: Linter.RuleEntry<[]>;
|
|
4458
4653
|
/**
|
|
4459
4654
|
* Enforce passing a `message` value when creating a built-in error.
|
|
4460
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4655
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/error-message.md
|
|
4461
4656
|
*/
|
|
4462
4657
|
'unicorn/error-message'?: Linter.RuleEntry<[]>;
|
|
4463
4658
|
/**
|
|
4464
4659
|
* Require escape sequences to use uppercase or lowercase values.
|
|
4465
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4660
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/escape-case.md
|
|
4466
4661
|
*/
|
|
4467
4662
|
'unicorn/escape-case'?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
4468
4663
|
/**
|
|
4469
4664
|
* Add expiration conditions to TODO comments.
|
|
4470
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4665
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/expiring-todo-comments.md
|
|
4471
4666
|
*/
|
|
4472
4667
|
'unicorn/expiring-todo-comments'?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
4473
4668
|
/**
|
|
4474
4669
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
4475
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4670
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-length-check.md
|
|
4476
4671
|
*/
|
|
4477
4672
|
'unicorn/explicit-length-check'?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
4478
4673
|
/**
|
|
4479
4674
|
* Enforce or disallow explicit `delay` argument for `setTimeout()` and `setInterval()`.
|
|
4480
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4675
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/explicit-timer-delay.md
|
|
4481
4676
|
*/
|
|
4482
4677
|
'unicorn/explicit-timer-delay'?: Linter.RuleEntry<UnicornExplicitTimerDelay>;
|
|
4483
4678
|
/**
|
|
4484
4679
|
* Enforce a case style for filenames and directory names.
|
|
4485
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4680
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/filename-case.md
|
|
4486
4681
|
*/
|
|
4487
4682
|
'unicorn/filename-case'?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
4488
4683
|
/**
|
|
4489
4684
|
* Require identifiers to match a specified regular expression.
|
|
4490
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4685
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/id-match.md
|
|
4491
4686
|
*/
|
|
4492
4687
|
'unicorn/id-match'?: Linter.RuleEntry<UnicornIdMatch>;
|
|
4493
4688
|
/**
|
|
4494
4689
|
* Enforce specific import styles per module.
|
|
4495
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4690
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/import-style.md
|
|
4496
4691
|
*/
|
|
4497
4692
|
'unicorn/import-style'?: Linter.RuleEntry<UnicornImportStyle>;
|
|
4693
|
+
/**
|
|
4694
|
+
* Enforce consistent indentation in JSON and CSS.
|
|
4695
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/indent.md
|
|
4696
|
+
*/
|
|
4697
|
+
'unicorn/indent'?: Linter.RuleEntry<UnicornIndent>;
|
|
4498
4698
|
/**
|
|
4499
4699
|
* Prevent usage of variables from outside the scope of isolated functions.
|
|
4500
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4700
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/isolated-functions.md
|
|
4501
4701
|
*/
|
|
4502
4702
|
'unicorn/isolated-functions'?: Linter.RuleEntry<UnicornIsolatedFunctions>;
|
|
4503
4703
|
/**
|
|
4504
4704
|
* Enforce a consistent style for optional loop sources.
|
|
4505
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4705
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/iteration-fallback-style.md
|
|
4506
4706
|
*/
|
|
4507
4707
|
'unicorn/iteration-fallback-style'?: Linter.RuleEntry<UnicornIterationFallbackStyle>;
|
|
4708
|
+
/**
|
|
4709
|
+
* Enforce a case style for data keys.
|
|
4710
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/key-name-casing.md
|
|
4711
|
+
*/
|
|
4712
|
+
'unicorn/key-name-casing'?: Linter.RuleEntry<UnicornKeyNameCasing>;
|
|
4508
4713
|
/**
|
|
4509
4714
|
* Require or disallow logical assignment operator shorthand
|
|
4510
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4715
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/logical-assignment-operators.md
|
|
4511
4716
|
*/
|
|
4512
4717
|
'unicorn/logical-assignment-operators'?: Linter.RuleEntry<UnicornLogicalAssignmentOperators>;
|
|
4513
4718
|
/**
|
|
4514
4719
|
* Limit the depth of nested calls.
|
|
4515
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4720
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/max-nested-calls.md
|
|
4516
4721
|
*/
|
|
4517
4722
|
'unicorn/max-nested-calls'?: Linter.RuleEntry<UnicornMaxNestedCalls>;
|
|
4518
4723
|
/**
|
|
4519
4724
|
* Enforce replacements for variable, property, and filenames.
|
|
4520
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4725
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/name-replacements.md
|
|
4521
4726
|
*/
|
|
4522
4727
|
'unicorn/name-replacements'?: Linter.RuleEntry<UnicornNameReplacements>;
|
|
4523
4728
|
/**
|
|
4524
4729
|
* Enforce correct use of `new` for builtin constructors.
|
|
4525
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4730
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/new-for-builtins.md
|
|
4526
4731
|
*/
|
|
4527
4732
|
'unicorn/new-for-builtins'?: Linter.RuleEntry<[]>;
|
|
4528
4733
|
/**
|
|
4529
4734
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
4530
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4735
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
4531
4736
|
*/
|
|
4532
4737
|
'unicorn/no-abusive-eslint-disable'?: Linter.RuleEntry<[]>;
|
|
4533
4738
|
/**
|
|
4534
4739
|
* Disallow recursive access to `this` within getters and setters.
|
|
4535
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4740
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accessor-recursion.md
|
|
4536
4741
|
*/
|
|
4537
4742
|
'unicorn/no-accessor-recursion'?: Linter.RuleEntry<[]>;
|
|
4538
4743
|
/**
|
|
4539
4744
|
* Disallow bitwise operators where a logical operator was likely intended.
|
|
4540
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4745
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-accidental-bitwise-operator.md
|
|
4541
4746
|
*/
|
|
4542
4747
|
'unicorn/no-accidental-bitwise-operator'?: Linter.RuleEntry<[]>;
|
|
4543
4748
|
/**
|
|
4544
4749
|
* Disallow anonymous functions and classes as the default export.
|
|
4545
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4750
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-anonymous-default-export.md
|
|
4546
4751
|
*/
|
|
4547
4752
|
'unicorn/no-anonymous-default-export'?: Linter.RuleEntry<[]>;
|
|
4548
4753
|
/**
|
|
4549
4754
|
* Prevent passing a function reference directly to iterator methods.
|
|
4550
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4755
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-callback-reference.md
|
|
4551
4756
|
*/
|
|
4552
4757
|
'unicorn/no-array-callback-reference'?: Linter.RuleEntry<UnicornNoArrayCallbackReference>;
|
|
4553
4758
|
/**
|
|
4554
4759
|
* Disallow array accumulation with `Array#concat()` in loops.
|
|
4555
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4760
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-concat-in-loop.md
|
|
4556
4761
|
*/
|
|
4557
4762
|
'unicorn/no-array-concat-in-loop'?: Linter.RuleEntry<[]>;
|
|
4558
4763
|
/**
|
|
4559
4764
|
* Disallow using reference values as `Array#fill()` values.
|
|
4560
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4765
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-fill-with-reference-type.md
|
|
4561
4766
|
*/
|
|
4562
4767
|
'unicorn/no-array-fill-with-reference-type'?: Linter.RuleEntry<[]>;
|
|
4563
4768
|
/**
|
|
4564
4769
|
* Disallow `.fill()` after `Array.from({length: …})`.
|
|
4565
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4770
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-from-fill.md
|
|
4566
4771
|
*/
|
|
4567
4772
|
'unicorn/no-array-from-fill'?: Linter.RuleEntry<[]>;
|
|
4568
4773
|
/**
|
|
4569
4774
|
* Disallow front-of-array mutation.
|
|
4570
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4775
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-front-mutation.md
|
|
4571
4776
|
*/
|
|
4572
4777
|
'unicorn/no-array-front-mutation'?: Linter.RuleEntry<[]>;
|
|
4573
4778
|
/**
|
|
4574
4779
|
* Disallow using the `this` argument in array methods.
|
|
4575
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4780
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-method-this-argument.md
|
|
4576
4781
|
*/
|
|
4577
4782
|
'unicorn/no-array-method-this-argument'?: Linter.RuleEntry<[]>;
|
|
4578
4783
|
/**
|
|
4579
4784
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
4580
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4785
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-array-push-push
|
|
4581
4786
|
* @deprecated
|
|
4582
4787
|
*/
|
|
4583
4788
|
'unicorn/no-array-push-push'?: Linter.RuleEntry<[]>;
|
|
4584
4789
|
/**
|
|
4585
4790
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
4586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4791
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reduce.md
|
|
4587
4792
|
*/
|
|
4588
4793
|
'unicorn/no-array-reduce'?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
4589
4794
|
/**
|
|
4590
4795
|
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
4591
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-reverse.md
|
|
4592
4797
|
*/
|
|
4593
4798
|
'unicorn/no-array-reverse'?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
4594
4799
|
/**
|
|
4595
4800
|
* Prefer `Array#toSorted()` over `Array#sort()`.
|
|
4596
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4801
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort.md
|
|
4597
4802
|
*/
|
|
4598
4803
|
'unicorn/no-array-sort'?: Linter.RuleEntry<UnicornNoArraySort>;
|
|
4599
4804
|
/**
|
|
4600
4805
|
* Disallow sorting arrays to get the minimum or maximum value.
|
|
4601
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4806
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-sort-for-min-max.md
|
|
4602
4807
|
*/
|
|
4603
4808
|
'unicorn/no-array-sort-for-min-max'?: Linter.RuleEntry<[]>;
|
|
4604
4809
|
/**
|
|
4605
4810
|
* Prefer `Array#toSpliced()` over `Array#splice()`.
|
|
4606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4811
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-array-splice.md
|
|
4607
4812
|
*/
|
|
4608
4813
|
'unicorn/no-array-splice'?: Linter.RuleEntry<[]>;
|
|
4609
4814
|
/**
|
|
4610
|
-
* Disallow asterisk prefixes in
|
|
4611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4815
|
+
* Disallow asterisk prefixes in multiline comments.
|
|
4816
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-asterisk-prefix-in-documentation-comments.md
|
|
4612
4817
|
*/
|
|
4613
4818
|
'unicorn/no-asterisk-prefix-in-documentation-comments'?: Linter.RuleEntry<[]>;
|
|
4614
4819
|
/**
|
|
4615
4820
|
* Disallow asynchronous callbacks in synchronous iterator helpers.
|
|
4616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4821
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-iterator-callback.md
|
|
4617
4822
|
*/
|
|
4618
4823
|
'unicorn/no-async-iterator-callback'?: Linter.RuleEntry<[]>;
|
|
4619
4824
|
/**
|
|
4620
4825
|
* Disallow async functions as `Promise#finally()` callbacks.
|
|
4621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4826
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-async-promise-finally.md
|
|
4622
4827
|
*/
|
|
4623
4828
|
'unicorn/no-async-promise-finally'?: Linter.RuleEntry<[]>;
|
|
4624
4829
|
/**
|
|
4625
4830
|
* Disallow member access from await expression.
|
|
4626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4831
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-expression-member.md
|
|
4627
4832
|
*/
|
|
4628
4833
|
'unicorn/no-await-expression-member'?: Linter.RuleEntry<[]>;
|
|
4629
4834
|
/**
|
|
4630
4835
|
* Disallow using `await` in `Promise` method parameters.
|
|
4631
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4836
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-await-in-promise-methods.md
|
|
4632
4837
|
*/
|
|
4633
4838
|
'unicorn/no-await-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
4634
4839
|
/**
|
|
4635
4840
|
* Disallow barrel files.
|
|
4636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-barrel-files.md
|
|
4637
4842
|
*/
|
|
4638
4843
|
'unicorn/no-barrel-files'?: Linter.RuleEntry<[]>;
|
|
4639
4844
|
/**
|
|
4640
4845
|
* Disallow unnecessary `Blob` to `File` conversion.
|
|
4641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4846
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-blob-to-file.md
|
|
4642
4847
|
*/
|
|
4643
4848
|
'unicorn/no-blob-to-file'?: Linter.RuleEntry<[]>;
|
|
4644
4849
|
/**
|
|
4645
4850
|
* Disallow boolean-returning sort comparators.
|
|
4646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4851
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-boolean-sort-comparator.md
|
|
4647
4852
|
*/
|
|
4648
4853
|
'unicorn/no-boolean-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
4649
4854
|
/**
|
|
4650
4855
|
* Disallow `break` and optionally `continue` in nested loops and switches inside loops.
|
|
4651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4856
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-break-in-nested-loop.md
|
|
4652
4857
|
*/
|
|
4653
4858
|
'unicorn/no-break-in-nested-loop'?: Linter.RuleEntry<UnicornNoBreakInNestedLoop>;
|
|
4654
4859
|
/**
|
|
4655
4860
|
* Prefer drawing canvases directly instead of converting them to images.
|
|
4656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4861
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-canvas-to-image.md
|
|
4657
4862
|
*/
|
|
4658
4863
|
'unicorn/no-canvas-to-image'?: Linter.RuleEntry<[]>;
|
|
4659
4864
|
/**
|
|
4660
4865
|
* Disallow chained comparisons such as `a < b < c`.
|
|
4661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4866
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-chained-comparison.md
|
|
4662
4867
|
*/
|
|
4663
4868
|
'unicorn/no-chained-comparison'?: Linter.RuleEntry<[]>;
|
|
4664
4869
|
/**
|
|
4665
4870
|
* Disallow accessing `Map`, `Set`, `WeakMap`, and `WeakSet` entries with bracket notation.
|
|
4666
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4871
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-collection-bracket-access.md
|
|
4667
4872
|
*/
|
|
4668
4873
|
'unicorn/no-collection-bracket-access'?: Linter.RuleEntry<[]>;
|
|
4669
4874
|
/**
|
|
4670
4875
|
* Disallow dynamic object property existence checks.
|
|
4671
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4876
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-computed-property-existence-check.md
|
|
4672
4877
|
*/
|
|
4673
4878
|
'unicorn/no-computed-property-existence-check'?: Linter.RuleEntry<[]>;
|
|
4879
|
+
/**
|
|
4880
|
+
* Disallow conflicting CSS query and HTML form constraints.
|
|
4881
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-conflicting-constraints.md
|
|
4882
|
+
*/
|
|
4883
|
+
'unicorn/no-conflicting-constraints'?: Linter.RuleEntry<[]>;
|
|
4674
4884
|
/**
|
|
4675
4885
|
* Disallow confusing uses of `Array#{splice,toSpliced}()`.
|
|
4676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4886
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-splice.md
|
|
4677
4887
|
*/
|
|
4678
4888
|
'unicorn/no-confusing-array-splice'?: Linter.RuleEntry<[]>;
|
|
4679
4889
|
/**
|
|
4680
4890
|
* Disallow confusing uses of `Array#with()`.
|
|
4681
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4891
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-confusing-array-with.md
|
|
4682
4892
|
*/
|
|
4683
4893
|
'unicorn/no-confusing-array-with'?: Linter.RuleEntry<[]>;
|
|
4684
4894
|
/**
|
|
4685
4895
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
4686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-console-spaces.md
|
|
4687
4897
|
*/
|
|
4688
4898
|
'unicorn/no-console-spaces'?: Linter.RuleEntry<[]>;
|
|
4689
4899
|
/**
|
|
4690
4900
|
* Disallow arithmetic and bitwise operations that always evaluate to `0`.
|
|
4691
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-constant-zero-expression.md
|
|
4692
4902
|
*/
|
|
4693
4903
|
'unicorn/no-constant-zero-expression'?: Linter.RuleEntry<[]>;
|
|
4694
4904
|
/**
|
|
4695
4905
|
* Disallow declarations before conditional early exits when they are only used after the exit.
|
|
4696
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-declarations-before-early-exit.md
|
|
4697
4907
|
*/
|
|
4698
4908
|
'unicorn/no-declarations-before-early-exit'?: Linter.RuleEntry<[]>;
|
|
4699
4909
|
/**
|
|
4700
|
-
*
|
|
4701
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4910
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-deprecated-features`.
|
|
4911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-deprecated-css-features
|
|
4912
|
+
* @deprecated
|
|
4702
4913
|
*/
|
|
4703
|
-
'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<
|
|
4914
|
+
'unicorn/no-deprecated-css-features'?: Linter.RuleEntry<[]>;
|
|
4704
4915
|
/**
|
|
4705
4916
|
* Do not use `document.cookie` directly.
|
|
4706
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4917
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-document-cookie.md
|
|
4707
4918
|
*/
|
|
4708
4919
|
'unicorn/no-document-cookie'?: Linter.RuleEntry<[]>;
|
|
4709
4920
|
/**
|
|
4710
4921
|
* Disallow two comparisons of the same operands that can be combined into one.
|
|
4711
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4922
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-double-comparison.md
|
|
4712
4923
|
*/
|
|
4713
4924
|
'unicorn/no-double-comparison'?: Linter.RuleEntry<[]>;
|
|
4714
4925
|
/**
|
|
4715
|
-
*
|
|
4716
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4926
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-selectors`.
|
|
4927
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-css-selectors
|
|
4928
|
+
* @deprecated
|
|
4717
4929
|
*/
|
|
4718
4930
|
'unicorn/no-duplicate-css-selectors'?: Linter.RuleEntry<[]>;
|
|
4719
4931
|
/**
|
|
4720
|
-
*
|
|
4721
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4932
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-duplicate-font-family-names`.
|
|
4933
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-duplicate-font-family-names
|
|
4934
|
+
* @deprecated
|
|
4722
4935
|
*/
|
|
4723
4936
|
'unicorn/no-duplicate-font-family-names'?: Linter.RuleEntry<[]>;
|
|
4724
4937
|
/**
|
|
4725
4938
|
* Disallow duplicate adjacent branches in if chains.
|
|
4726
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4939
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-if-branches.md
|
|
4727
4940
|
*/
|
|
4728
4941
|
'unicorn/no-duplicate-if-branches'?: Linter.RuleEntry<[]>;
|
|
4729
4942
|
/**
|
|
4730
4943
|
* Disallow adjacent duplicate operands in logical expressions.
|
|
4731
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4944
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-logical-operands.md
|
|
4732
4945
|
*/
|
|
4733
4946
|
'unicorn/no-duplicate-logical-operands'?: Linter.RuleEntry<[]>;
|
|
4734
4947
|
/**
|
|
4735
4948
|
* Disallow `.map()` and `.filter()` in `for…of` and `for await…of` loop headers.
|
|
4736
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4949
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-loops.md
|
|
4737
4950
|
*/
|
|
4738
4951
|
'unicorn/no-duplicate-loops'?: Linter.RuleEntry<[]>;
|
|
4739
4952
|
/**
|
|
4740
4953
|
* Disallow duplicate values in `Set` constructor array literals.
|
|
4741
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4954
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-duplicate-set-values.md
|
|
4742
4955
|
*/
|
|
4743
4956
|
'unicorn/no-duplicate-set-values'?: Linter.RuleEntry<[]>;
|
|
4744
4957
|
/**
|
|
4745
4958
|
* Disallow empty files.
|
|
4746
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4959
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-file.md
|
|
4747
4960
|
*/
|
|
4748
4961
|
'unicorn/no-empty-file'?: Linter.RuleEntry<UnicornNoEmptyFile>;
|
|
4962
|
+
/**
|
|
4963
|
+
* Disallow empty link text in Markdown.
|
|
4964
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-empty-link-text.md
|
|
4965
|
+
*/
|
|
4966
|
+
'unicorn/no-empty-link-text'?: Linter.RuleEntry<[]>;
|
|
4749
4967
|
/**
|
|
4750
4968
|
* Disallow assigning to built-in error properties.
|
|
4751
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4969
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-error-property-assignment.md
|
|
4752
4970
|
*/
|
|
4753
4971
|
'unicorn/no-error-property-assignment'?: Linter.RuleEntry<[]>;
|
|
4754
4972
|
/**
|
|
4755
4973
|
* Disallow exports in scripts.
|
|
4756
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4974
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-exports-in-scripts.md
|
|
4757
4975
|
*/
|
|
4758
4976
|
'unicorn/no-exports-in-scripts'?: Linter.RuleEntry<[]>;
|
|
4759
4977
|
/**
|
|
4760
4978
|
* Prefer `for…of` over the `forEach` method.
|
|
4761
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4979
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-each.md
|
|
4762
4980
|
*/
|
|
4763
4981
|
'unicorn/no-for-each'?: Linter.RuleEntry<[]>;
|
|
4764
4982
|
/**
|
|
4765
4983
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
4766
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4984
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-for-loop.md
|
|
4767
4985
|
*/
|
|
4768
4986
|
'unicorn/no-for-loop'?: Linter.RuleEntry<[]>;
|
|
4769
4987
|
/**
|
|
4770
4988
|
* Disallow assigning properties on the global object.
|
|
4771
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4989
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-global-object-property-assignment.md
|
|
4772
4990
|
*/
|
|
4773
4991
|
'unicorn/no-global-object-property-assignment'?: Linter.RuleEntry<[]>;
|
|
4774
4992
|
/**
|
|
4775
|
-
* Replaced by `unicorn/prefer-unicode-code-point-escapes
|
|
4776
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
4993
|
+
* Replaced by `unicorn/prefer-literal-ascii` and `unicorn/prefer-unicode-code-point-escapes`, which cover more cases.
|
|
4994
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-hex-escape
|
|
4777
4995
|
* @deprecated
|
|
4778
4996
|
*/
|
|
4779
4997
|
'unicorn/no-hex-escape'?: Linter.RuleEntry<[]>;
|
|
4780
4998
|
/**
|
|
4781
4999
|
* Disallow immediate mutation after variable assignment.
|
|
4782
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5000
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-immediate-mutation.md
|
|
4783
5001
|
*/
|
|
4784
5002
|
'unicorn/no-immediate-mutation'?: Linter.RuleEntry<UnicornNoImmediateMutation>;
|
|
4785
5003
|
/**
|
|
4786
5004
|
* Disallow impossible comparisons against `.length` or `.size`.
|
|
4787
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5005
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-impossible-length-comparison.md
|
|
4788
5006
|
*/
|
|
4789
5007
|
'unicorn/no-impossible-length-comparison'?: Linter.RuleEntry<[]>;
|
|
5008
|
+
/**
|
|
5009
|
+
* Disallow class accessors that hide an inherited getter or setter.
|
|
5010
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incomplete-accessor-override.md
|
|
5011
|
+
*/
|
|
5012
|
+
'unicorn/no-incomplete-accessor-override'?: Linter.RuleEntry<[]>;
|
|
4790
5013
|
/**
|
|
4791
5014
|
* Disallow incorrect `querySelector()` and `querySelectorAll()` usage.
|
|
4792
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-query-selector.md
|
|
4793
5016
|
*/
|
|
4794
5017
|
'unicorn/no-incorrect-query-selector'?: Linter.RuleEntry<[]>;
|
|
4795
5018
|
/**
|
|
4796
5019
|
* Disallow incorrect template literal interpolation syntax.
|
|
4797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5020
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-incorrect-template-string-interpolation.md
|
|
4798
5021
|
*/
|
|
4799
5022
|
'unicorn/no-incorrect-template-string-interpolation'?: Linter.RuleEntry<[]>;
|
|
5023
|
+
/**
|
|
5024
|
+
* Disallow ineffective CSP directives in `<meta>` elements.
|
|
5025
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-ineffective-csp-directives.md
|
|
5026
|
+
*/
|
|
5027
|
+
'unicorn/no-ineffective-csp-directives'?: Linter.RuleEntry<[]>;
|
|
4800
5028
|
/**
|
|
4801
5029
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
4802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5030
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-instanceof-array
|
|
4803
5031
|
* @deprecated
|
|
4804
5032
|
*/
|
|
4805
5033
|
'unicorn/no-instanceof-array'?: Linter.RuleEntry<[]>;
|
|
4806
5034
|
/**
|
|
4807
5035
|
* Disallow `instanceof` with built-in objects
|
|
4808
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5036
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-instanceof-builtins.md
|
|
4809
5037
|
*/
|
|
4810
5038
|
'unicorn/no-instanceof-builtins'?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
4811
5039
|
/**
|
|
4812
5040
|
* Disallow calling functions and constructors with an invalid number of arguments.
|
|
4813
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5041
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-argument-count.md
|
|
4814
5042
|
*/
|
|
4815
5043
|
'unicorn/no-invalid-argument-count'?: Linter.RuleEntry<UnicornNoInvalidArgumentCount>;
|
|
5044
|
+
/**
|
|
5045
|
+
* Disallow invalid values for HTML boolean attributes.
|
|
5046
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-boolean-attribute-value.md
|
|
5047
|
+
*/
|
|
5048
|
+
'unicorn/no-invalid-boolean-attribute-value'?: Linter.RuleEntry<[]>;
|
|
4816
5049
|
/**
|
|
4817
5050
|
* Disallow comparing a single character from a string to a multi-character string.
|
|
4818
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5051
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-character-comparison.md
|
|
4819
5052
|
*/
|
|
4820
5053
|
'unicorn/no-invalid-character-comparison'?: Linter.RuleEntry<[]>;
|
|
5054
|
+
/**
|
|
5055
|
+
* Disallow invalid DOM tokens.
|
|
5056
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-dom-token.md
|
|
5057
|
+
*/
|
|
5058
|
+
'unicorn/no-invalid-dom-token'?: Linter.RuleEntry<[]>;
|
|
4821
5059
|
/**
|
|
4822
5060
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
4823
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5061
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-fetch-options.md
|
|
4824
5062
|
*/
|
|
4825
5063
|
'unicorn/no-invalid-fetch-options'?: Linter.RuleEntry<[]>;
|
|
4826
5064
|
/**
|
|
4827
5065
|
* Disallow invalid `accept` values on file inputs.
|
|
4828
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5066
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-file-input-accept.md
|
|
4829
5067
|
*/
|
|
4830
5068
|
'unicorn/no-invalid-file-input-accept'?: Linter.RuleEntry<[]>;
|
|
4831
5069
|
/**
|
|
4832
|
-
* Disallow
|
|
4833
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5070
|
+
* Disallow invalid subresource integrity metadata.
|
|
5071
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-integrity.md
|
|
5072
|
+
*/
|
|
5073
|
+
'unicorn/no-invalid-integrity'?: Linter.RuleEntry<[]>;
|
|
5074
|
+
/**
|
|
5075
|
+
* Disallow invalid or ignored Intl options.
|
|
5076
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-intl-options.md
|
|
5077
|
+
*/
|
|
5078
|
+
'unicorn/no-invalid-intl-options'?: Linter.RuleEntry<[]>;
|
|
5079
|
+
/**
|
|
5080
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-invalid-media-features`.
|
|
5081
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-invalid-media-features
|
|
5082
|
+
* @deprecated
|
|
4834
5083
|
*/
|
|
4835
5084
|
'unicorn/no-invalid-media-features'?: Linter.RuleEntry<[]>;
|
|
5085
|
+
/**
|
|
5086
|
+
* Disallow invalid property descriptors.
|
|
5087
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-property-descriptor.md
|
|
5088
|
+
*/
|
|
5089
|
+
'unicorn/no-invalid-property-descriptor'?: Linter.RuleEntry<[]>;
|
|
4836
5090
|
/**
|
|
4837
5091
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
4838
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5092
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
4839
5093
|
*/
|
|
4840
5094
|
'unicorn/no-invalid-remove-event-listener'?: Linter.RuleEntry<[]>;
|
|
5095
|
+
/**
|
|
5096
|
+
* Disallow invalid options in `new Response()`, `Response.json()`, and `Response.redirect()`.
|
|
5097
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-response-options.md
|
|
5098
|
+
*/
|
|
5099
|
+
'unicorn/no-invalid-response-options'?: Linter.RuleEntry<[]>;
|
|
5100
|
+
/**
|
|
5101
|
+
* Disallow invalid arguments to `CSSStyleDeclaration#setProperty()`.
|
|
5102
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-style-set-property.md
|
|
5103
|
+
*/
|
|
5104
|
+
'unicorn/no-invalid-style-set-property'?: Linter.RuleEntry<[]>;
|
|
5105
|
+
/**
|
|
5106
|
+
* Disallow statically known invalid Temporal arithmetic.
|
|
5107
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-temporal-arithmetic.md
|
|
5108
|
+
*/
|
|
5109
|
+
'unicorn/no-invalid-temporal-arithmetic'?: Linter.RuleEntry<[]>;
|
|
5110
|
+
/**
|
|
5111
|
+
* Disallow invalid protocol strings in comparisons with `URL#protocol`.
|
|
5112
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-url-protocol-comparison.md
|
|
5113
|
+
*/
|
|
5114
|
+
'unicorn/no-invalid-url-protocol-comparison'?: Linter.RuleEntry<[]>;
|
|
4841
5115
|
/**
|
|
4842
5116
|
* Disallow invalid implementations of well-known symbol methods.
|
|
4843
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5117
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-invalid-well-known-symbol-methods.md
|
|
4844
5118
|
*/
|
|
4845
5119
|
'unicorn/no-invalid-well-known-symbol-methods'?: Linter.RuleEntry<[]>;
|
|
5120
|
+
/**
|
|
5121
|
+
* Disallow `javascript:` URLs in Markdown.
|
|
5122
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-javascript-url.md
|
|
5123
|
+
*/
|
|
5124
|
+
'unicorn/no-javascript-url'?: Linter.RuleEntry<[]>;
|
|
4846
5125
|
/**
|
|
4847
5126
|
* Disallow identifiers starting with `new` or `class`.
|
|
4848
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5127
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-keyword-prefix.md
|
|
4849
5128
|
*/
|
|
4850
5129
|
'unicorn/no-keyword-prefix'?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
4851
5130
|
/**
|
|
4852
5131
|
* Disallow accessing `event.currentTarget` after the synchronous event dispatch has finished.
|
|
4853
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5132
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-current-target-access.md
|
|
4854
5133
|
*/
|
|
4855
5134
|
'unicorn/no-late-current-target-access'?: Linter.RuleEntry<[]>;
|
|
4856
5135
|
/**
|
|
4857
5136
|
* Disallow event-control method calls after the synchronous event dispatch has finished.
|
|
4858
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5137
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-late-event-control.md
|
|
4859
5138
|
*/
|
|
4860
5139
|
'unicorn/no-late-event-control'?: Linter.RuleEntry<[]>;
|
|
5140
|
+
/**
|
|
5141
|
+
* Disallow empty lines at the beginning of a file.
|
|
5142
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-leading-empty-lines.md
|
|
5143
|
+
*/
|
|
5144
|
+
'unicorn/no-leading-empty-lines'?: Linter.RuleEntry<[]>;
|
|
4861
5145
|
/**
|
|
4862
5146
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
4863
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5147
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-length-as-slice-end
|
|
4864
5148
|
* @deprecated
|
|
4865
5149
|
*/
|
|
4866
5150
|
'unicorn/no-length-as-slice-end'?: Linter.RuleEntry<[]>;
|
|
4867
5151
|
/**
|
|
4868
5152
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
4869
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5153
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-lonely-if.md
|
|
4870
5154
|
*/
|
|
4871
5155
|
'unicorn/no-lonely-if'?: Linter.RuleEntry<[]>;
|
|
4872
5156
|
/**
|
|
4873
5157
|
* Disallow mutating a loop iterable during iteration.
|
|
4874
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5158
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loop-iterable-mutation.md
|
|
4875
5159
|
*/
|
|
4876
5160
|
'unicorn/no-loop-iterable-mutation'?: Linter.RuleEntry<[]>;
|
|
5161
|
+
/**
|
|
5162
|
+
* Disallow numeric literals that lose precision when represented as IEEE 754 binary64 values.
|
|
5163
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-loss-of-precision.md
|
|
5164
|
+
*/
|
|
5165
|
+
'unicorn/no-loss-of-precision'?: Linter.RuleEntry<[]>;
|
|
4877
5166
|
/**
|
|
4878
5167
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
4879
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5168
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
4880
5169
|
*/
|
|
4881
5170
|
'unicorn/no-magic-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
4882
5171
|
/**
|
|
4883
5172
|
* Disallow manually wrapped comments.
|
|
4884
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5173
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-manually-wrapped-comments.md
|
|
4885
5174
|
*/
|
|
4886
5175
|
'unicorn/no-manually-wrapped-comments'?: Linter.RuleEntry<[]>;
|
|
4887
5176
|
/**
|
|
4888
5177
|
* Disallow checking a Map key before accessing a different key.
|
|
4889
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-mismatched-map-key.md
|
|
4890
5179
|
*/
|
|
4891
5180
|
'unicorn/no-mismatched-map-key'?: Linter.RuleEntry<[]>;
|
|
4892
5181
|
/**
|
|
4893
5182
|
* Disallow misrefactored compound assignments where the target is duplicated in the right-hand side.
|
|
4894
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-misrefactored-assignment.md
|
|
4895
5184
|
*/
|
|
4896
5185
|
'unicorn/no-misrefactored-assignment'?: Linter.RuleEntry<[]>;
|
|
4897
5186
|
/**
|
|
4898
5187
|
* Disallow references to missing local resources.
|
|
4899
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-missing-local-resource.md
|
|
4900
5189
|
*/
|
|
4901
5190
|
'unicorn/no-missing-local-resource'?: Linter.RuleEntry<[]>;
|
|
4902
5191
|
/**
|
|
4903
5192
|
* Disallow calling Promise executor resolver functions more than once on the same execution path.
|
|
4904
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5193
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-multiple-promise-resolver-calls.md
|
|
4905
5194
|
*/
|
|
4906
5195
|
'unicorn/no-multiple-promise-resolver-calls'?: Linter.RuleEntry<[]>;
|
|
4907
5196
|
/**
|
|
4908
5197
|
* Disallow named usage of default import and export.
|
|
4909
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-named-default.md
|
|
4910
5199
|
*/
|
|
4911
5200
|
'unicorn/no-named-default'?: Linter.RuleEntry<[]>;
|
|
4912
5201
|
/**
|
|
4913
5202
|
* Disallow negated array predicate calls.
|
|
4914
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5203
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-array-predicate.md
|
|
4915
5204
|
*/
|
|
4916
5205
|
'unicorn/no-negated-array-predicate'?: Linter.RuleEntry<[]>;
|
|
4917
5206
|
/**
|
|
4918
5207
|
* Disallow negated comparisons.
|
|
4919
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5208
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-comparison.md
|
|
4920
5209
|
*/
|
|
4921
5210
|
'unicorn/no-negated-comparison'?: Linter.RuleEntry<UnicornNoNegatedComparison>;
|
|
4922
5211
|
/**
|
|
4923
5212
|
* Disallow negated conditions.
|
|
4924
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5213
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negated-condition.md
|
|
4925
5214
|
*/
|
|
4926
5215
|
'unicorn/no-negated-condition'?: Linter.RuleEntry<[]>;
|
|
4927
5216
|
/**
|
|
4928
5217
|
* Disallow negated expression in equality check.
|
|
4929
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5218
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-negation-in-equality-check.md
|
|
4930
5219
|
*/
|
|
4931
5220
|
'unicorn/no-negation-in-equality-check'?: Linter.RuleEntry<[]>;
|
|
4932
5221
|
/**
|
|
4933
5222
|
* Disallow nested ternary expressions.
|
|
4934
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5223
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nested-ternary.md
|
|
4935
5224
|
*/
|
|
4936
5225
|
'unicorn/no-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
4937
5226
|
/**
|
|
4938
|
-
*
|
|
4939
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5227
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-nesting-with-mixed-specificity`.
|
|
5228
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-nesting-with-mixed-specificity
|
|
5229
|
+
* @deprecated
|
|
4940
5230
|
*/
|
|
4941
5231
|
'unicorn/no-nesting-with-mixed-specificity'?: Linter.RuleEntry<[]>;
|
|
4942
5232
|
/**
|
|
4943
5233
|
* Disallow `new Array()`.
|
|
4944
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5234
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-array.md
|
|
4945
5235
|
*/
|
|
4946
5236
|
'unicorn/no-new-array'?: Linter.RuleEntry<[]>;
|
|
4947
5237
|
/**
|
|
4948
5238
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
4949
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-new-buffer.md
|
|
4950
5240
|
*/
|
|
4951
5241
|
'unicorn/no-new-buffer'?: Linter.RuleEntry<[]>;
|
|
4952
5242
|
/**
|
|
4953
5243
|
* Disallow non-function values with function-style verb prefixes.
|
|
4954
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5244
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-non-function-verb-prefix.md
|
|
4955
5245
|
*/
|
|
4956
5246
|
'unicorn/no-non-function-verb-prefix'?: Linter.RuleEntry<UnicornNoNonFunctionVerbPrefix>;
|
|
4957
5247
|
/**
|
|
4958
5248
|
* Disallow non-standard properties on built-in objects.
|
|
4959
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-nonstandard-builtin-properties.md
|
|
4960
5250
|
*/
|
|
4961
5251
|
'unicorn/no-nonstandard-builtin-properties'?: Linter.RuleEntry<[]>;
|
|
4962
5252
|
/**
|
|
4963
5253
|
* Disallow the use of the `null` literal.
|
|
4964
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-null.md
|
|
4965
5255
|
*/
|
|
4966
5256
|
'unicorn/no-null'?: Linter.RuleEntry<UnicornNoNull>;
|
|
4967
5257
|
/**
|
|
4968
5258
|
* Disallow the use of objects as default parameters.
|
|
4969
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5259
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-as-default-parameter.md
|
|
4970
5260
|
*/
|
|
4971
5261
|
'unicorn/no-object-as-default-parameter'?: Linter.RuleEntry<[]>;
|
|
4972
5262
|
/**
|
|
4973
5263
|
* Disallow `Object` methods with `Map` or `Set`.
|
|
4974
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5264
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-object-methods-with-collections.md
|
|
4975
5265
|
*/
|
|
4976
5266
|
'unicorn/no-object-methods-with-collections'?: Linter.RuleEntry<[]>;
|
|
4977
5267
|
/**
|
|
4978
5268
|
* Disallow optional chaining on undeclared variables.
|
|
4979
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5269
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-optional-chaining-on-undeclared-variable.md
|
|
4980
5270
|
*/
|
|
4981
5271
|
'unicorn/no-optional-chaining-on-undeclared-variable'?: Linter.RuleEntry<[]>;
|
|
5272
|
+
/**
|
|
5273
|
+
* Disallow ineffective `preventDefault()` calls in passive event listeners.
|
|
5274
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-prevent-default-in-passive-listener.md
|
|
5275
|
+
*/
|
|
5276
|
+
'unicorn/no-prevent-default-in-passive-listener'?: Linter.RuleEntry<[]>;
|
|
4982
5277
|
/**
|
|
4983
5278
|
* Disallow `process.exit()`.
|
|
4984
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5279
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-process-exit.md
|
|
4985
5280
|
*/
|
|
4986
5281
|
'unicorn/no-process-exit'?: Linter.RuleEntry<[]>;
|
|
4987
5282
|
/**
|
|
4988
5283
|
* Disallow comparisons made redundant by an equality check in the same logical AND.
|
|
4989
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5284
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-redundant-comparison.md
|
|
4990
5285
|
*/
|
|
4991
5286
|
'unicorn/no-redundant-comparison'?: Linter.RuleEntry<[]>;
|
|
4992
5287
|
/**
|
|
4993
|
-
*
|
|
4994
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5288
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-redundant-nested-style-rules`.
|
|
5289
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-redundant-nested-style-rules
|
|
5290
|
+
* @deprecated
|
|
4995
5291
|
*/
|
|
4996
5292
|
'unicorn/no-redundant-nested-style-rules'?: Linter.RuleEntry<[]>;
|
|
4997
5293
|
/**
|
|
4998
5294
|
* Disallow using the return value of `Array#push()` and `Array#unshift()`.
|
|
4999
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5295
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-return-array-push.md
|
|
5000
5296
|
*/
|
|
5001
5297
|
'unicorn/no-return-array-push'?: Linter.RuleEntry<[]>;
|
|
5002
5298
|
/**
|
|
5003
5299
|
* Disallow selector syntax in DOM names.
|
|
5004
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5300
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-selector-as-dom-name.md
|
|
5005
5301
|
*/
|
|
5006
5302
|
'unicorn/no-selector-as-dom-name'?: Linter.RuleEntry<[]>;
|
|
5007
5303
|
/**
|
|
5008
5304
|
* Disallow shorthand properties that override related longhand properties.
|
|
5009
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5305
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-shorthand-property-overrides.md
|
|
5010
5306
|
*/
|
|
5011
5307
|
'unicorn/no-shorthand-property-overrides'?: Linter.RuleEntry<[]>;
|
|
5012
5308
|
/**
|
|
5013
5309
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
5014
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5310
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
5015
5311
|
*/
|
|
5016
5312
|
'unicorn/no-single-promise-in-promise-methods'?: Linter.RuleEntry<[]>;
|
|
5017
5313
|
/**
|
|
5018
5314
|
* Disallow classes that only have static members.
|
|
5019
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5315
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-static-only-class.md
|
|
5020
5316
|
*/
|
|
5021
5317
|
'unicorn/no-static-only-class'?: Linter.RuleEntry<[]>;
|
|
5022
5318
|
/**
|
|
5023
5319
|
* Prefer comparing values directly over subtracting and comparing to `0`.
|
|
5024
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5320
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-subtraction-comparison.md
|
|
5025
5321
|
*/
|
|
5026
5322
|
'unicorn/no-subtraction-comparison'?: Linter.RuleEntry<[]>;
|
|
5027
5323
|
/**
|
|
5028
5324
|
* Disallow `then` property.
|
|
5029
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5325
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-thenable.md
|
|
5030
5326
|
*/
|
|
5031
5327
|
'unicorn/no-thenable'?: Linter.RuleEntry<[]>;
|
|
5032
5328
|
/**
|
|
5033
5329
|
* Disallow assigning `this` to a variable.
|
|
5034
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5330
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-assignment.md
|
|
5035
5331
|
*/
|
|
5036
5332
|
'unicorn/no-this-assignment'?: Linter.RuleEntry<[]>;
|
|
5037
5333
|
/**
|
|
5038
5334
|
* Disallow `this` outside of classes.
|
|
5039
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5335
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-this-outside-of-class.md
|
|
5040
5336
|
*/
|
|
5041
5337
|
'unicorn/no-this-outside-of-class'?: Linter.RuleEntry<[]>;
|
|
5042
5338
|
/**
|
|
5043
5339
|
* Disallow assigning to top-level variables from inside functions.
|
|
5044
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5340
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-assignment-in-function.md
|
|
5045
5341
|
*/
|
|
5046
5342
|
'unicorn/no-top-level-assignment-in-function'?: Linter.RuleEntry<[]>;
|
|
5047
5343
|
/**
|
|
5048
5344
|
* Disallow top-level side effects in exported modules.
|
|
5049
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5345
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-top-level-side-effects.md
|
|
5050
5346
|
*/
|
|
5051
5347
|
'unicorn/no-top-level-side-effects'?: Linter.RuleEntry<[]>;
|
|
5052
5348
|
/**
|
|
5053
5349
|
* Disallow `all` as a transition property.
|
|
5054
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5350
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-transition-all.md
|
|
5055
5351
|
*/
|
|
5056
5352
|
'unicorn/no-transition-all'?: Linter.RuleEntry<[]>;
|
|
5057
5353
|
/**
|
|
5058
5354
|
* Disallow comparing `undefined` using `typeof`.
|
|
5059
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5355
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-typeof-undefined.md
|
|
5060
5356
|
*/
|
|
5061
5357
|
'unicorn/no-typeof-undefined'?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
5062
5358
|
/**
|
|
5063
5359
|
* Disallow referencing methods without calling them.
|
|
5064
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5360
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-uncalled-method.md
|
|
5065
5361
|
*/
|
|
5066
5362
|
'unicorn/no-uncalled-method'?: Linter.RuleEntry<[]>;
|
|
5067
5363
|
/**
|
|
5068
5364
|
* Require class members to be declared.
|
|
5069
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5365
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-undeclared-class-members.md
|
|
5070
5366
|
*/
|
|
5071
5367
|
'unicorn/no-undeclared-class-members'?: Linter.RuleEntry<[]>;
|
|
5072
5368
|
/**
|
|
5073
|
-
*
|
|
5074
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5369
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-annotations`.
|
|
5370
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-css-annotations
|
|
5371
|
+
* @deprecated
|
|
5075
5372
|
*/
|
|
5076
5373
|
'unicorn/no-unknown-css-annotations'?: Linter.RuleEntry<[]>;
|
|
5077
5374
|
/**
|
|
5078
|
-
*
|
|
5079
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5375
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-unknown-pseudo-selectors`.
|
|
5376
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unknown-pseudo-selectors
|
|
5377
|
+
* @deprecated
|
|
5080
5378
|
*/
|
|
5081
|
-
'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<
|
|
5379
|
+
'unicorn/no-unknown-pseudo-selectors'?: Linter.RuleEntry<[]>;
|
|
5082
5380
|
/**
|
|
5083
5381
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
5084
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5382
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
5085
5383
|
*/
|
|
5086
5384
|
'unicorn/no-unnecessary-array-flat-depth'?: Linter.RuleEntry<[]>;
|
|
5087
5385
|
/**
|
|
5088
|
-
* Disallow `Array#flatMap()
|
|
5089
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5386
|
+
* Disallow unnecessary use of `Array#flatMap()`.
|
|
5387
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-flat-map.md
|
|
5090
5388
|
*/
|
|
5091
5389
|
'unicorn/no-unnecessary-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
5092
5390
|
/**
|
|
5093
5391
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
5094
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5392
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
5095
5393
|
*/
|
|
5096
5394
|
'unicorn/no-unnecessary-array-splice-count'?: Linter.RuleEntry<[]>;
|
|
5097
5395
|
/**
|
|
5098
5396
|
* Disallow awaiting non-promise values.
|
|
5099
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5397
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-await.md
|
|
5100
5398
|
*/
|
|
5101
5399
|
'unicorn/no-unnecessary-await'?: Linter.RuleEntry<[]>;
|
|
5102
5400
|
/**
|
|
5103
5401
|
* Disallow unnecessary comparisons against boolean literals.
|
|
5104
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5402
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-boolean-comparison.md
|
|
5105
5403
|
*/
|
|
5106
5404
|
'unicorn/no-unnecessary-boolean-comparison'?: Linter.RuleEntry<[]>;
|
|
5107
5405
|
/**
|
|
5108
5406
|
* Disallow unnecessary options in `fetch()` and `new Request()`.
|
|
5109
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5407
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-fetch-options.md
|
|
5110
5408
|
*/
|
|
5111
5409
|
'unicorn/no-unnecessary-fetch-options'?: Linter.RuleEntry<[]>;
|
|
5112
5410
|
/**
|
|
5113
5411
|
* Disallow unnecessary `globalThis` references.
|
|
5114
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5412
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-global-this.md
|
|
5115
5413
|
*/
|
|
5116
5414
|
'unicorn/no-unnecessary-global-this'?: Linter.RuleEntry<[]>;
|
|
5117
5415
|
/**
|
|
5118
5416
|
* Disallow unnecessary nested ternary expressions.
|
|
5119
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5417
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-nested-ternary.md
|
|
5120
5418
|
*/
|
|
5121
5419
|
'unicorn/no-unnecessary-nested-ternary'?: Linter.RuleEntry<[]>;
|
|
5420
|
+
/**
|
|
5421
|
+
* Disallow parameters that receive the same value at every call.
|
|
5422
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-parameters.md
|
|
5423
|
+
*/
|
|
5424
|
+
'unicorn/no-unnecessary-parameters'?: Linter.RuleEntry<UnicornNoUnnecessaryParameters>;
|
|
5122
5425
|
/**
|
|
5123
5426
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
5124
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5427
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
5125
5428
|
*/
|
|
5126
5429
|
'unicorn/no-unnecessary-polyfills'?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
5127
5430
|
/**
|
|
5128
5431
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
5129
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5432
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
5130
5433
|
*/
|
|
5131
5434
|
'unicorn/no-unnecessary-slice-end'?: Linter.RuleEntry<[]>;
|
|
5132
5435
|
/**
|
|
5133
5436
|
* Disallow `Array#splice()` when simpler alternatives exist.
|
|
5134
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5437
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-splice.md
|
|
5135
5438
|
*/
|
|
5136
5439
|
'unicorn/no-unnecessary-splice'?: Linter.RuleEntry<[]>;
|
|
5137
5440
|
/**
|
|
5138
5441
|
* Disallow `String#trim()` before `String#startsWith()` or `String#endsWith()`.
|
|
5139
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5442
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unnecessary-string-trim.md
|
|
5140
5443
|
*/
|
|
5141
5444
|
'unicorn/no-unnecessary-string-trim'?: Linter.RuleEntry<[]>;
|
|
5142
5445
|
/**
|
|
5143
5446
|
* Disallow unreadable array destructuring.
|
|
5144
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5447
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
5145
5448
|
*/
|
|
5146
5449
|
'unicorn/no-unreadable-array-destructuring'?: Linter.RuleEntry<UnicornNoUnreadableArrayDestructuring>;
|
|
5147
5450
|
/**
|
|
5148
5451
|
* Disallow unreadable iterable expressions in `for…of` and `for await…of` loop headers.
|
|
5149
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5452
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-for-of-expression.md
|
|
5150
5453
|
*/
|
|
5151
5454
|
'unicorn/no-unreadable-for-of-expression'?: Linter.RuleEntry<[]>;
|
|
5152
5455
|
/**
|
|
5153
5456
|
* Disallow unreadable IIFEs.
|
|
5154
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5457
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-iife.md
|
|
5155
5458
|
*/
|
|
5156
5459
|
'unicorn/no-unreadable-iife'?: Linter.RuleEntry<[]>;
|
|
5157
5460
|
/**
|
|
5158
5461
|
* Disallow unreadable `new` expressions.
|
|
5159
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5462
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-new-expression.md
|
|
5160
5463
|
*/
|
|
5161
5464
|
'unicorn/no-unreadable-new-expression'?: Linter.RuleEntry<[]>;
|
|
5162
5465
|
/**
|
|
5163
5466
|
* Disallow unreadable object destructuring.
|
|
5164
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5467
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unreadable-object-destructuring.md
|
|
5165
5468
|
*/
|
|
5166
5469
|
'unicorn/no-unreadable-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
5167
5470
|
/**
|
|
5168
5471
|
* Prevent unsafe use of ArrayBuffer view `.buffer`.
|
|
5169
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5472
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-buffer-conversion.md
|
|
5170
5473
|
*/
|
|
5171
5474
|
'unicorn/no-unsafe-buffer-conversion'?: Linter.RuleEntry<[]>;
|
|
5172
5475
|
/**
|
|
5173
5476
|
* Disallow unsafe DOM HTML APIs.
|
|
5174
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5477
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-dom-html.md
|
|
5175
5478
|
*/
|
|
5176
5479
|
'unicorn/no-unsafe-dom-html'?: Linter.RuleEntry<[]>;
|
|
5480
|
+
/**
|
|
5481
|
+
* Disallow known values that JSON serialization cannot represent faithfully.
|
|
5482
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-json-serialization.md
|
|
5483
|
+
*/
|
|
5484
|
+
'unicorn/no-unsafe-json-serialization'?: Linter.RuleEntry<[]>;
|
|
5177
5485
|
/**
|
|
5178
5486
|
* Disallow reading `.value` from `Promise.allSettled()` results without a fulfilled status guard.
|
|
5179
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5487
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-promise-all-settled-values.md
|
|
5180
5488
|
*/
|
|
5181
5489
|
'unicorn/no-unsafe-promise-all-settled-values'?: Linter.RuleEntry<[]>;
|
|
5182
5490
|
/**
|
|
5183
5491
|
* Disallow unsafe values as property keys.
|
|
5184
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5492
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-property-key.md
|
|
5185
5493
|
*/
|
|
5186
5494
|
'unicorn/no-unsafe-property-key'?: Linter.RuleEntry<[]>;
|
|
5187
5495
|
/**
|
|
5188
5496
|
* Disallow interpolation into SQL strings passed to Node’s `node:sqlite` APIs.
|
|
5189
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5497
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-sqlite-interpolation.md
|
|
5190
5498
|
*/
|
|
5191
5499
|
'unicorn/no-unsafe-sqlite-interpolation'?: Linter.RuleEntry<[]>;
|
|
5192
5500
|
/**
|
|
5193
5501
|
* Disallow non-literal replacement values in `String#replace()` and `String#replaceAll()`.
|
|
5194
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5502
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unsafe-string-replacement.md
|
|
5195
5503
|
*/
|
|
5196
5504
|
'unicorn/no-unsafe-string-replacement'?: Linter.RuleEntry<[]>;
|
|
5197
5505
|
/**
|
|
5198
|
-
*
|
|
5199
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5506
|
+
* Moved to `eslint-cssicorn` as `cssicorn/no-unscoped-nesting-selector`.
|
|
5507
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unscoped-css-nesting-selector
|
|
5508
|
+
* @deprecated
|
|
5200
5509
|
*/
|
|
5201
|
-
'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<
|
|
5510
|
+
'unicorn/no-unscoped-css-nesting-selector'?: Linter.RuleEntry<[]>;
|
|
5202
5511
|
/**
|
|
5203
5512
|
* Replaced by `unicorn/no-unused-builtin-method-return` which covers more cases.
|
|
5204
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5513
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#no-unused-array-method-return
|
|
5205
5514
|
* @deprecated
|
|
5206
5515
|
*/
|
|
5207
5516
|
'unicorn/no-unused-array-method-return'?: Linter.RuleEntry<[]>;
|
|
5208
5517
|
/**
|
|
5209
5518
|
* Disallow ignoring the return value of selected built-in methods.
|
|
5210
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5519
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-builtin-method-return.md
|
|
5211
5520
|
*/
|
|
5212
5521
|
'unicorn/no-unused-builtin-method-return'?: Linter.RuleEntry<[]>;
|
|
5213
5522
|
/**
|
|
5214
5523
|
* Disallow discarding lazy iterator helpers.
|
|
5215
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5524
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-iterator-helper.md
|
|
5216
5525
|
*/
|
|
5217
5526
|
'unicorn/no-unused-iterator-helper'?: Linter.RuleEntry<[]>;
|
|
5218
5527
|
/**
|
|
5219
5528
|
* Disallow unused object properties.
|
|
5220
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5529
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-unused-properties.md
|
|
5221
5530
|
*/
|
|
5222
5531
|
'unicorn/no-unused-properties'?: Linter.RuleEntry<[]>;
|
|
5532
|
+
/**
|
|
5533
|
+
* Disallow passing full URLs to `URLSearchParams`.
|
|
5534
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-url-in-search-params.md
|
|
5535
|
+
*/
|
|
5536
|
+
'unicorn/no-url-in-search-params'?: Linter.RuleEntry<[]>;
|
|
5223
5537
|
/**
|
|
5224
5538
|
* Disallow unnecessary `Boolean()` casts in array predicate callbacks.
|
|
5225
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5539
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-boolean-cast.md
|
|
5226
5540
|
*/
|
|
5227
5541
|
'unicorn/no-useless-boolean-cast'?: Linter.RuleEntry<[]>;
|
|
5228
5542
|
/**
|
|
5229
5543
|
* Disallow useless type coercions of values that are already of the target type.
|
|
5230
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5544
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-coercion.md
|
|
5231
5545
|
*/
|
|
5232
5546
|
'unicorn/no-useless-coercion'?: Linter.RuleEntry<[]>;
|
|
5233
5547
|
/**
|
|
5234
5548
|
* Disallow useless values or fallbacks in `Set`, `Map`, `WeakSet`, or `WeakMap`.
|
|
5235
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5549
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-collection-argument.md
|
|
5236
5550
|
*/
|
|
5237
5551
|
'unicorn/no-useless-collection-argument'?: Linter.RuleEntry<[]>;
|
|
5238
5552
|
/**
|
|
5239
5553
|
* Disallow useless compound assignments such as `x += 0`.
|
|
5240
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5554
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-compound-assignment.md
|
|
5241
5555
|
*/
|
|
5242
5556
|
'unicorn/no-useless-compound-assignment'?: Linter.RuleEntry<[]>;
|
|
5243
5557
|
/**
|
|
5244
5558
|
* Disallow useless concatenation of literals.
|
|
5245
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5559
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-concat.md
|
|
5246
5560
|
*/
|
|
5247
5561
|
'unicorn/no-useless-concat'?: Linter.RuleEntry<[]>;
|
|
5248
5562
|
/**
|
|
5249
5563
|
* Disallow useless `continue` statements.
|
|
5250
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5564
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-continue.md
|
|
5251
5565
|
*/
|
|
5252
5566
|
'unicorn/no-useless-continue'?: Linter.RuleEntry<[]>;
|
|
5253
5567
|
/**
|
|
5254
5568
|
* Disallow unnecessary existence checks before deletion.
|
|
5255
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5569
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-delete-check.md
|
|
5256
5570
|
*/
|
|
5257
5571
|
'unicorn/no-useless-delete-check'?: Linter.RuleEntry<[]>;
|
|
5258
5572
|
/**
|
|
5259
5573
|
* Disallow `else` after a statement that exits.
|
|
5260
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5574
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-else.md
|
|
5261
5575
|
*/
|
|
5262
5576
|
'unicorn/no-useless-else'?: Linter.RuleEntry<[]>;
|
|
5263
5577
|
/**
|
|
5264
5578
|
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
5265
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5579
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
5266
5580
|
*/
|
|
5267
5581
|
'unicorn/no-useless-error-capture-stack-trace'?: Linter.RuleEntry<[]>;
|
|
5268
5582
|
/**
|
|
5269
5583
|
* Disallow useless fallback when spreading in object literals.
|
|
5270
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5584
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
5271
5585
|
*/
|
|
5272
5586
|
'unicorn/no-useless-fallback-in-spread'?: Linter.RuleEntry<[]>;
|
|
5273
5587
|
/**
|
|
5274
5588
|
* Disallow unnecessary `.toArray()` on iterators.
|
|
5275
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5589
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-iterator-to-array.md
|
|
5276
5590
|
*/
|
|
5277
5591
|
'unicorn/no-useless-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
5278
5592
|
/**
|
|
5279
5593
|
* Disallow useless array length check.
|
|
5280
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5594
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-length-check.md
|
|
5281
5595
|
*/
|
|
5282
5596
|
'unicorn/no-useless-length-check'?: Linter.RuleEntry<[]>;
|
|
5283
5597
|
/**
|
|
5284
5598
|
* Disallow unnecessary operands in logical expressions involving boolean literals.
|
|
5285
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5599
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-logical-operand.md
|
|
5286
5600
|
*/
|
|
5287
5601
|
'unicorn/no-useless-logical-operand'?: Linter.RuleEntry<[]>;
|
|
5288
5602
|
/**
|
|
5289
5603
|
* Disallow useless overrides of class methods.
|
|
5290
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5604
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-override.md
|
|
5291
5605
|
*/
|
|
5292
5606
|
'unicorn/no-useless-override'?: Linter.RuleEntry<[]>;
|
|
5293
5607
|
/**
|
|
5294
5608
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
5295
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5609
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
5296
5610
|
*/
|
|
5297
5611
|
'unicorn/no-useless-promise-resolve-reject'?: Linter.RuleEntry<[]>;
|
|
5298
5612
|
/**
|
|
5299
5613
|
* Disallow redundant re-exports.
|
|
5300
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5614
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-re-export.md
|
|
5301
5615
|
*/
|
|
5302
5616
|
'unicorn/no-useless-re-export'?: Linter.RuleEntry<[]>;
|
|
5303
5617
|
/**
|
|
5304
5618
|
* Disallow simple recursive function calls that can be replaced with a loop.
|
|
5305
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5619
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-recursion.md
|
|
5306
5620
|
*/
|
|
5307
5621
|
'unicorn/no-useless-recursion'?: Linter.RuleEntry<[]>;
|
|
5308
5622
|
/**
|
|
5309
5623
|
* Disallow unnecessary `Set` construction around `Set` methods.
|
|
5310
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5624
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-set-construction.md
|
|
5311
5625
|
*/
|
|
5312
5626
|
'unicorn/no-useless-set-construction'?: Linter.RuleEntry<[]>;
|
|
5313
5627
|
/**
|
|
5314
5628
|
* Disallow unnecessary spread.
|
|
5315
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5629
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-spread.md
|
|
5316
5630
|
*/
|
|
5317
5631
|
'unicorn/no-useless-spread'?: Linter.RuleEntry<[]>;
|
|
5318
5632
|
/**
|
|
5319
5633
|
* Disallow useless case in switch statements.
|
|
5320
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5634
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-switch-case.md
|
|
5321
5635
|
*/
|
|
5322
5636
|
'unicorn/no-useless-switch-case'?: Linter.RuleEntry<[]>;
|
|
5323
5637
|
/**
|
|
5324
5638
|
* Disallow useless template literal expressions.
|
|
5325
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5639
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-template-literals.md
|
|
5326
5640
|
*/
|
|
5327
5641
|
'unicorn/no-useless-template-literals'?: Linter.RuleEntry<[]>;
|
|
5328
5642
|
/**
|
|
5329
5643
|
* Disallow useless `undefined`.
|
|
5330
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5644
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-useless-undefined.md
|
|
5331
5645
|
*/
|
|
5332
5646
|
'unicorn/no-useless-undefined'?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
5333
5647
|
/**
|
|
5334
5648
|
* Disallow returning or exporting resources declared with `using`, including through capturing functions.
|
|
5335
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5649
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-using-resource-escape.md
|
|
5336
5650
|
*/
|
|
5337
5651
|
'unicorn/no-using-resource-escape'?: Linter.RuleEntry<[]>;
|
|
5338
5652
|
/**
|
|
5339
5653
|
* Disallow the bitwise XOR operator where exponentiation was likely intended.
|
|
5340
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5654
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-xor-as-exponentiation.md
|
|
5341
5655
|
*/
|
|
5342
5656
|
'unicorn/no-xor-as-exponentiation'?: Linter.RuleEntry<[]>;
|
|
5343
5657
|
/**
|
|
5344
|
-
*
|
|
5345
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5658
|
+
* Require consistent decimal numbers without redundant zeros.
|
|
5659
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/no-zero-fractions.md
|
|
5346
5660
|
*/
|
|
5347
5661
|
'unicorn/no-zero-fractions'?: Linter.RuleEntry<[]>;
|
|
5348
5662
|
/**
|
|
5349
5663
|
* Enforce proper case for numeric literals.
|
|
5350
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5664
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/number-literal-case.md
|
|
5351
5665
|
*/
|
|
5352
5666
|
'unicorn/number-literal-case'?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
5353
5667
|
/**
|
|
5354
5668
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
5355
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5669
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/numeric-separators-style.md
|
|
5356
5670
|
*/
|
|
5357
5671
|
'unicorn/numeric-separators-style'?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
5358
5672
|
/**
|
|
5359
5673
|
* Require assignment operator shorthand where possible.
|
|
5360
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5674
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/operator-assignment.md
|
|
5361
5675
|
*/
|
|
5362
5676
|
'unicorn/operator-assignment'?: Linter.RuleEntry<UnicornOperatorAssignment>;
|
|
5363
5677
|
/**
|
|
5364
5678
|
* Prefer `AbortSignal.any()` over manually forwarding abort events between signals.
|
|
5365
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5679
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-any.md
|
|
5366
5680
|
*/
|
|
5367
5681
|
'unicorn/prefer-abort-signal-any'?: Linter.RuleEntry<[]>;
|
|
5368
5682
|
/**
|
|
5369
5683
|
* Prefer `AbortSignal.timeout()` over manually aborting an `AbortController` with `setTimeout()`.
|
|
5370
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-abort-signal-timeout.md
|
|
5371
5685
|
*/
|
|
5372
5686
|
'unicorn/prefer-abort-signal-timeout'?: Linter.RuleEntry<[]>;
|
|
5373
5687
|
/**
|
|
5374
5688
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
5375
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5689
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener.md
|
|
5376
5690
|
*/
|
|
5377
5691
|
'unicorn/prefer-add-event-listener'?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
5378
5692
|
/**
|
|
5379
5693
|
* Prefer an options object over a boolean in `.addEventListener()`.
|
|
5380
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5694
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-add-event-listener-options.md
|
|
5381
5695
|
*/
|
|
5382
5696
|
'unicorn/prefer-add-event-listener-options'?: Linter.RuleEntry<[]>;
|
|
5383
5697
|
/**
|
|
5384
5698
|
* Prefer `AggregateError` when throwing collected errors.
|
|
5385
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5699
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-aggregate-error.md
|
|
5386
5700
|
*/
|
|
5387
5701
|
'unicorn/prefer-aggregate-error'?: Linter.RuleEntry<[]>;
|
|
5388
5702
|
/**
|
|
5389
5703
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
5390
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5704
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-find.md
|
|
5391
5705
|
*/
|
|
5392
5706
|
'unicorn/prefer-array-find'?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
5393
5707
|
/**
|
|
5394
5708
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
5395
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5709
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat.md
|
|
5396
5710
|
*/
|
|
5397
5711
|
'unicorn/prefer-array-flat'?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
5398
5712
|
/**
|
|
5399
5713
|
* Prefer `.flatMap(…)` over `.map(…).flat()` and `.filter(…).flatMap(…)`.
|
|
5400
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5714
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-flat-map.md
|
|
5401
5715
|
*/
|
|
5402
5716
|
'unicorn/prefer-array-flat-map'?: Linter.RuleEntry<[]>;
|
|
5403
5717
|
/**
|
|
5404
5718
|
* Prefer `Array.fromAsync()` over array accumulation loops.
|
|
5405
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5719
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-async.md
|
|
5406
5720
|
*/
|
|
5407
5721
|
'unicorn/prefer-array-from-async'?: Linter.RuleEntry<[]>;
|
|
5408
5722
|
/**
|
|
5409
5723
|
* Prefer using the `Array.from()` mapping function argument.
|
|
5410
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5724
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-map.md
|
|
5411
5725
|
*/
|
|
5412
5726
|
'unicorn/prefer-array-from-map'?: Linter.RuleEntry<[]>;
|
|
5413
5727
|
/**
|
|
5414
5728
|
* Prefer `Array.from({length}, …)` when creating range arrays.
|
|
5415
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5729
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-from-range.md
|
|
5416
5730
|
*/
|
|
5417
5731
|
'unicorn/prefer-array-from-range'?: Linter.RuleEntry<[]>;
|
|
5418
5732
|
/**
|
|
5419
5733
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
5420
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5734
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-index-of.md
|
|
5421
5735
|
*/
|
|
5422
5736
|
'unicorn/prefer-array-index-of'?: Linter.RuleEntry<[]>;
|
|
5423
5737
|
/**
|
|
5424
5738
|
* Prefer iterating an array directly or with `Array#keys()` over `Array#entries()` when the index or value is unused.
|
|
5425
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5739
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-iterable-methods.md
|
|
5426
5740
|
*/
|
|
5427
5741
|
'unicorn/prefer-array-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
5428
5742
|
/**
|
|
5429
5743
|
* Prefer last-oriented array methods over `Array#reverse()` or `Array#toReversed()` followed by a method.
|
|
5430
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5744
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-last-methods.md
|
|
5431
5745
|
*/
|
|
5432
5746
|
'unicorn/prefer-array-last-methods'?: Linter.RuleEntry<[]>;
|
|
5433
5747
|
/**
|
|
5434
5748
|
* Prefer `Array#slice()` over `Array#splice()` when reading from the returned array.
|
|
5435
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5749
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-slice.md
|
|
5436
5750
|
*/
|
|
5437
5751
|
'unicorn/prefer-array-slice'?: Linter.RuleEntry<[]>;
|
|
5438
5752
|
/**
|
|
5439
5753
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
5440
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5754
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-array-some.md
|
|
5441
5755
|
*/
|
|
5442
5756
|
'unicorn/prefer-array-some'?: Linter.RuleEntry<[]>;
|
|
5443
5757
|
/**
|
|
5444
5758
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
5445
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5759
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-at.md
|
|
5446
5760
|
*/
|
|
5447
5761
|
'unicorn/prefer-at'?: Linter.RuleEntry<UnicornPreferAt>;
|
|
5448
5762
|
/**
|
|
5449
5763
|
* Prefer `await` over promise chaining.
|
|
5450
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5764
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-await.md
|
|
5451
5765
|
*/
|
|
5452
5766
|
'unicorn/prefer-await'?: Linter.RuleEntry<[]>;
|
|
5453
5767
|
/**
|
|
5454
5768
|
* Prefer `BigInt` literals over the constructor.
|
|
5455
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5769
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-bigint-literals.md
|
|
5456
5770
|
*/
|
|
5457
5771
|
'unicorn/prefer-bigint-literals'?: Linter.RuleEntry<[]>;
|
|
5458
5772
|
/**
|
|
5459
5773
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
5460
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5774
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
5461
5775
|
*/
|
|
5462
5776
|
'unicorn/prefer-blob-reading-methods'?: Linter.RuleEntry<[]>;
|
|
5463
5777
|
/**
|
|
5464
5778
|
* Prefer block statements over IIFEs used only for scoping.
|
|
5465
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5779
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-block-statement-over-iife.md
|
|
5466
5780
|
*/
|
|
5467
5781
|
'unicorn/prefer-block-statement-over-iife'?: Linter.RuleEntry<[]>;
|
|
5468
5782
|
/**
|
|
5469
5783
|
* Prefer directly returning boolean expressions over `if` statements.
|
|
5470
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5784
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-boolean-return.md
|
|
5471
5785
|
*/
|
|
5472
5786
|
'unicorn/prefer-boolean-return'?: Linter.RuleEntry<[]>;
|
|
5473
5787
|
/**
|
|
5474
5788
|
* Prefer class field declarations over `this` assignments in constructors.
|
|
5475
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5789
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-class-fields.md
|
|
5476
5790
|
*/
|
|
5477
5791
|
'unicorn/prefer-class-fields'?: Linter.RuleEntry<[]>;
|
|
5478
5792
|
/**
|
|
5479
5793
|
* Prefer using `Element#classList.toggle()` to toggle class names.
|
|
5480
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5794
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-classlist-toggle.md
|
|
5481
5795
|
*/
|
|
5482
5796
|
'unicorn/prefer-classlist-toggle'?: Linter.RuleEntry<[]>;
|
|
5483
5797
|
/**
|
|
5484
5798
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
5485
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5799
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-code-point.md
|
|
5486
5800
|
*/
|
|
5487
5801
|
'unicorn/prefer-code-point'?: Linter.RuleEntry<[]>;
|
|
5488
5802
|
/**
|
|
5489
5803
|
* Prefer combining consecutive guards with identical exit statements.
|
|
5490
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5804
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-combined-guards.md
|
|
5491
5805
|
*/
|
|
5492
5806
|
'unicorn/prefer-combined-guards'?: Linter.RuleEntry<UnicornPreferCombinedGuards>;
|
|
5493
5807
|
/**
|
|
5494
5808
|
* Prefer early continues over conditionals wrapping the remainder of the loop body.
|
|
5495
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5809
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-continue.md
|
|
5496
5810
|
*/
|
|
5497
5811
|
'unicorn/prefer-continue'?: Linter.RuleEntry<UnicornPreferContinue>;
|
|
5498
5812
|
/**
|
|
5499
5813
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
5500
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5814
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-date-now.md
|
|
5501
5815
|
*/
|
|
5502
5816
|
'unicorn/prefer-date-now'?: Linter.RuleEntry<[]>;
|
|
5503
5817
|
/**
|
|
5504
|
-
* Prefer default parameters over reassignment.
|
|
5505
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5818
|
+
* Prefer default parameters and destructuring defaults over reassignment and fallback expressions.
|
|
5819
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-default-parameters.md
|
|
5506
5820
|
*/
|
|
5507
5821
|
'unicorn/prefer-default-parameters'?: Linter.RuleEntry<[]>;
|
|
5508
5822
|
/**
|
|
5509
5823
|
* Prefer direct iteration over default iterator method calls.
|
|
5510
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5824
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-direct-iteration.md
|
|
5511
5825
|
*/
|
|
5512
5826
|
'unicorn/prefer-direct-iteration'?: Linter.RuleEntry<[]>;
|
|
5513
5827
|
/**
|
|
5514
5828
|
* Prefer using `using`/`await using` over manual `try`/`finally` resource disposal.
|
|
5515
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5829
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dispose.md
|
|
5516
5830
|
*/
|
|
5517
5831
|
'unicorn/prefer-dispose'?: Linter.RuleEntry<[]>;
|
|
5518
5832
|
/**
|
|
5519
5833
|
* Prefer `Element#append()` over `Node#appendChild()`.
|
|
5520
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5834
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-append.md
|
|
5521
5835
|
*/
|
|
5522
5836
|
'unicorn/prefer-dom-node-append'?: Linter.RuleEntry<[]>;
|
|
5523
5837
|
/**
|
|
5524
5838
|
* Renamed to `unicorn/dom-node-dataset`.
|
|
5525
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5839
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-dom-node-dataset
|
|
5526
5840
|
* @deprecated
|
|
5527
5841
|
*/
|
|
5528
5842
|
'unicorn/prefer-dom-node-dataset'?: Linter.RuleEntry<[]>;
|
|
5529
5843
|
/**
|
|
5530
5844
|
* Prefer `.getHTML()` and `.setHTML()` over `.innerHTML`.
|
|
5531
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5845
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-html-methods.md
|
|
5532
5846
|
*/
|
|
5533
5847
|
'unicorn/prefer-dom-node-html-methods'?: Linter.RuleEntry<UnicornPreferDomNodeHtmlMethods>;
|
|
5534
5848
|
/**
|
|
5535
5849
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
5536
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5850
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-remove.md
|
|
5537
5851
|
*/
|
|
5538
5852
|
'unicorn/prefer-dom-node-remove'?: Linter.RuleEntry<[]>;
|
|
5539
5853
|
/**
|
|
5540
5854
|
* Prefer `.replaceChildren()` when replacing DOM children.
|
|
5541
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5855
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-replace-children.md
|
|
5542
5856
|
*/
|
|
5543
5857
|
'unicorn/prefer-dom-node-replace-children'?: Linter.RuleEntry<[]>;
|
|
5544
5858
|
/**
|
|
5545
5859
|
* Prefer `.textContent` over `.innerText`.
|
|
5546
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5860
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
5547
5861
|
*/
|
|
5548
5862
|
'unicorn/prefer-dom-node-text-content'?: Linter.RuleEntry<[]>;
|
|
5549
5863
|
/**
|
|
5550
5864
|
* Prefer early returns over conditionals wrapping the remainder of the function body.
|
|
5551
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5865
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-early-return.md
|
|
5552
5866
|
*/
|
|
5553
5867
|
'unicorn/prefer-early-return'?: Linter.RuleEntry<UnicornPreferEarlyReturn>;
|
|
5554
5868
|
/**
|
|
5555
5869
|
* Prefer `else if` over adjacent `if` statements with related conditions.
|
|
5556
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5870
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-else-if.md
|
|
5557
5871
|
*/
|
|
5558
5872
|
'unicorn/prefer-else-if'?: Linter.RuleEntry<[]>;
|
|
5559
5873
|
/**
|
|
5560
5874
|
* Prefer `Error.isError()` when checking for errors.
|
|
5561
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5875
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-error-is-error.md
|
|
5562
5876
|
*/
|
|
5563
5877
|
'unicorn/prefer-error-is-error'?: Linter.RuleEntry<[]>;
|
|
5878
|
+
/**
|
|
5879
|
+
* Prefer escape sequences for irregular whitespace characters.
|
|
5880
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-escaped-irregular-whitespace.md
|
|
5881
|
+
*/
|
|
5882
|
+
'unicorn/prefer-escaped-irregular-whitespace'?: Linter.RuleEntry<[]>;
|
|
5564
5883
|
/**
|
|
5565
5884
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
5566
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5885
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-event-target.md
|
|
5567
5886
|
*/
|
|
5568
5887
|
'unicorn/prefer-event-target'?: Linter.RuleEntry<[]>;
|
|
5569
5888
|
/**
|
|
5570
|
-
*
|
|
5571
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5889
|
+
* Moved to `eslint-cssicorn` as `cssicorn/prefer-explicit-viewport-units`.
|
|
5890
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-explicit-viewport-units
|
|
5891
|
+
* @deprecated
|
|
5572
5892
|
*/
|
|
5573
|
-
'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<
|
|
5893
|
+
'unicorn/prefer-explicit-viewport-units'?: Linter.RuleEntry<[]>;
|
|
5574
5894
|
/**
|
|
5575
5895
|
* Prefer `export…from` when re-exporting.
|
|
5576
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5896
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-export-from.md
|
|
5577
5897
|
*/
|
|
5578
5898
|
'unicorn/prefer-export-from'?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
5579
5899
|
/**
|
|
5580
5900
|
* Prefer flat `Math.min()` and `Math.max()` calls over nested calls.
|
|
5581
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5901
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-flat-math-min-max.md
|
|
5582
5902
|
*/
|
|
5583
5903
|
'unicorn/prefer-flat-math-min-max'?: Linter.RuleEntry<[]>;
|
|
5584
5904
|
/**
|
|
5585
5905
|
* Prefer `.getOrInsertComputed()` when the default value has side effects.
|
|
5586
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5906
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-get-or-insert-computed.md
|
|
5587
5907
|
*/
|
|
5588
5908
|
'unicorn/prefer-get-or-insert-computed'?: Linter.RuleEntry<[]>;
|
|
5589
5909
|
/**
|
|
5590
5910
|
* Prefer global numeric constants over `Number` static properties.
|
|
5591
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5911
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-number-constants.md
|
|
5592
5912
|
*/
|
|
5593
5913
|
'unicorn/prefer-global-number-constants'?: Linter.RuleEntry<[]>;
|
|
5594
5914
|
/**
|
|
5595
5915
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
5596
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5916
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-global-this.md
|
|
5597
5917
|
*/
|
|
5598
5918
|
'unicorn/prefer-global-this'?: Linter.RuleEntry<[]>;
|
|
5599
5919
|
/**
|
|
5600
5920
|
* Prefer `Object.groupBy()` or `Map.groupBy()` over manual grouping.
|
|
5601
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5921
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-group-by.md
|
|
5602
5922
|
*/
|
|
5603
5923
|
'unicorn/prefer-group-by'?: Linter.RuleEntry<[]>;
|
|
5604
5924
|
/**
|
|
5605
5925
|
* Prefer `.has()` when checking existence.
|
|
5606
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-has-check.md
|
|
5607
5927
|
*/
|
|
5608
5928
|
'unicorn/prefer-has-check'?: Linter.RuleEntry<[]>;
|
|
5609
5929
|
/**
|
|
5610
5930
|
* Prefer moving code shared by all branches of an `if` statement out of the branches.
|
|
5611
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5931
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-hoisting-branch-code.md
|
|
5612
5932
|
*/
|
|
5613
5933
|
'unicorn/prefer-hoisting-branch-code'?: Linter.RuleEntry<[]>;
|
|
5614
5934
|
/**
|
|
5615
5935
|
* Prefer HTTPS over HTTP.
|
|
5616
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5936
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-https.md
|
|
5617
5937
|
*/
|
|
5618
5938
|
'unicorn/prefer-https'?: Linter.RuleEntry<UnicornPreferHttps>;
|
|
5619
5939
|
/**
|
|
5620
5940
|
* Prefer identifiers over string literals in import and export specifiers.
|
|
5621
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5941
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-identifier-import-export-specifiers.md
|
|
5622
5942
|
*/
|
|
5623
5943
|
'unicorn/prefer-identifier-import-export-specifiers'?: Linter.RuleEntry<[]>;
|
|
5624
5944
|
/**
|
|
5625
5945
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
5626
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5946
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-import-meta-properties.md
|
|
5627
5947
|
*/
|
|
5628
5948
|
'unicorn/prefer-import-meta-properties'?: Linter.RuleEntry<[]>;
|
|
5629
5949
|
/**
|
|
5630
5950
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
5631
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5951
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes.md
|
|
5632
5952
|
*/
|
|
5633
5953
|
'unicorn/prefer-includes'?: Linter.RuleEntry<[]>;
|
|
5634
5954
|
/**
|
|
5635
5955
|
* Prefer `.includes()` over repeated equality comparisons.
|
|
5636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5956
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-includes-over-repeated-comparisons.md
|
|
5637
5957
|
*/
|
|
5638
5958
|
'unicorn/prefer-includes-over-repeated-comparisons'?: Linter.RuleEntry<UnicornPreferIncludesOverRepeatedComparisons>;
|
|
5639
5959
|
/**
|
|
5640
5960
|
* Prefer passing iterables directly to constructors instead of filling empty collections.
|
|
5641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5961
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterable-in-constructor.md
|
|
5642
5962
|
*/
|
|
5643
5963
|
'unicorn/prefer-iterable-in-constructor'?: Linter.RuleEntry<[]>;
|
|
5644
5964
|
/**
|
|
5645
5965
|
* Prefer `Iterator.concat(…)` over temporary spread arrays.
|
|
5646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5966
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-concat.md
|
|
5647
5967
|
*/
|
|
5648
5968
|
'unicorn/prefer-iterator-concat'?: Linter.RuleEntry<[]>;
|
|
5649
5969
|
/**
|
|
5650
5970
|
* Prefer iterator helpers over temporary arrays from iterators.
|
|
5651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5971
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-helpers.md
|
|
5652
5972
|
*/
|
|
5653
5973
|
'unicorn/prefer-iterator-helpers'?: Linter.RuleEntry<[]>;
|
|
5654
5974
|
/**
|
|
5655
5975
|
* Prefer `Iterator#toArray()` over temporary arrays from iterator spreads.
|
|
5656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array.md
|
|
5657
5977
|
*/
|
|
5658
5978
|
'unicorn/prefer-iterator-to-array'?: Linter.RuleEntry<[]>;
|
|
5659
5979
|
/**
|
|
5660
5980
|
* Prefer moving `.toArray()` to the end of iterator helper chains.
|
|
5661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5981
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-to-array-at-end.md
|
|
5662
5982
|
*/
|
|
5663
5983
|
'unicorn/prefer-iterator-to-array-at-end'?: Linter.RuleEntry<[]>;
|
|
5664
5984
|
/**
|
|
5665
5985
|
* Prefer `Iterator.zip()` over parallel-array indexing.
|
|
5666
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5986
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-iterator-zip.md
|
|
5667
5987
|
*/
|
|
5668
5988
|
'unicorn/prefer-iterator-zip'?: Linter.RuleEntry<[]>;
|
|
5669
5989
|
/**
|
|
5670
5990
|
* Prefer JSON imports over reading and parsing JSON files.
|
|
5671
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5991
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-json-import.md
|
|
5672
5992
|
*/
|
|
5673
5993
|
'unicorn/prefer-json-import'?: Linter.RuleEntry<[]>;
|
|
5674
5994
|
/**
|
|
5675
5995
|
* Renamed to `unicorn/consistent-json-file-read`.
|
|
5676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
5996
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-json-parse-buffer
|
|
5677
5997
|
* @deprecated
|
|
5678
5998
|
*/
|
|
5679
5999
|
'unicorn/prefer-json-parse-buffer'?: Linter.RuleEntry<[]>;
|
|
5680
6000
|
/**
|
|
5681
6001
|
* Prefer `KeyboardEvent#key` over deprecated keyboard event properties.
|
|
5682
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
5683
6003
|
*/
|
|
5684
6004
|
'unicorn/prefer-keyboard-event-key'?: Linter.RuleEntry<[]>;
|
|
6005
|
+
/**
|
|
6006
|
+
* Prefer literal printable ASCII characters over escape sequences.
|
|
6007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-literal-ascii.md
|
|
6008
|
+
*/
|
|
6009
|
+
'unicorn/prefer-literal-ascii'?: Linter.RuleEntry<[]>;
|
|
5685
6010
|
/**
|
|
5686
6011
|
* Prefer `location.assign()` over assigning to `location.href`.
|
|
5687
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-location-assign.md
|
|
5688
6013
|
*/
|
|
5689
6014
|
'unicorn/prefer-location-assign'?: Linter.RuleEntry<[]>;
|
|
5690
6015
|
/**
|
|
5691
6016
|
* Prefer using a logical operator over a ternary.
|
|
5692
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
5693
6018
|
*/
|
|
5694
6019
|
'unicorn/prefer-logical-operator-over-ternary'?: Linter.RuleEntry<[]>;
|
|
5695
6020
|
/**
|
|
5696
6021
|
* Prefer `new Map()` over `Object.fromEntries()` when using the result as a map.
|
|
5697
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-map-from-entries.md
|
|
5698
6023
|
*/
|
|
5699
6024
|
'unicorn/prefer-map-from-entries'?: Linter.RuleEntry<[]>;
|
|
5700
6025
|
/**
|
|
5701
6026
|
* Prefer `Math.abs()` over manual absolute value expressions and symmetric range checks.
|
|
5702
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-abs.md
|
|
5703
6028
|
*/
|
|
5704
6029
|
'unicorn/prefer-math-abs'?: Linter.RuleEntry<[]>;
|
|
5705
6030
|
/**
|
|
5706
6031
|
* Prefer `Math` constants over their approximate numeric values.
|
|
5707
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-constants.md
|
|
5708
6033
|
*/
|
|
5709
6034
|
'unicorn/prefer-math-constants'?: Linter.RuleEntry<[]>;
|
|
5710
6035
|
/**
|
|
5711
6036
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
5712
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-min-max.md
|
|
5713
6038
|
*/
|
|
5714
6039
|
'unicorn/prefer-math-min-max'?: Linter.RuleEntry<[]>;
|
|
5715
6040
|
/**
|
|
5716
6041
|
* Prefer `Math.trunc()` for truncating numbers.
|
|
5717
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-math-trunc.md
|
|
5718
6043
|
*/
|
|
5719
6044
|
'unicorn/prefer-math-trunc'?: Linter.RuleEntry<[]>;
|
|
5720
6045
|
/**
|
|
5721
|
-
*
|
|
5722
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6046
|
+
* Moved to `eslint-cssicorn` as `cssicorn/prefer-media-feature-range-syntax`.
|
|
6047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prefer-media-feature-range-syntax
|
|
6048
|
+
* @deprecated
|
|
5723
6049
|
*/
|
|
5724
6050
|
'unicorn/prefer-media-feature-range-syntax'?: Linter.RuleEntry<[]>;
|
|
5725
6051
|
/**
|
|
5726
6052
|
* Prefer moving ternaries into the minimal varying part of an expression.
|
|
5727
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6053
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-minimal-ternary.md
|
|
5728
6054
|
*/
|
|
5729
6055
|
'unicorn/prefer-minimal-ternary'?: Linter.RuleEntry<UnicornPreferMinimalTernary>;
|
|
5730
6056
|
/**
|
|
5731
6057
|
* Prefer modern DOM APIs.
|
|
5732
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6058
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
5733
6059
|
*/
|
|
5734
6060
|
'unicorn/prefer-modern-dom-apis'?: Linter.RuleEntry<[]>;
|
|
5735
6061
|
/**
|
|
5736
6062
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
5737
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6063
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-modern-math-apis.md
|
|
5738
6064
|
*/
|
|
5739
6065
|
'unicorn/prefer-modern-math-apis'?: Linter.RuleEntry<[]>;
|
|
5740
6066
|
/**
|
|
5741
6067
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
5742
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6068
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-module.md
|
|
5743
6069
|
*/
|
|
5744
6070
|
'unicorn/prefer-module'?: Linter.RuleEntry<[]>;
|
|
5745
6071
|
/**
|
|
5746
6072
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
5747
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6073
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
5748
6074
|
*/
|
|
5749
6075
|
'unicorn/prefer-native-coercion-functions'?: Linter.RuleEntry<[]>;
|
|
5750
6076
|
/**
|
|
5751
6077
|
* Prefer negative index over `.length - index` when possible.
|
|
5752
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6078
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-negative-index.md
|
|
5753
6079
|
*/
|
|
5754
6080
|
'unicorn/prefer-negative-index'?: Linter.RuleEntry<[]>;
|
|
5755
6081
|
/**
|
|
5756
6082
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
5757
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6083
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-node-protocol.md
|
|
5758
6084
|
*/
|
|
5759
6085
|
'unicorn/prefer-node-protocol'?: Linter.RuleEntry<[]>;
|
|
5760
6086
|
/**
|
|
5761
6087
|
* Prefer `Number()` over `parseFloat()` and base-10 `parseInt()`.
|
|
5762
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6088
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-coercion.md
|
|
5763
6089
|
*/
|
|
5764
6090
|
'unicorn/prefer-number-coercion'?: Linter.RuleEntry<[]>;
|
|
5765
6091
|
/**
|
|
5766
6092
|
* Prefer `Number.isSafeInteger()` over integer checks.
|
|
5767
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6093
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-is-safe-integer.md
|
|
5768
6094
|
*/
|
|
5769
6095
|
'unicorn/prefer-number-is-safe-integer'?: Linter.RuleEntry<[]>;
|
|
5770
6096
|
/**
|
|
5771
6097
|
* Prefer `Number` static methods over global functions and optionally static properties over global constants.
|
|
5772
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6098
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-number-properties.md
|
|
5773
6099
|
*/
|
|
5774
6100
|
'unicorn/prefer-number-properties'?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
5775
6101
|
/**
|
|
5776
6102
|
* Prefer `Object.defineProperties()` over multiple `Object.defineProperty()` calls.
|
|
5777
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-define-properties.md
|
|
5778
6104
|
*/
|
|
5779
6105
|
'unicorn/prefer-object-define-properties'?: Linter.RuleEntry<[]>;
|
|
5780
6106
|
/**
|
|
5781
6107
|
* Prefer object destructuring defaults over default object literals with spread.
|
|
5782
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6108
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-destructuring-defaults.md
|
|
5783
6109
|
*/
|
|
5784
6110
|
'unicorn/prefer-object-destructuring-defaults'?: Linter.RuleEntry<[]>;
|
|
5785
6111
|
/**
|
|
5786
6112
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
5787
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-from-entries.md
|
|
5788
6114
|
*/
|
|
5789
6115
|
'unicorn/prefer-object-from-entries'?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
5790
6116
|
/**
|
|
5791
6117
|
* Prefer the most specific `Object` iterable method.
|
|
5792
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6118
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-object-iterable-methods.md
|
|
5793
6119
|
*/
|
|
5794
6120
|
'unicorn/prefer-object-iterable-methods'?: Linter.RuleEntry<[]>;
|
|
5795
6121
|
/**
|
|
5796
6122
|
* Prefer observer APIs over resize and scroll listeners with layout reads.
|
|
5797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-observer-apis.md
|
|
5798
6124
|
*/
|
|
5799
6125
|
'unicorn/prefer-observer-apis'?: Linter.RuleEntry<[]>;
|
|
5800
6126
|
/**
|
|
5801
6127
|
* Prefer omitting the `catch` binding parameter.
|
|
5802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6128
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
5803
6129
|
*/
|
|
5804
6130
|
'unicorn/prefer-optional-catch-binding'?: Linter.RuleEntry<[]>;
|
|
5805
6131
|
/**
|
|
5806
6132
|
* Prefer `Path2D` for repeatedly drawn canvas paths.
|
|
5807
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6133
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-path2d.md
|
|
5808
6134
|
*/
|
|
5809
6135
|
'unicorn/prefer-path2d'?: Linter.RuleEntry<[]>;
|
|
5810
6136
|
/**
|
|
5811
6137
|
* Prefer private class fields over the underscore-prefix convention.
|
|
5812
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6138
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-private-class-fields.md
|
|
5813
6139
|
*/
|
|
5814
6140
|
'unicorn/prefer-private-class-fields'?: Linter.RuleEntry<[]>;
|
|
6141
|
+
/**
|
|
6142
|
+
* Prefer `Promise.resolve()` and `Promise.reject()` over trivial `new Promise()` calls.
|
|
6143
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-static-methods.md
|
|
6144
|
+
*/
|
|
6145
|
+
'unicorn/prefer-promise-static-methods'?: Linter.RuleEntry<[]>;
|
|
5815
6146
|
/**
|
|
5816
6147
|
* Prefer `Promise.try()` over promise-wrapping boilerplate.
|
|
5817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6148
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-try.md
|
|
5818
6149
|
*/
|
|
5819
6150
|
'unicorn/prefer-promise-try'?: Linter.RuleEntry<[]>;
|
|
5820
6151
|
/**
|
|
5821
6152
|
* Prefer `Promise.withResolvers()` when extracting resolver functions from `new Promise()`.
|
|
5822
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6153
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-promise-with-resolvers.md
|
|
5823
6154
|
*/
|
|
5824
6155
|
'unicorn/prefer-promise-with-resolvers'?: Linter.RuleEntry<[]>;
|
|
5825
6156
|
/**
|
|
5826
6157
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
5827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6158
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-prototype-methods.md
|
|
5828
6159
|
*/
|
|
5829
6160
|
'unicorn/prefer-prototype-methods'?: Linter.RuleEntry<[]>;
|
|
5830
6161
|
/**
|
|
5831
6162
|
* Prefer `.querySelector()` and `.querySelectorAll()` over older DOM query methods.
|
|
5832
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6163
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-query-selector.md
|
|
5833
6164
|
*/
|
|
5834
6165
|
'unicorn/prefer-query-selector'?: Linter.RuleEntry<UnicornPreferQuerySelector>;
|
|
5835
6166
|
/**
|
|
5836
6167
|
* Prefer `queueMicrotask()` over `process.nextTick()`, `setImmediate()`, and `setTimeout(…, 0)`.
|
|
5837
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6168
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-queue-microtask.md
|
|
5838
6169
|
*/
|
|
5839
6170
|
'unicorn/prefer-queue-microtask'?: Linter.RuleEntry<UnicornPreferQueueMicrotask>;
|
|
5840
6171
|
/**
|
|
5841
6172
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
5842
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6173
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-reflect-apply.md
|
|
5843
6174
|
*/
|
|
5844
6175
|
'unicorn/prefer-reflect-apply'?: Linter.RuleEntry<[]>;
|
|
5845
6176
|
/**
|
|
5846
6177
|
* Prefer `RegExp.escape()` for escaping strings to use in regular expressions.
|
|
5847
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6178
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-escape.md
|
|
5848
6179
|
*/
|
|
5849
6180
|
'unicorn/prefer-regexp-escape'?: Linter.RuleEntry<[]>;
|
|
5850
6181
|
/**
|
|
5851
6182
|
* Prefer `RegExp#test()` over `String#match()`, `String#search()`, and `RegExp#exec()`.
|
|
5852
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6183
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-regexp-test.md
|
|
5853
6184
|
*/
|
|
5854
6185
|
'unicorn/prefer-regexp-test'?: Linter.RuleEntry<[]>;
|
|
5855
6186
|
/**
|
|
5856
6187
|
* Prefer `Response.json()` over `new Response(JSON.stringify())`.
|
|
5857
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-response-static-json.md
|
|
5858
6189
|
*/
|
|
5859
6190
|
'unicorn/prefer-response-static-json'?: Linter.RuleEntry<[]>;
|
|
5860
6191
|
/**
|
|
5861
6192
|
* Prefer `:scope` when using element query selector methods.
|
|
5862
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6193
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-scoped-selector.md
|
|
5863
6194
|
*/
|
|
5864
6195
|
'unicorn/prefer-scoped-selector'?: Linter.RuleEntry<[]>;
|
|
5865
6196
|
/**
|
|
5866
6197
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
5867
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-has.md
|
|
5868
6199
|
*/
|
|
5869
6200
|
'unicorn/prefer-set-has'?: Linter.RuleEntry<UnicornPreferSetHas>;
|
|
5870
6201
|
/**
|
|
5871
6202
|
* Prefer `Set` methods for Set operations.
|
|
5872
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6203
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-methods.md
|
|
5873
6204
|
*/
|
|
5874
6205
|
'unicorn/prefer-set-methods'?: Linter.RuleEntry<[]>;
|
|
5875
6206
|
/**
|
|
5876
6207
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
5877
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6208
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-set-size.md
|
|
5878
6209
|
*/
|
|
5879
6210
|
'unicorn/prefer-set-size'?: Linter.RuleEntry<[]>;
|
|
5880
6211
|
/**
|
|
5881
6212
|
* Prefer arrow function properties over methods with a single return.
|
|
5882
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6213
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-arrow-method.md
|
|
5883
6214
|
*/
|
|
5884
6215
|
'unicorn/prefer-short-arrow-method'?: Linter.RuleEntry<UnicornPreferShortArrowMethod>;
|
|
6216
|
+
/**
|
|
6217
|
+
* Prefer shorter alternatives to Unicode escape sequences.
|
|
6218
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-short-escape-sequences.md
|
|
6219
|
+
*/
|
|
6220
|
+
'unicorn/prefer-short-escape-sequences'?: Linter.RuleEntry<[]>;
|
|
5885
6221
|
/**
|
|
5886
6222
|
* Prefer simple conditions first in logical expressions.
|
|
5887
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6223
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-condition-first.md
|
|
5888
6224
|
*/
|
|
5889
6225
|
'unicorn/prefer-simple-condition-first'?: Linter.RuleEntry<[]>;
|
|
5890
6226
|
/**
|
|
5891
6227
|
* Prefer a simple comparison function for `Array#sort()`.
|
|
5892
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6228
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simple-sort-comparator.md
|
|
5893
6229
|
*/
|
|
5894
6230
|
'unicorn/prefer-simple-sort-comparator'?: Linter.RuleEntry<[]>;
|
|
5895
6231
|
/**
|
|
5896
6232
|
* Prefer simplified conditions.
|
|
5897
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6233
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-simplified-conditions.md
|
|
5898
6234
|
*/
|
|
5899
|
-
'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<
|
|
6235
|
+
'unicorn/prefer-simplified-conditions'?: Linter.RuleEntry<UnicornPreferSimplifiedConditions>;
|
|
5900
6236
|
/**
|
|
5901
6237
|
* Prefer a single `Array#some()` or `Array#every()` with a combined predicate.
|
|
5902
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6238
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-array-predicate.md
|
|
5903
6239
|
*/
|
|
5904
6240
|
'unicorn/prefer-single-array-predicate'?: Linter.RuleEntry<[]>;
|
|
5905
6241
|
/**
|
|
5906
6242
|
* Enforce combining multiple `Array#{push,unshift}()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
5907
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6243
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-call.md
|
|
5908
6244
|
*/
|
|
5909
6245
|
'unicorn/prefer-single-call'?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
5910
6246
|
/**
|
|
5911
6247
|
* Prefer a single object destructuring declaration per local const source.
|
|
5912
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6248
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-object-destructuring.md
|
|
5913
6249
|
*/
|
|
5914
6250
|
'unicorn/prefer-single-object-destructuring'?: Linter.RuleEntry<[]>;
|
|
5915
6251
|
/**
|
|
5916
6252
|
* Enforce combining multiple single-character replacements into a single `String#replaceAll()` with a regular expression.
|
|
5917
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6253
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-single-replace.md
|
|
5918
6254
|
*/
|
|
5919
6255
|
'unicorn/prefer-single-replace'?: Linter.RuleEntry<[]>;
|
|
5920
6256
|
/**
|
|
5921
6257
|
* Prefer declaring variables in the smallest possible scope.
|
|
5922
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6258
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-smaller-scope.md
|
|
5923
6259
|
*/
|
|
5924
6260
|
'unicorn/prefer-smaller-scope'?: Linter.RuleEntry<[]>;
|
|
5925
6261
|
/**
|
|
5926
6262
|
* Prefer `String#split()` with a limit.
|
|
5927
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6263
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-split-limit.md
|
|
5928
6264
|
*/
|
|
5929
6265
|
'unicorn/prefer-split-limit'?: Linter.RuleEntry<[]>;
|
|
5930
6266
|
/**
|
|
5931
6267
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()`, and trivial `for…of` copies.
|
|
5932
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6268
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-spread.md
|
|
5933
6269
|
*/
|
|
5934
6270
|
'unicorn/prefer-spread'?: Linter.RuleEntry<[]>;
|
|
5935
6271
|
/**
|
|
5936
6272
|
* Prefer `String#matchAll()` over `RegExp#exec()` loops.
|
|
5937
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6273
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-match-all.md
|
|
5938
6274
|
*/
|
|
5939
6275
|
'unicorn/prefer-string-match-all'?: Linter.RuleEntry<[]>;
|
|
5940
6276
|
/**
|
|
5941
6277
|
* Prefer `String#padStart()` and `String#padEnd()` over manual string padding.
|
|
5942
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6278
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-pad-start-end.md
|
|
5943
6279
|
*/
|
|
5944
6280
|
'unicorn/prefer-string-pad-start-end'?: Linter.RuleEntry<[]>;
|
|
5945
6281
|
/**
|
|
5946
6282
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
5947
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6283
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-raw.md
|
|
5948
6284
|
*/
|
|
5949
6285
|
'unicorn/prefer-string-raw'?: Linter.RuleEntry<[]>;
|
|
5950
6286
|
/**
|
|
5951
6287
|
* Prefer `String#repeat()` for repeated whitespace.
|
|
5952
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6288
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-repeat.md
|
|
5953
6289
|
*/
|
|
5954
6290
|
'unicorn/prefer-string-repeat'?: Linter.RuleEntry<UnicornPreferStringRepeat>;
|
|
5955
6291
|
/**
|
|
5956
6292
|
* Prefer `String#replaceAll()` over regex searches with the global flag and `String#split().join()`.
|
|
5957
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6293
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-replace-all.md
|
|
5958
6294
|
*/
|
|
5959
6295
|
'unicorn/prefer-string-replace-all'?: Linter.RuleEntry<[]>;
|
|
5960
6296
|
/**
|
|
5961
6297
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
5962
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6298
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-slice.md
|
|
5963
6299
|
*/
|
|
5964
6300
|
'unicorn/prefer-string-slice'?: Linter.RuleEntry<[]>;
|
|
5965
6301
|
/**
|
|
5966
6302
|
* Prefer `String#startsWith()` & `String#endsWith()` over regexes, `String#indexOf() === 0`, and slice checks.
|
|
5967
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6303
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
5968
6304
|
*/
|
|
5969
6305
|
'unicorn/prefer-string-starts-ends-with'?: Linter.RuleEntry<[]>;
|
|
5970
6306
|
/**
|
|
5971
6307
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
5972
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6308
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
5973
6309
|
*/
|
|
5974
6310
|
'unicorn/prefer-string-trim-start-end'?: Linter.RuleEntry<[]>;
|
|
5975
6311
|
/**
|
|
5976
6312
|
* Prefer using `structuredClone` to create a deep clone.
|
|
5977
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6313
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-structured-clone.md
|
|
5978
6314
|
*/
|
|
5979
6315
|
'unicorn/prefer-structured-clone'?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
5980
6316
|
/**
|
|
5981
6317
|
* Prefer `switch` over multiple `else-if`.
|
|
5982
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6318
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-switch.md
|
|
5983
6319
|
*/
|
|
5984
6320
|
'unicorn/prefer-switch'?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
5985
6321
|
/**
|
|
5986
6322
|
* Prefer `Temporal` over `Date`.
|
|
5987
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6323
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal.md
|
|
5988
6324
|
*/
|
|
5989
6325
|
'unicorn/prefer-temporal'?: Linter.RuleEntry<UnicornPreferTemporal>;
|
|
5990
6326
|
/**
|
|
5991
6327
|
* Prefer direct Temporal conversion methods.
|
|
5992
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6328
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-temporal-conversion.md
|
|
5993
6329
|
*/
|
|
5994
6330
|
'unicorn/prefer-temporal-conversion'?: Linter.RuleEntry<[]>;
|
|
5995
6331
|
/**
|
|
5996
6332
|
* Prefer ternary expressions over simple `if` statements that return or assign values.
|
|
5997
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6333
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-ternary.md
|
|
5998
6334
|
*/
|
|
5999
6335
|
'unicorn/prefer-ternary'?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
6000
6336
|
/**
|
|
6001
6337
|
* Prefer `.then().catch()` over `.then(…, …)` for error handling.
|
|
6002
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6338
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-then-catch.md
|
|
6003
6339
|
*/
|
|
6004
6340
|
'unicorn/prefer-then-catch'?: Linter.RuleEntry<[]>;
|
|
6005
6341
|
/**
|
|
6006
6342
|
* Prefer using `Element#toggleAttribute()` to toggle attributes.
|
|
6007
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6343
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-toggle-attribute.md
|
|
6008
6344
|
*/
|
|
6009
6345
|
'unicorn/prefer-toggle-attribute'?: Linter.RuleEntry<[]>;
|
|
6010
6346
|
/**
|
|
6011
6347
|
* Prefer top-level await over top-level promises and async function calls.
|
|
6012
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6348
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-top-level-await.md
|
|
6013
6349
|
*/
|
|
6014
6350
|
'unicorn/prefer-top-level-await'?: Linter.RuleEntry<[]>;
|
|
6015
6351
|
/**
|
|
6016
6352
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
6017
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6353
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-error.md
|
|
6018
6354
|
*/
|
|
6019
6355
|
'unicorn/prefer-type-error'?: Linter.RuleEntry<[]>;
|
|
6020
6356
|
/**
|
|
6021
6357
|
* Require type literals to be last in union types.
|
|
6022
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6358
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-type-literal-last.md
|
|
6023
6359
|
*/
|
|
6024
6360
|
'unicorn/prefer-type-literal-last'?: Linter.RuleEntry<[]>;
|
|
6025
6361
|
/**
|
|
6026
6362
|
* Prefer `Uint8Array#toBase64()` and `Uint8Array.fromBase64()` over legacy base64 conversions and manual postprocessing.
|
|
6027
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6363
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-base64.md
|
|
6028
6364
|
*/
|
|
6029
6365
|
'unicorn/prefer-uint8array-base64'?: Linter.RuleEntry<[]>;
|
|
6030
6366
|
/**
|
|
6031
6367
|
* Prefer `Uint8Array#toHex()` and `Uint8Array.fromHex()` over manual and Buffer hex conversions.
|
|
6032
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6368
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-uint8array-hex.md
|
|
6033
6369
|
*/
|
|
6034
6370
|
'unicorn/prefer-uint8array-hex'?: Linter.RuleEntry<[]>;
|
|
6035
6371
|
/**
|
|
6036
6372
|
* Prefer the unary minus operator over multiplying or dividing by `-1`.
|
|
6037
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6373
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unary-minus.md
|
|
6038
6374
|
*/
|
|
6039
6375
|
'unicorn/prefer-unary-minus'?: Linter.RuleEntry<[]>;
|
|
6040
6376
|
/**
|
|
6041
6377
|
* Prefer Unicode code point escapes over legacy escape sequences.
|
|
6042
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6378
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-unicode-code-point-escapes.md
|
|
6043
6379
|
*/
|
|
6044
6380
|
'unicorn/prefer-unicode-code-point-escapes'?: Linter.RuleEntry<[]>;
|
|
6045
6381
|
/**
|
|
6046
6382
|
* Prefer `URL.canParse()` over constructing a `URL` in a try/catch for validation.
|
|
6047
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6383
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-can-parse.md
|
|
6048
6384
|
*/
|
|
6049
6385
|
'unicorn/prefer-url-can-parse'?: Linter.RuleEntry<[]>;
|
|
6050
6386
|
/**
|
|
6051
6387
|
* Prefer `URL#href` over stringifying a `URL`.
|
|
6052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6388
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-href.md
|
|
6053
6389
|
*/
|
|
6054
6390
|
'unicorn/prefer-url-href'?: Linter.RuleEntry<[]>;
|
|
6055
6391
|
/**
|
|
6056
6392
|
* Prefer `URLSearchParams` over manually splitting query strings.
|
|
6057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6393
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-url-search-parameters.md
|
|
6058
6394
|
*/
|
|
6059
6395
|
'unicorn/prefer-url-search-parameters'?: Linter.RuleEntry<[]>;
|
|
6060
6396
|
/**
|
|
6061
6397
|
* Prefer putting the condition in the while statement.
|
|
6062
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6398
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/prefer-while-loop-condition.md
|
|
6063
6399
|
*/
|
|
6064
6400
|
'unicorn/prefer-while-loop-condition'?: Linter.RuleEntry<[]>;
|
|
6065
6401
|
/**
|
|
6066
6402
|
* Renamed to `unicorn/name-replacements`.
|
|
6067
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6403
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/deleted-and-deprecated-rules.md#prevent-abbreviations
|
|
6068
6404
|
* @deprecated
|
|
6069
6405
|
*/
|
|
6070
6406
|
'unicorn/prevent-abbreviations'?: Linter.RuleEntry<[]>;
|
|
6071
6407
|
/**
|
|
6072
6408
|
* Enforce consistent relative URL style.
|
|
6073
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6409
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/relative-url-style.md
|
|
6074
6410
|
*/
|
|
6075
6411
|
'unicorn/relative-url-style'?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
6076
6412
|
/**
|
|
6077
6413
|
* Enforce using the separator argument with `Array#join()`.
|
|
6078
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6414
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-join-separator.md
|
|
6079
6415
|
*/
|
|
6080
6416
|
'unicorn/require-array-join-separator'?: Linter.RuleEntry<[]>;
|
|
6081
6417
|
/**
|
|
6082
6418
|
* Require a compare function when calling `Array#sort()` or `Array#toSorted()`.
|
|
6083
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6419
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-array-sort-compare.md
|
|
6084
6420
|
*/
|
|
6085
6421
|
'unicorn/require-array-sort-compare'?: Linter.RuleEntry<[]>;
|
|
6086
6422
|
/**
|
|
6087
6423
|
* Require `CSS.escape()` for interpolated values in CSS selectors.
|
|
6088
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6424
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-css-escape.md
|
|
6089
6425
|
*/
|
|
6090
6426
|
'unicorn/require-css-escape'?: Linter.RuleEntry<UnicornRequireCssEscape>;
|
|
6091
6427
|
/**
|
|
6092
6428
|
* Require configured YAML frontmatter fields.
|
|
6093
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6429
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-frontmatter-fields.md
|
|
6094
6430
|
*/
|
|
6095
6431
|
'unicorn/require-frontmatter-fields'?: Linter.RuleEntry<UnicornRequireFrontmatterFields>;
|
|
6096
6432
|
/**
|
|
6097
6433
|
* Require non-empty module attributes for imports and exports
|
|
6098
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6434
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-attributes.md
|
|
6099
6435
|
*/
|
|
6100
6436
|
'unicorn/require-module-attributes'?: Linter.RuleEntry<[]>;
|
|
6101
6437
|
/**
|
|
6102
6438
|
* Require non-empty specifier list in import and export statements.
|
|
6103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6439
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-module-specifiers.md
|
|
6104
6440
|
*/
|
|
6105
6441
|
'unicorn/require-module-specifiers'?: Linter.RuleEntry<[]>;
|
|
6106
6442
|
/**
|
|
6107
6443
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
6108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6444
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
6109
6445
|
*/
|
|
6110
6446
|
'unicorn/require-number-to-fixed-digits-argument'?: Linter.RuleEntry<[]>;
|
|
6111
6447
|
/**
|
|
6112
6448
|
* Require passive event listeners for high-frequency events.
|
|
6113
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6449
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-passive-events.md
|
|
6114
6450
|
*/
|
|
6115
6451
|
'unicorn/require-passive-events'?: Linter.RuleEntry<[]>;
|
|
6116
6452
|
/**
|
|
6117
6453
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
6118
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6454
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-post-message-target-origin.md
|
|
6119
6455
|
*/
|
|
6120
6456
|
'unicorn/require-post-message-target-origin'?: Linter.RuleEntry<[]>;
|
|
6121
6457
|
/**
|
|
6122
6458
|
* Require boolean-returning Proxy traps to return booleans.
|
|
6123
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6459
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-proxy-trap-boolean-return.md
|
|
6124
6460
|
*/
|
|
6125
6461
|
'unicorn/require-proxy-trap-boolean-return'?: Linter.RuleEntry<[]>;
|
|
6462
|
+
/**
|
|
6463
|
+
* Require streaming decoding of fetch-body chunks with `TextDecoder`.
|
|
6464
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/require-text-decoder-streaming.md
|
|
6465
|
+
*/
|
|
6466
|
+
'unicorn/require-text-decoder-streaming'?: Linter.RuleEntry<[]>;
|
|
6126
6467
|
/**
|
|
6127
6468
|
* Enforce a consistent style for single-line block comments.
|
|
6128
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6469
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/single-line-block-comment-style.md
|
|
6129
6470
|
*/
|
|
6130
6471
|
'unicorn/single-line-block-comment-style'?: Linter.RuleEntry<UnicornSingleLineBlockCommentStyle>;
|
|
6131
6472
|
/**
|
|
6132
6473
|
* Enforce better string content.
|
|
6133
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6474
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/string-content.md
|
|
6134
6475
|
*/
|
|
6135
6476
|
'unicorn/string-content'?: Linter.RuleEntry<UnicornStringContent>;
|
|
6136
6477
|
/**
|
|
6137
6478
|
* Enforce consistent brace style for `case` clauses.
|
|
6138
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6479
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-braces.md
|
|
6139
6480
|
*/
|
|
6140
6481
|
'unicorn/switch-case-braces'?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
6141
6482
|
/**
|
|
6142
6483
|
* Enforce consistent `break`/`return`/`continue`/`throw` position in `case` clauses.
|
|
6143
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6484
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/switch-case-break-position.md
|
|
6144
6485
|
*/
|
|
6145
6486
|
'unicorn/switch-case-break-position'?: Linter.RuleEntry<[]>;
|
|
6146
6487
|
/**
|
|
6147
6488
|
* Fix whitespace-insensitive template indentation.
|
|
6148
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6489
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/template-indent.md
|
|
6149
6490
|
*/
|
|
6150
6491
|
'unicorn/template-indent'?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
6151
6492
|
/**
|
|
6152
6493
|
* Enforce consistent case for text encoding identifiers.
|
|
6153
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6494
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/text-encoding-identifier-case.md
|
|
6154
6495
|
*/
|
|
6155
6496
|
'unicorn/text-encoding-identifier-case'?: Linter.RuleEntry<UnicornTextEncodingIdentifierCase>;
|
|
6156
6497
|
/**
|
|
6157
6498
|
* Require `new` when creating an error.
|
|
6158
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6499
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/throw-new-error.md
|
|
6159
6500
|
*/
|
|
6160
6501
|
'unicorn/throw-new-error'?: Linter.RuleEntry<[]>;
|
|
6161
6502
|
/**
|
|
6162
6503
|
* Limit the complexity of `try` blocks.
|
|
6163
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
6504
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v77.0.0/docs/rules/try-complexity.md
|
|
6164
6505
|
*/
|
|
6165
6506
|
'unicorn/try-complexity'?: Linter.RuleEntry<UnicornTryComplexity>;
|
|
6166
6507
|
/**
|
|
@@ -7848,6 +8189,626 @@ type ConsistentReturn = [] | [{
|
|
|
7848
8189
|
}];
|
|
7849
8190
|
// ----- consistent-this -----
|
|
7850
8191
|
type ConsistentThis = string[];
|
|
8192
|
+
// ----- css/no-invalid-properties -----
|
|
8193
|
+
type CssNoInvalidProperties = [] | [{
|
|
8194
|
+
allowUnknownVariables?: boolean;
|
|
8195
|
+
}];
|
|
8196
|
+
// ----- css/prefer-logical-properties -----
|
|
8197
|
+
type CssPreferLogicalProperties = [] | [{
|
|
8198
|
+
allowProperties?: ("bottom" | "border-bottom" | "border-bottom-color" | "border-bottom-left-radius" | "border-bottom-right-radius" | "border-bottom-style" | "border-bottom-width" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-top" | "border-top-color" | "border-top-left-radius" | "border-top-right-radius" | "border-top-style" | "border-top-width" | "contain-intrinsic-height" | "contain-intrinsic-width" | "height" | "left" | "margin-bottom" | "margin-left" | "margin-right" | "margin-top" | "max-height" | "max-width" | "min-height" | "min-width" | "overflow-x" | "overflow-y" | "overscroll-behavior-x" | "overscroll-behavior-y" | "padding-bottom" | "padding-left" | "padding-right" | "padding-top" | "right" | "scroll-margin-bottom" | "scroll-margin-left" | "scroll-margin-right" | "scroll-margin-top" | "scroll-padding-bottom" | "scroll-padding-left" | "scroll-padding-right" | "scroll-padding-top" | "top" | "width")[];
|
|
8199
|
+
allowUnits?: ("cqh" | "cqw" | "dvh" | "dvw" | "lvh" | "lvw" | "svh" | "svw" | "vh" | "vw")[];
|
|
8200
|
+
}];
|
|
8201
|
+
// ----- css/relative-font-units -----
|
|
8202
|
+
type CssRelativeFontUnits = [] | [{
|
|
8203
|
+
allowUnits?: ("%" | "cap" | "ch" | "em" | "ex" | "ic" | "lh" | "rcap" | "rch" | "rem" | "rex" | "ric" | "rlh")[];
|
|
8204
|
+
}];
|
|
8205
|
+
// ----- css/selector-complexity -----
|
|
8206
|
+
type CssSelectorComplexity = [] | [{
|
|
8207
|
+
maxIds?: number;
|
|
8208
|
+
maxClasses?: number;
|
|
8209
|
+
maxTypes?: number;
|
|
8210
|
+
maxAttributes?: number;
|
|
8211
|
+
maxPseudoClasses?: number;
|
|
8212
|
+
maxUniversals?: number;
|
|
8213
|
+
maxCompounds?: number;
|
|
8214
|
+
maxCombinators?: number;
|
|
8215
|
+
disallowCombinators?: string[];
|
|
8216
|
+
disallowPseudoClasses?: string[];
|
|
8217
|
+
disallowPseudoElements?: string[];
|
|
8218
|
+
disallowAttributes?: string[];
|
|
8219
|
+
disallowAttributeMatchers?: string[];
|
|
8220
|
+
}];
|
|
8221
|
+
// ----- css/use-baseline -----
|
|
8222
|
+
type CssUseBaseline = [] | [{
|
|
8223
|
+
available?: (("widely" | "newly") | number);
|
|
8224
|
+
allowAtRules?: ("position-try" | "keyframes" | "layer" | "charset" | "container" | "counter-style" | "view-transition" | "custom-media" | "font-face" | "font-palette-values" | "font-feature-values" | "function" | "import" | "media" | "namespace" | "page" | "property" | "scope" | "starting-style" | "supports")[];
|
|
8225
|
+
allowFunctions?: ("abs" | "sign" | "alpha" | "anchor" | "anchor-size" | "attr" | "calc" | "calc-size" | "shape" | "rect" | "color" | "color-mix" | "conic-gradient" | "repeating-conic-gradient" | "contrast-color" | "round" | "superellipse" | "counter" | "counters" | "cross-fade" | "cubic-bezier" | "var" | "dynamic-range-limit-mix" | "element" | "exp" | "hypot" | "log" | "pow" | "sqrt" | "blur" | "brightness" | "contrast" | "drop-shadow" | "grayscale" | "hue-rotate" | "invert" | "opacity" | "saturate" | "sepia" | "filter" | "fit-content" | "url" | "type" | "linear-gradient" | "radial-gradient" | "repeating-linear-gradient" | "repeating-radial-gradient" | "hsl" | "hwb" | "if" | "image" | "image-set" | "lab" | "lch" | "light-dark" | "clamp" | "max" | "min" | "ray" | "oklab" | "oklch" | "paint" | "path" | "progress" | "random" | "xywh" | "rgb" | "mod" | "rem" | "env" | "circle" | "ellipse" | "inset" | "polygon" | "sibling-count" | "sibling-index" | "steps" | "matrix" | "rotate" | "scale" | "scaleX" | "scaleY" | "skew" | "skewX" | "skewY" | "translate" | "translateX" | "translateY" | "matrix3d" | "perspective" | "rotate3d" | "rotateX" | "rotateY" | "rotateZ" | "scale3d" | "scaleZ" | "translate3d" | "translateZ" | "acos" | "asin" | "atan" | "atan2" | "cos" | "sin" | "tan" | "cross-origin" | "integrity" | "referrer-policy")[];
|
|
8226
|
+
allowMediaConditions?: ("color-gamut" | "device-posture" | "device-aspect-ratio" | "device-height" | "device-width" | "display-mode" | "dynamic-range" | "forced-colors" | "any-hover" | "any-pointer" | "hover" | "pointer" | "inverted-colors" | "aspect-ratio" | "calc" | "color" | "color-index" | "grid" | "height" | "monochrome" | "nested-queries" | "orientation" | "width" | "overflow-block" | "overflow-inline" | "prefers-color-scheme" | "prefers-contrast" | "prefers-reduced-data" | "prefers-reduced-motion" | "prefers-reduced-transparency" | "resolution" | "-webkit-device-pixel-ratio" | "-webkit-max-device-pixel-ratio" | "-webkit-min-device-pixel-ratio" | "scripting" | "-webkit-transform-3d" | "update" | "video-dynamic-range" | "horizontal-viewport-segments" | "vertical-viewport-segments")[];
|
|
8227
|
+
allowProperties?: ("accent-color" | "alignment-baseline" | "all" | "anchor-name" | "anchor-scope" | "position-anchor" | "position-area" | "position-try" | "position-try-fallbacks" | "position-try-order" | "position-visibility" | "animation-composition" | "animation" | "animation-delay" | "animation-direction" | "animation-duration" | "animation-fill-mode" | "animation-iteration-count" | "animation-name" | "animation-play-state" | "animation-timing-function" | "appearance" | "aspect-ratio" | "backdrop-filter" | "background" | "background-attachment" | "background-blend-mode" | "background-clip" | "background-color" | "background-image" | "background-origin" | "background-position" | "background-position-x" | "background-position-y" | "background-repeat" | "background-size" | "baseline-shift" | "baseline-source" | "border-image" | "border-image-outset" | "border-image-repeat" | "border-image-slice" | "border-image-source" | "border-image-width" | "border-bottom-left-radius" | "border-bottom-right-radius" | "border-radius" | "border-top-left-radius" | "border-top-right-radius" | "border-shape" | "border" | "border-bottom" | "border-bottom-color" | "border-bottom-style" | "border-bottom-width" | "border-color" | "border-left" | "border-left-color" | "border-left-style" | "border-left-width" | "border-right" | "border-right-color" | "border-right-style" | "border-right-width" | "border-style" | "border-top" | "border-top-color" | "border-top-style" | "border-top-width" | "border-width" | "box-decoration-break" | "box-shadow" | "box-sizing" | "caret-color" | "caret-shape" | "clip" | "clip-path" | "color" | "color-adjust" | "color-scheme" | "column-fill" | "column-span" | "contain" | "contain-intrinsic-block-size" | "contain-intrinsic-height" | "contain-intrinsic-inline-size" | "contain-intrinsic-size" | "contain-intrinsic-width" | "container" | "container-name" | "container-type" | "content" | "content-visibility" | "corner-block-end-shape" | "corner-block-start-shape" | "corner-bottom-left-shape" | "corner-bottom-right-shape" | "corner-bottom-shape" | "corner-end-end-shape" | "corner-end-start-shape" | "corner-inline-end-shape" | "corner-inline-start-shape" | "corner-left-shape" | "corner-right-shape" | "corner-shape" | "corner-start-end-shape" | "corner-start-start-shape" | "corner-top-left-shape" | "corner-top-right-shape" | "corner-top-shape" | "counter-set" | "counter-increment" | "counter-reset" | "custom-property" | "display" | "dominant-baseline" | "dynamic-range-limit" | "field-sizing" | "filter" | "align-content" | "align-items" | "align-self" | "flex" | "flex-basis" | "flex-direction" | "flex-flow" | "flex-grow" | "flex-shrink" | "flex-wrap" | "justify-content" | "justify-items" | "order" | "place-content" | "place-items" | "place-self" | "clear" | "float" | "font-family" | "font-feature-settings" | "font-kerning" | "font-language-override" | "font-optical-sizing" | "font-palette" | "font" | "font-size" | "font-size-adjust" | "font-stretch" | "font-style" | "font-synthesis" | "font-synthesis-position" | "font-synthesis-small-caps" | "font-synthesis-style" | "font-synthesis-weight" | "font-variant" | "font-variant-alternates" | "font-variant-caps" | "font-variant-east-asian" | "font-variant-emoji" | "font-variant-ligatures" | "font-variant-numeric" | "font-variant-position" | "font-variation-settings" | "font-weight" | "font-width" | "forced-color-adjust" | "frame-sizing" | "column-rule-break" | "column-rule-inset" | "column-rule-inset-cap" | "column-rule-inset-cap-end" | "column-rule-inset-cap-start" | "column-rule-inset-end" | "column-rule-inset-junction" | "column-rule-inset-junction-end" | "column-rule-inset-junction-start" | "column-rule-inset-start" | "column-rule-visibility-items" | "row-rule" | "row-rule-break" | "row-rule-color" | "row-rule-inset" | "row-rule-inset-cap" | "row-rule-inset-cap-end" | "row-rule-inset-cap-start" | "row-rule-inset-end" | "row-rule-inset-junction" | "row-rule-inset-junction-end" | "row-rule-inset-junction-start" | "row-rule-inset-start" | "row-rule-style" | "row-rule-visibility-items" | "row-rule-width" | "rule" | "rule-break" | "rule-color" | "rule-inset" | "rule-inset-cap" | "rule-inset-end" | "rule-inset-junction" | "rule-inset-start" | "rule-overlap" | "rule-style" | "rule-visibility-items" | "rule-width" | "glyph-orientation-vertical" | "gap" | "grid" | "grid-area" | "grid-auto-columns" | "grid-auto-flow" | "grid-auto-rows" | "grid-column" | "grid-column-end" | "grid-column-start" | "grid-row" | "grid-row-end" | "grid-row-start" | "grid-template" | "grid-template-areas" | "grid-template-columns" | "grid-template-rows" | "justify-self" | "row-gap" | "hanging-punctuation" | "hyphenate-character" | "hyphenate-limit-chars" | "hyphens" | "image-orientation" | "image-rendering" | "ime-mode" | "rotate" | "scale" | "translate" | "initial-letter" | "interactivity" | "interpolate-size" | "isolation" | "direction" | "unicode-bidi" | "letter-spacing" | "line-break" | "line-clamp" | "line-height" | "list-style" | "list-style-image" | "list-style-position" | "list-style-type" | "block-size" | "border-block" | "border-block-color" | "border-block-end" | "border-block-end-color" | "border-block-end-style" | "border-block-end-width" | "border-block-start" | "border-block-start-color" | "border-block-start-style" | "border-block-start-width" | "border-block-style" | "border-block-width" | "border-end-end-radius" | "border-end-start-radius" | "border-inline" | "border-inline-color" | "border-inline-end" | "border-inline-end-color" | "border-inline-end-style" | "border-inline-end-width" | "border-inline-start" | "border-inline-start-color" | "border-inline-start-style" | "border-inline-start-width" | "border-inline-style" | "border-inline-width" | "border-start-end-radius" | "border-start-start-radius" | "inline-size" | "inset" | "inset-block" | "inset-block-end" | "inset-block-start" | "inset-inline" | "inset-inline-end" | "inset-inline-start" | "margin-block" | "margin-block-end" | "margin-block-start" | "margin-inline" | "margin-inline-end" | "margin-inline-start" | "max-block-size" | "max-inline-size" | "min-block-size" | "min-inline-size" | "overflow-block" | "overflow-inline" | "padding-block" | "padding-block-end" | "padding-block-start" | "padding-inline" | "padding-inline-end" | "padding-inline-start" | "margin" | "margin-bottom" | "margin-left" | "margin-right" | "margin-top" | "margin-trim" | "mask-border" | "mask-border-outset" | "mask-border-repeat" | "mask-border-slice" | "mask-border-source" | "mask-border-width" | "mask-type" | "mask" | "mask-clip" | "mask-composite" | "mask-image" | "mask-mode" | "mask-origin" | "mask-position" | "mask-repeat" | "mask-size" | "math-depth" | "math-shift" | "math-style" | "max-height" | "max-width" | "min-height" | "min-width" | "mix-blend-mode" | "offset" | "offset-anchor" | "offset-distance" | "offset-path" | "offset-position" | "offset-rotate" | "column-count" | "column-gap" | "column-rule" | "column-rule-color" | "column-rule-style" | "column-rule-width" | "column-width" | "columns" | "object-fit" | "object-position" | "object-view-box" | "opacity" | "fill-opacity" | "stroke-opacity" | "outline" | "outline-color" | "outline-offset" | "outline-style" | "outline-width" | "overflow-anchor" | "overflow-clip-margin" | "overflow" | "overflow-x" | "overflow-y" | "overflow-wrap" | "overlay" | "overscroll-behavior" | "overscroll-behavior-block" | "overscroll-behavior-inline" | "overscroll-behavior-x" | "overscroll-behavior-y" | "padding" | "padding-bottom" | "padding-left" | "padding-right" | "padding-top" | "page-break-after" | "page-break-before" | "page-break-inside" | "break-after" | "break-before" | "break-inside" | "page" | "paint-order" | "bottom" | "left" | "right" | "top" | "pointer-events" | "position" | "print-color-adjust" | "quotes" | "reading-flow" | "reading-order" | "resize" | "ruby-align" | "ruby-overhang" | "ruby-position" | "scroll-behavior" | "animation-range" | "animation-range-end" | "animation-range-start" | "animation-timeline" | "scroll-timeline" | "scroll-timeline-axis" | "scroll-timeline-name" | "timeline-scope" | "view-timeline" | "view-timeline-axis" | "view-timeline-inset" | "view-timeline-name" | "scroll-initial-target" | "scroll-marker-group" | "scroll-margin" | "scroll-margin-block" | "scroll-margin-block-end" | "scroll-margin-block-start" | "scroll-margin-bottom" | "scroll-margin-inline" | "scroll-margin-inline-end" | "scroll-margin-inline-start" | "scroll-margin-left" | "scroll-margin-right" | "scroll-margin-top" | "scroll-padding" | "scroll-padding-block" | "scroll-padding-block-end" | "scroll-padding-block-start" | "scroll-padding-bottom" | "scroll-padding-inline" | "scroll-padding-inline-end" | "scroll-padding-inline-start" | "scroll-padding-left" | "scroll-padding-right" | "scroll-padding-top" | "scroll-snap-align" | "scroll-snap-stop" | "scroll-snap-type" | "scroll-target-group" | "scrollbar-color" | "scrollbar-gutter" | "scrollbar-width" | "shape-image-threshold" | "shape-margin" | "shape-outside" | "speak" | "speak-as" | "clip-rule" | "color-interpolation" | "cx" | "cy" | "d" | "fill" | "fill-rule" | "marker" | "marker-end" | "marker-mid" | "marker-start" | "r" | "rx" | "ry" | "shape-rendering" | "stop-color" | "stop-opacity" | "stroke" | "stroke-color" | "stroke-dasharray" | "stroke-dashoffset" | "stroke-linecap" | "stroke-linejoin" | "stroke-miterlimit" | "stroke-width" | "text-anchor" | "text-rendering" | "vector-effect" | "x" | "y" | "color-interpolation-filters" | "flood-color" | "flood-opacity" | "lighting-color" | "tab-size" | "border-collapse" | "border-spacing" | "caption-side" | "empty-cells" | "table-layout" | "text-align" | "text-align-last" | "text-autospace" | "text-box" | "text-box-edge" | "text-box-trim" | "text-combine-upright" | "text-decoration" | "text-decoration-color" | "text-decoration-line" | "text-decoration-style" | "text-decoration-thickness" | "text-decoration-skip-ink" | "text-emphasis" | "text-emphasis-color" | "text-emphasis-position" | "text-emphasis-style" | "text-fit" | "text-indent" | "text-justify" | "text-orientation" | "text-overflow" | "text-shadow" | "text-size-adjust" | "text-spacing-trim" | "-webkit-text-fill-color" | "-webkit-text-stroke" | "-webkit-text-stroke-color" | "-webkit-text-stroke-width" | "text-transform" | "text-underline-offset" | "text-underline-position" | "text-wrap" | "text-wrap-mode" | "text-wrap-style" | "touch-action" | "transform-box" | "transform" | "transform-origin" | "backface-visibility" | "perspective" | "perspective-origin" | "transform-style" | "transition-behavior" | "transition" | "transition-delay" | "transition-duration" | "transition-property" | "transition-timing-function" | "user-select" | "vertical-align" | "view-transition-class" | "view-transition-name" | "view-transition-scope" | "visibility" | "white-space" | "white-space-collapse" | "orphans" | "widows" | "height" | "width" | "will-change" | "window-drag" | "word-break" | "word-spacing" | "writing-mode" | "z-index" | "zoom")[];
|
|
8228
|
+
allowPropertyValues?: {
|
|
8229
|
+
"accent-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "currentColor" | "transparent")[];
|
|
8230
|
+
"alignment-baseline"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "alphabetic" | "baseline" | "central" | "ideographic" | "mathematical" | "middle" | "text-after-edge" | "text-before-edge")[];
|
|
8231
|
+
all?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8232
|
+
"anchor-name"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8233
|
+
"anchor-scope"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "all" | "none")[];
|
|
8234
|
+
"position-anchor"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none" | "normal")[];
|
|
8235
|
+
"position-area"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "block-end" | "block-start" | "bottom" | "center" | "end" | "inline-end" | "inline-start" | "left" | "none" | "right" | "self-block-end" | "self-block-start" | "self-end" | "self-inline-end" | "self-inline-start" | "self-start" | "self-x-end" | "self-x-start" | "self-y-end" | "self-y-start" | "span-all" | "span-block-end" | "span-block-start" | "span-bottom" | "span-end" | "span-inline-end" | "span-inline-start" | "span-left" | "span-right" | "span-self-block-end" | "span-self-block-start" | "span-self-end" | "span-self-inline-end" | "span-self-inline-start" | "span-self-start" | "span-self-x-end" | "span-self-x-start" | "span-self-y-end" | "span-self-y-start" | "span-start" | "span-top" | "span-x-end" | "span-x-start" | "span-y-end" | "span-y-start" | "start" | "top" | "x-end" | "x-start" | "y-end" | "y-start")[];
|
|
8236
|
+
"position-try"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "block-end" | "block-start" | "bottom" | "center" | "end" | "flip-block" | "flip-inline" | "flip-start" | "flip-x" | "flip-y" | "inline-end" | "inline-start" | "left" | "none" | "right" | "self-block-end" | "self-block-start" | "self-end" | "self-inline-end" | "self-inline-start" | "self-start" | "self-x-end" | "self-x-start" | "self-y-end" | "self-y-start" | "span-all" | "span-block-end" | "span-block-start" | "span-bottom" | "span-end" | "span-inline-end" | "span-inline-start" | "span-left" | "span-right" | "span-self-block-end" | "span-self-block-start" | "span-self-end" | "span-self-inline-end" | "span-self-inline-start" | "span-self-start" | "span-self-x-end" | "span-self-x-start" | "span-self-y-end" | "span-self-y-start" | "span-start" | "span-top" | "span-x-end" | "span-x-start" | "span-y-end" | "span-y-start" | "start" | "top" | "x-end" | "x-start" | "y-end" | "y-start")[];
|
|
8237
|
+
"position-try-fallbacks"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "block-end" | "block-start" | "bottom" | "center" | "end" | "flip-block" | "flip-inline" | "flip-start" | "flip-x" | "flip-y" | "inline-end" | "inline-start" | "left" | "none" | "position-area" | "right" | "self-block-end" | "self-block-start" | "self-end" | "self-inline-end" | "self-inline-start" | "self-start" | "self-x-end" | "self-x-start" | "self-y-end" | "self-y-start" | "span-all" | "span-block-end" | "span-block-start" | "span-bottom" | "span-end" | "span-inline-end" | "span-inline-start" | "span-left" | "span-right" | "span-self-block-end" | "span-self-block-start" | "span-self-end" | "span-self-inline-end" | "span-self-inline-start" | "span-self-start" | "span-self-x-end" | "span-self-x-start" | "span-self-y-end" | "span-self-y-start" | "span-start" | "span-top" | "span-x-end" | "span-x-start" | "span-y-end" | "span-y-start" | "start" | "top" | "x-end" | "x-start" | "y-end" | "y-start")[];
|
|
8238
|
+
"position-try-order"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "most-block-size" | "most-height" | "most-inline-size" | "most-width" | "normal")[];
|
|
8239
|
+
"position-visibility"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "always" | "anchor-valid" | "anchor-visible" | "no-overflow" | "anchors-valid" | "anchors-visible")[];
|
|
8240
|
+
"animation-composition"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8241
|
+
animation?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "alternate" | "alternate-reverse" | "auto" | "backwards" | "both" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "forwards" | "infinite" | "linear" | "none" | "normal" | "reverse" | "step-end" | "step-start")[];
|
|
8242
|
+
"animation-delay"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8243
|
+
"animation-direction"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "alternate" | "alternate-reverse" | "normal" | "reverse")[];
|
|
8244
|
+
"animation-duration"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8245
|
+
"animation-fill-mode"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "backwards" | "both" | "forwards" | "none")[];
|
|
8246
|
+
"animation-iteration-count"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "infinite")[];
|
|
8247
|
+
"animation-name"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8248
|
+
"animation-play-state"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "paused" | "running")[];
|
|
8249
|
+
"animation-timing-function"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "jump" | "linear" | "step-end" | "step-start")[];
|
|
8250
|
+
appearance?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "button" | "checkbox" | "listbox" | "menulist" | "menulist-button" | "meter" | "none" | "progress-bar" | "radio" | "searchfield" | "textarea" | "textfield" | "base-select")[];
|
|
8251
|
+
"aspect-ratio"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8252
|
+
"backdrop-filter"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8253
|
+
background?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "local" | "no-repeat" | "none" | "repeat" | "repeat-x" | "repeat-y" | "round" | "scroll" | "space" | "transparent" | "background-clip" | "background-origin" | "background-size" | "currentColor")[];
|
|
8254
|
+
"background-attachment"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "fixed" | "local" | "scroll")[];
|
|
8255
|
+
"background-blend-mode"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8256
|
+
"background-clip"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "border-box" | "content-box" | "padding-box" | "border-area" | "text")[];
|
|
8257
|
+
"background-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "transparent" | "currentColor")[];
|
|
8258
|
+
"background-image"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none" | "element" | "gradients" | "image-set")[];
|
|
8259
|
+
"background-origin"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "border-box" | "content-box" | "padding-box")[];
|
|
8260
|
+
"background-position"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "bottom" | "center" | "left" | "right" | "top")[];
|
|
8261
|
+
"background-position-x"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8262
|
+
"background-position-y"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8263
|
+
"background-repeat"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "2-value" | "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "round" | "space")[];
|
|
8264
|
+
"background-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "contain" | "cover")[];
|
|
8265
|
+
"baseline-shift"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "sub" | "super")[];
|
|
8266
|
+
"baseline-source"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "first" | "last")[];
|
|
8267
|
+
"border-image"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "fill" | "gradient" | "none" | "repeat" | "round" | "space" | "stretch")[];
|
|
8268
|
+
"border-image-outset"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8269
|
+
"border-image-repeat"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "repeat" | "round" | "space" | "stretch")[];
|
|
8270
|
+
"border-image-slice"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8271
|
+
"border-image-source"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8272
|
+
"border-image-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8273
|
+
"border-bottom-left-radius"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "percentages")[];
|
|
8274
|
+
"border-bottom-right-radius"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "percentages")[];
|
|
8275
|
+
"border-radius"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "percentages")[];
|
|
8276
|
+
"border-top-left-radius"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "percentages")[];
|
|
8277
|
+
"border-top-right-radius"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "percentages")[];
|
|
8278
|
+
"border-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8279
|
+
border?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent" | "currentColor")[];
|
|
8280
|
+
"border-bottom"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent" | "currentColor")[];
|
|
8281
|
+
"border-bottom-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "transparent" | "currentColor")[];
|
|
8282
|
+
"border-bottom-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8283
|
+
"border-bottom-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8284
|
+
"border-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "transparent" | "currentColor")[];
|
|
8285
|
+
"border-left"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent" | "currentColor")[];
|
|
8286
|
+
"border-left-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "transparent" | "currentColor")[];
|
|
8287
|
+
"border-left-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8288
|
+
"border-left-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8289
|
+
"border-right"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent" | "currentColor")[];
|
|
8290
|
+
"border-right-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "transparent" | "currentColor")[];
|
|
8291
|
+
"border-right-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8292
|
+
"border-right-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8293
|
+
"border-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8294
|
+
"border-top"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent" | "currentColor")[];
|
|
8295
|
+
"border-top-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "transparent" | "currentColor")[];
|
|
8296
|
+
"border-top-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8297
|
+
"border-top-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8298
|
+
"border-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8299
|
+
"box-decoration-break"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "clone" | "slice")[];
|
|
8300
|
+
"box-shadow"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "inset" | "none")[];
|
|
8301
|
+
"box-sizing"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "border-box" | "content-box")[];
|
|
8302
|
+
"caret-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8303
|
+
"caret-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "bar" | "block" | "underscore")[];
|
|
8304
|
+
clip?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8305
|
+
"clip-path"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "path" | "fill-box" | "stroke-box" | "view-box")[];
|
|
8306
|
+
color?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "transparent" | "currentColor")[];
|
|
8307
|
+
"color-adjust"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8308
|
+
"color-scheme"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dark" | "light" | "normal" | "only")[];
|
|
8309
|
+
"column-fill"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "balance")[];
|
|
8310
|
+
"column-span"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "all" | "none")[];
|
|
8311
|
+
contain?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "content" | "none" | "strict" | "inline-size" | "layout" | "paint" | "size" | "style")[];
|
|
8312
|
+
"contain-intrinsic-block-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8313
|
+
"contain-intrinsic-height"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8314
|
+
"contain-intrinsic-inline-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8315
|
+
"contain-intrinsic-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8316
|
+
"contain-intrinsic-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8317
|
+
container?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8318
|
+
"container-name"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8319
|
+
"container-type"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchored" | "inline-size" | "normal" | "size" | "scroll-state")[];
|
|
8320
|
+
content?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "close-quote" | "gradient" | "no-close-quote" | "no-open-quote" | "none" | "normal" | "open-quote" | "url" | "image-set")[];
|
|
8321
|
+
"content-visibility"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "hidden" | "visible")[];
|
|
8322
|
+
"corner-block-end-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8323
|
+
"corner-block-start-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8324
|
+
"corner-bottom-left-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8325
|
+
"corner-bottom-right-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8326
|
+
"corner-bottom-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8327
|
+
"corner-end-end-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8328
|
+
"corner-end-start-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8329
|
+
"corner-inline-end-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8330
|
+
"corner-inline-start-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8331
|
+
"corner-left-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8332
|
+
"corner-right-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8333
|
+
"corner-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8334
|
+
"corner-start-end-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8335
|
+
"corner-start-start-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8336
|
+
"corner-top-left-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8337
|
+
"corner-top-right-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8338
|
+
"corner-top-shape"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8339
|
+
"counter-set"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "list-item" | "none")[];
|
|
8340
|
+
"counter-increment"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "list-item" | "none")[];
|
|
8341
|
+
"counter-reset"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "reversed" | "list-item" | "none")[];
|
|
8342
|
+
"custom-property"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8343
|
+
display?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "block" | "inline" | "inline-block" | "none" | "contents" | "flow-root" | "list-item" | "ruby" | "ruby-base" | "ruby-base-container" | "ruby-text" | "ruby-text-container" | "inline-table" | "table" | "table-caption" | "table-cell" | "table-column" | "table-column-group" | "table-footer-group" | "table-header-group" | "table-row" | "table-row-group" | "flex" | "inline-flex" | "grid" | "inline-grid" | "math")[];
|
|
8344
|
+
"dominant-baseline"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "alphabetic" | "auto" | "central" | "hanging" | "ideographic" | "mathematical" | "middle")[];
|
|
8345
|
+
"dynamic-range-limit"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "constrained" | "no-limit" | "standard")[];
|
|
8346
|
+
"field-sizing"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "content" | "fixed")[];
|
|
8347
|
+
filter?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "blur" | "brightness" | "contrast" | "drop-shadow" | "grayscale" | "hue-rotate" | "invert" | "opacity" | "saturate" | "sepia")[];
|
|
8348
|
+
"align-content"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal")[];
|
|
8349
|
+
"align-items"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-center")[];
|
|
8350
|
+
"align-self"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-center" | "auto" | "normal" | "stretch")[];
|
|
8351
|
+
flex?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8352
|
+
"flex-basis"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "content" | "fit-content" | "max-content" | "min-content")[];
|
|
8353
|
+
"flex-direction"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "column" | "column-reverse" | "row" | "row-reverse")[];
|
|
8354
|
+
"flex-flow"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8355
|
+
"flex-grow"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8356
|
+
"flex-shrink"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8357
|
+
"flex-wrap"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "nowrap" | "wrap" | "wrap-reverse" | "balance")[];
|
|
8358
|
+
"justify-content"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "left" | "normal" | "right")[];
|
|
8359
|
+
"justify-items"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-center" | "center" | "left" | "legacy" | "right")[];
|
|
8360
|
+
order?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8361
|
+
"place-content"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8362
|
+
"place-items"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-center")[];
|
|
8363
|
+
"place-self"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-center")[];
|
|
8364
|
+
clear?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "both" | "left" | "none" | "right" | "inline-end" | "inline-start")[];
|
|
8365
|
+
float?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "left" | "none" | "right" | "inline-end" | "inline-start")[];
|
|
8366
|
+
"font-family"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "cursive" | "fantasy" | "monospace" | "sans-serif" | "serif" | "math" | "system-ui" | "ui-monospace" | "ui-rounded" | "ui-sans-serif" | "ui-serif")[];
|
|
8367
|
+
"font-feature-settings"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal")[];
|
|
8368
|
+
"font-kerning"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none" | "normal")[];
|
|
8369
|
+
"font-language-override"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8370
|
+
"font-optical-sizing"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none")[];
|
|
8371
|
+
"font-palette"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dark" | "light" | "normal")[];
|
|
8372
|
+
font?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "caption" | "icon" | "menu" | "message-box" | "small-caption" | "status-bar")[];
|
|
8373
|
+
"font-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "xxx-large" | "math")[];
|
|
8374
|
+
"font-size-adjust"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "from-font" | "none" | "two-values")[];
|
|
8375
|
+
"font-stretch"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "percentage" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded")[];
|
|
8376
|
+
"font-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "italic" | "normal" | "oblique" | "oblique-angle")[];
|
|
8377
|
+
"font-synthesis"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "position" | "small-caps" | "style" | "weight")[];
|
|
8378
|
+
"font-synthesis-position"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none")[];
|
|
8379
|
+
"font-synthesis-small-caps"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none")[];
|
|
8380
|
+
"font-synthesis-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none")[];
|
|
8381
|
+
"font-synthesis-weight"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none")[];
|
|
8382
|
+
"font-variant"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "historical-forms" | "none" | "normal" | "sub" | "super")[];
|
|
8383
|
+
"font-variant-alternates"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "annotation" | "historical-forms" | "normal" | "ornaments" | "styleset" | "stylistic" | "swash")[];
|
|
8384
|
+
"font-variant-caps"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "all-petite-caps" | "all-small-caps" | "normal" | "petite-caps" | "small-caps" | "titling-caps" | "unicase")[];
|
|
8385
|
+
"font-variant-east-asian"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "full-width" | "jis04" | "jis78" | "jis83" | "jis90" | "normal" | "proportional-width" | "ruby" | "simplified" | "traditional")[];
|
|
8386
|
+
"font-variant-emoji"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "emoji" | "normal" | "text" | "unicode")[];
|
|
8387
|
+
"font-variant-ligatures"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "common-ligatures" | "contextual" | "discretionary-ligatures" | "historical-ligatures" | "no-common-ligatures" | "no-contextual" | "no-discretionary-ligatures" | "no-historical-ligatures" | "none" | "normal")[];
|
|
8388
|
+
"font-variant-numeric"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "diagonal-fractions" | "lining-nums" | "normal" | "oldstyle-nums" | "ordinal" | "proportional-nums" | "slashed-zero" | "stacked-fractions" | "tabular-nums")[];
|
|
8389
|
+
"font-variant-position"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal" | "sub" | "super")[];
|
|
8390
|
+
"font-variation-settings"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8391
|
+
"font-weight"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "bold" | "bolder" | "lighter" | "normal" | "number")[];
|
|
8392
|
+
"font-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "condensed" | "expanded" | "extra-condensed" | "extra-expanded" | "normal" | "semi-condensed" | "semi-expanded" | "ultra-condensed" | "ultra-expanded")[];
|
|
8393
|
+
"forced-color-adjust"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none" | "preserve-parent-color")[];
|
|
8394
|
+
"frame-sizing"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "content-block-size" | "content-height" | "content-inline-size" | "content-width")[];
|
|
8395
|
+
"column-rule-break"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "intersection" | "none" | "normal")[];
|
|
8396
|
+
"column-rule-inset"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8397
|
+
"column-rule-inset-cap"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8398
|
+
"column-rule-inset-cap-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8399
|
+
"column-rule-inset-cap-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8400
|
+
"column-rule-inset-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8401
|
+
"column-rule-inset-junction"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8402
|
+
"column-rule-inset-junction-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8403
|
+
"column-rule-inset-junction-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8404
|
+
"column-rule-inset-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8405
|
+
"column-rule-visibility-items"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "all" | "around" | "between" | "normal")[];
|
|
8406
|
+
"row-rule"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent")[];
|
|
8407
|
+
"row-rule-break"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "intersection" | "none" | "normal")[];
|
|
8408
|
+
"row-rule-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8409
|
+
"row-rule-inset"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8410
|
+
"row-rule-inset-cap"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8411
|
+
"row-rule-inset-cap-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8412
|
+
"row-rule-inset-cap-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8413
|
+
"row-rule-inset-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8414
|
+
"row-rule-inset-junction"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8415
|
+
"row-rule-inset-junction-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8416
|
+
"row-rule-inset-junction-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8417
|
+
"row-rule-inset-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8418
|
+
"row-rule-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8419
|
+
"row-rule-visibility-items"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "all" | "around" | "between" | "normal")[];
|
|
8420
|
+
"row-rule-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8421
|
+
rule?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent")[];
|
|
8422
|
+
"rule-break"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "intersection" | "none" | "normal")[];
|
|
8423
|
+
"rule-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8424
|
+
"rule-inset"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8425
|
+
"rule-inset-cap"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8426
|
+
"rule-inset-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8427
|
+
"rule-inset-junction"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8428
|
+
"rule-inset-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlap-join")[];
|
|
8429
|
+
"rule-overlap"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "column-over-row" | "row-over-column")[];
|
|
8430
|
+
"rule-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8431
|
+
"rule-visibility-items"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "all" | "around" | "between" | "normal")[];
|
|
8432
|
+
"rule-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8433
|
+
"glyph-orientation-vertical"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8434
|
+
gap?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal")[];
|
|
8435
|
+
grid?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8436
|
+
"grid-area"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8437
|
+
"grid-auto-columns"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8438
|
+
"grid-auto-flow"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "column" | "dense" | "row")[];
|
|
8439
|
+
"grid-auto-rows"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8440
|
+
"grid-column"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8441
|
+
"grid-column-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8442
|
+
"grid-column-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8443
|
+
"grid-row"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8444
|
+
"grid-row-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8445
|
+
"grid-row-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8446
|
+
"grid-template"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8447
|
+
"grid-template-areas"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8448
|
+
"grid-template-columns"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "fit-content" | "max-content" | "min-content" | "minmax" | "none" | "repeat" | "animation" | "subgrid")[];
|
|
8449
|
+
"grid-template-rows"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "fit-content" | "max-content" | "min-content" | "minmax" | "none" | "repeat" | "animation" | "subgrid")[];
|
|
8450
|
+
"justify-self"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-center" | "auto" | "left" | "normal" | "right" | "stretch")[];
|
|
8451
|
+
"row-gap"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal")[];
|
|
8452
|
+
"hanging-punctuation"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "allow-end" | "first" | "force-end" | "last" | "none")[];
|
|
8453
|
+
"hyphenate-character"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8454
|
+
"hyphenate-limit-chars"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8455
|
+
hyphens?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8456
|
+
"image-orientation"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "from-image" | "none")[];
|
|
8457
|
+
"image-rendering"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "crisp-edges" | "auto" | "pixelated" | "smooth")[];
|
|
8458
|
+
"ime-mode"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8459
|
+
rotate?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8460
|
+
scale?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8461
|
+
translate?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8462
|
+
"initial-letter"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal")[];
|
|
8463
|
+
interactivity?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "inert")[];
|
|
8464
|
+
"interpolate-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "allow-keywords" | "numeric-only")[];
|
|
8465
|
+
isolation?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8466
|
+
direction?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "ltr" | "rtl")[];
|
|
8467
|
+
"unicode-bidi"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "bidi-override" | "embed" | "isolate" | "isolate-override" | "normal" | "plaintext")[];
|
|
8468
|
+
"letter-spacing"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal")[];
|
|
8469
|
+
"line-break"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anywhere" | "auto" | "loose" | "normal" | "strict")[];
|
|
8470
|
+
"line-clamp"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8471
|
+
"line-height"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal")[];
|
|
8472
|
+
"list-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "inside" | "none" | "outside" | "symbols")[];
|
|
8473
|
+
"list-style-image"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8474
|
+
"list-style-position"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "inside" | "outside")[];
|
|
8475
|
+
"list-style-type"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "arabic-indic" | "armenian" | "bengali" | "cambodian" | "circle" | "cjk-decimal" | "cjk-earthly-branch" | "cjk-heavenly-stem" | "cjk-ideographic" | "decimal" | "decimal-leading-zero" | "devanagari" | "disc" | "disclosure-closed" | "disclosure-open" | "ethiopic-numeric" | "georgian" | "gujarati" | "gurmukhi" | "hebrew" | "hiragana" | "hiragana-iroha" | "japanese-formal" | "japanese-informal" | "kannada" | "katakana" | "katakana-iroha" | "khmer" | "korean-hangul-formal" | "korean-hanja-formal" | "korean-hanja-informal" | "lao" | "lower-alpha" | "lower-armenian" | "lower-greek" | "lower-latin" | "lower-roman" | "malayalam" | "mongolian" | "myanmar" | "none" | "oriya" | "persian" | "simp-chinese-formal" | "simp-chinese-informal" | "square" | "string" | "symbols" | "tamil" | "telugu" | "thai" | "tibetan" | "trad-chinese-formal" | "trad-chinese-informal" | "upper-alpha" | "upper-armenian" | "upper-latin" | "upper-roman")[];
|
|
8476
|
+
"block-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "fit-content" | "max-content" | "min-content")[];
|
|
8477
|
+
"border-block"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent")[];
|
|
8478
|
+
"border-block-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8479
|
+
"border-block-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent")[];
|
|
8480
|
+
"border-block-end-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8481
|
+
"border-block-end-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8482
|
+
"border-block-end-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8483
|
+
"border-block-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent")[];
|
|
8484
|
+
"border-block-start-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8485
|
+
"border-block-start-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8486
|
+
"border-block-start-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8487
|
+
"border-block-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8488
|
+
"border-block-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8489
|
+
"border-end-end-radius"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8490
|
+
"border-end-start-radius"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8491
|
+
"border-inline"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent")[];
|
|
8492
|
+
"border-inline-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8493
|
+
"border-inline-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent")[];
|
|
8494
|
+
"border-inline-end-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8495
|
+
"border-inline-end-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8496
|
+
"border-inline-end-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8497
|
+
"border-inline-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent")[];
|
|
8498
|
+
"border-inline-start-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8499
|
+
"border-inline-start-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8500
|
+
"border-inline-start-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8501
|
+
"border-inline-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8502
|
+
"border-inline-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8503
|
+
"border-start-end-radius"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8504
|
+
"border-start-start-radius"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8505
|
+
"inline-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "fit-content" | "max-content" | "min-content")[];
|
|
8506
|
+
inset?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor" | "anchor-size" | "auto")[];
|
|
8507
|
+
"inset-block"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor" | "anchor-size" | "auto")[];
|
|
8508
|
+
"inset-block-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor" | "anchor-size" | "auto")[];
|
|
8509
|
+
"inset-block-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor" | "anchor-size" | "auto")[];
|
|
8510
|
+
"inset-inline"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor" | "anchor-size" | "auto")[];
|
|
8511
|
+
"inset-inline-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor" | "anchor-size" | "auto")[];
|
|
8512
|
+
"inset-inline-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor" | "anchor-size" | "auto")[];
|
|
8513
|
+
"margin-block"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size")[];
|
|
8514
|
+
"margin-block-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size")[];
|
|
8515
|
+
"margin-block-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size")[];
|
|
8516
|
+
"margin-inline"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size")[];
|
|
8517
|
+
"margin-inline-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size")[];
|
|
8518
|
+
"margin-inline-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size")[];
|
|
8519
|
+
"max-block-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "fit-content" | "max-content" | "min-content")[];
|
|
8520
|
+
"max-inline-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "fit-content" | "max-content" | "min-content")[];
|
|
8521
|
+
"min-block-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "fit-content" | "max-content" | "min-content")[];
|
|
8522
|
+
"min-inline-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "fit-content" | "max-content" | "min-content")[];
|
|
8523
|
+
"overflow-block"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlay")[];
|
|
8524
|
+
"overflow-inline"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "overlay")[];
|
|
8525
|
+
"padding-block"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8526
|
+
"padding-block-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8527
|
+
"padding-block-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8528
|
+
"padding-inline"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8529
|
+
"padding-inline-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8530
|
+
"padding-inline-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8531
|
+
margin?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "auto")[];
|
|
8532
|
+
"margin-bottom"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "auto")[];
|
|
8533
|
+
"margin-left"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "auto")[];
|
|
8534
|
+
"margin-right"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "auto")[];
|
|
8535
|
+
"margin-top"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "auto")[];
|
|
8536
|
+
"margin-trim"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "block" | "block-end" | "block-start" | "inline" | "inline-end" | "inline-start" | "none")[];
|
|
8537
|
+
"mask-border"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8538
|
+
"mask-border-outset"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8539
|
+
"mask-border-repeat"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8540
|
+
"mask-border-slice"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8541
|
+
"mask-border-source"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8542
|
+
"mask-border-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8543
|
+
"mask-type"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "alpha" | "luminance")[];
|
|
8544
|
+
mask?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8545
|
+
"mask-clip"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "border" | "content" | "padding" | "text")[];
|
|
8546
|
+
"mask-composite"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "add" | "exclude" | "intersect" | "subtract")[];
|
|
8547
|
+
"mask-image"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8548
|
+
"mask-mode"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "alpha" | "luminance" | "match-source")[];
|
|
8549
|
+
"mask-origin"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "border" | "content" | "fill-box" | "padding" | "stroke-box" | "view-box")[];
|
|
8550
|
+
"mask-position"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8551
|
+
"mask-repeat"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8552
|
+
"mask-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8553
|
+
"math-depth"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8554
|
+
"math-shift"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8555
|
+
"math-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8556
|
+
"max-height"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "fit-content" | "max-content" | "min-content" | "none" | "stretch")[];
|
|
8557
|
+
"max-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "fit-content" | "max-content" | "min-content" | "none" | "stretch")[];
|
|
8558
|
+
"min-height"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "fit-content" | "max-content" | "min-content" | "auto" | "stretch")[];
|
|
8559
|
+
"min-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "fit-content" | "max-content" | "min-content" | "auto" | "stretch")[];
|
|
8560
|
+
"mix-blend-mode"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "plus-darker" | "plus-lighter")[];
|
|
8561
|
+
offset?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8562
|
+
"offset-anchor"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "bottom" | "center" | "left" | "right" | "top")[];
|
|
8563
|
+
"offset-distance"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8564
|
+
"offset-path"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "border-box" | "content-box" | "fill-box" | "margin-box" | "none" | "padding-box" | "path" | "ray" | "stroke-box" | "url" | "view-box")[];
|
|
8565
|
+
"offset-position"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "bottom" | "center" | "left" | "normal" | "right" | "top")[];
|
|
8566
|
+
"offset-rotate"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "reverse")[];
|
|
8567
|
+
"column-count"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8568
|
+
"column-gap"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal")[];
|
|
8569
|
+
"column-rule"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent")[];
|
|
8570
|
+
"column-rule-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8571
|
+
"column-rule-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "dashed" | "dotted" | "double" | "groove" | "hidden" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8572
|
+
"column-rule-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8573
|
+
"column-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8574
|
+
columns?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8575
|
+
"object-fit"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "contain" | "cover" | "fill" | "none" | "scale-down")[];
|
|
8576
|
+
"object-position"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8577
|
+
"object-view-box"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8578
|
+
opacity?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "percentages")[];
|
|
8579
|
+
"fill-opacity"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8580
|
+
"stroke-opacity"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8581
|
+
outline?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "dashed" | "dotted" | "double" | "groove" | "inset" | "medium" | "none" | "outset" | "ridge" | "solid" | "thick" | "thin" | "transparent")[];
|
|
8582
|
+
"outline-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8583
|
+
"outline-offset"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8584
|
+
"outline-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "dashed" | "dotted" | "double" | "groove" | "inset" | "none" | "outset" | "ridge" | "solid")[];
|
|
8585
|
+
"outline-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "medium" | "thick" | "thin")[];
|
|
8586
|
+
"overflow-anchor"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none")[];
|
|
8587
|
+
"overflow-clip-margin"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "border-box" | "content-box" | "padding-box")[];
|
|
8588
|
+
overflow?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "clip" | "auto" | "hidden" | "scroll" | "visible")[];
|
|
8589
|
+
"overflow-x"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "clip" | "auto" | "hidden" | "scroll" | "visible")[];
|
|
8590
|
+
"overflow-y"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "clip" | "auto" | "hidden" | "scroll" | "visible")[];
|
|
8591
|
+
"overflow-wrap"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anywhere" | "break-word" | "normal")[];
|
|
8592
|
+
overlay?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none")[];
|
|
8593
|
+
"overscroll-behavior"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "contain" | "none")[];
|
|
8594
|
+
"overscroll-behavior-block"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "contain" | "none")[];
|
|
8595
|
+
"overscroll-behavior-inline"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "contain" | "none")[];
|
|
8596
|
+
"overscroll-behavior-x"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "contain" | "none")[];
|
|
8597
|
+
"overscroll-behavior-y"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "contain" | "none")[];
|
|
8598
|
+
padding?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8599
|
+
"padding-bottom"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8600
|
+
"padding-left"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8601
|
+
"padding-right"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8602
|
+
"padding-top"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8603
|
+
"page-break-after"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "always" | "auto" | "avoid" | "left" | "right")[];
|
|
8604
|
+
"page-break-before"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "always" | "auto" | "avoid" | "left" | "right")[];
|
|
8605
|
+
"page-break-inside"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "avoid")[];
|
|
8606
|
+
"break-after"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "avoid-column" | "column" | "always" | "auto" | "avoid" | "avoid-page" | "left" | "page" | "recto" | "right" | "verso")[];
|
|
8607
|
+
"break-before"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "avoid-column" | "column" | "always" | "auto" | "avoid" | "avoid-page" | "left" | "page" | "recto" | "right" | "verso")[];
|
|
8608
|
+
"break-inside"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "avoid-column" | "auto" | "avoid" | "avoid-page")[];
|
|
8609
|
+
page?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8610
|
+
"paint-order"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8611
|
+
bottom?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor" | "anchor-size" | "auto")[];
|
|
8612
|
+
left?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor" | "anchor-size" | "auto")[];
|
|
8613
|
+
right?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor" | "anchor-size" | "auto")[];
|
|
8614
|
+
top?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor" | "anchor-size" | "auto")[];
|
|
8615
|
+
"pointer-events"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8616
|
+
position?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "absolute" | "fixed" | "relative" | "static" | "sticky")[];
|
|
8617
|
+
"print-color-adjust"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "economy" | "exact")[];
|
|
8618
|
+
quotes?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none")[];
|
|
8619
|
+
"reading-flow"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "flex-flow" | "flex-visual" | "grid-columns" | "grid-order" | "grid-rows" | "normal" | "source-order")[];
|
|
8620
|
+
"reading-order"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8621
|
+
resize?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "block" | "inline")[];
|
|
8622
|
+
"ruby-align"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "center" | "space-around" | "space-between" | "start")[];
|
|
8623
|
+
"ruby-overhang"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none")[];
|
|
8624
|
+
"ruby-position"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "alternate" | "inter-character" | "over" | "under")[];
|
|
8625
|
+
"scroll-behavior"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "smooth")[];
|
|
8626
|
+
"animation-range"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8627
|
+
"animation-range-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal")[];
|
|
8628
|
+
"animation-range-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal")[];
|
|
8629
|
+
"animation-timeline"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "scroll" | "view")[];
|
|
8630
|
+
"scroll-timeline"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8631
|
+
"scroll-timeline-axis"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "block" | "inline" | "x" | "y")[];
|
|
8632
|
+
"scroll-timeline-name"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8633
|
+
"timeline-scope"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "all" | "none")[];
|
|
8634
|
+
"view-timeline"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8635
|
+
"view-timeline-axis"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "block" | "inline" | "x" | "y")[];
|
|
8636
|
+
"view-timeline-inset"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8637
|
+
"view-timeline-name"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8638
|
+
"scroll-initial-target"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "nearest" | "none")[];
|
|
8639
|
+
"scroll-marker-group"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "after" | "before" | "none")[];
|
|
8640
|
+
"scroll-margin"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8641
|
+
"scroll-margin-block"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8642
|
+
"scroll-margin-block-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8643
|
+
"scroll-margin-block-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8644
|
+
"scroll-margin-bottom"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8645
|
+
"scroll-margin-inline"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8646
|
+
"scroll-margin-inline-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8647
|
+
"scroll-margin-inline-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8648
|
+
"scroll-margin-left"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8649
|
+
"scroll-margin-right"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8650
|
+
"scroll-margin-top"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8651
|
+
"scroll-padding"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8652
|
+
"scroll-padding-block"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8653
|
+
"scroll-padding-block-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8654
|
+
"scroll-padding-block-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8655
|
+
"scroll-padding-bottom"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8656
|
+
"scroll-padding-inline"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8657
|
+
"scroll-padding-inline-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8658
|
+
"scroll-padding-inline-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8659
|
+
"scroll-padding-left"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8660
|
+
"scroll-padding-right"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8661
|
+
"scroll-padding-top"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8662
|
+
"scroll-snap-align"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "center" | "end" | "none" | "start")[];
|
|
8663
|
+
"scroll-snap-stop"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "always" | "normal")[];
|
|
8664
|
+
"scroll-snap-type"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "block" | "both" | "inline" | "none" | "x" | "y")[];
|
|
8665
|
+
"scroll-target-group"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none")[];
|
|
8666
|
+
"scrollbar-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8667
|
+
"scrollbar-gutter"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "stable")[];
|
|
8668
|
+
"scrollbar-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none" | "thin")[];
|
|
8669
|
+
"shape-image-threshold"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "percentages")[];
|
|
8670
|
+
"shape-margin"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8671
|
+
"shape-outside"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "circle" | "gradient" | "image" | "inset" | "none" | "path" | "polygon")[];
|
|
8672
|
+
speak?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8673
|
+
"speak-as"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "digits" | "literal-punctuation" | "no-punctuation" | "normal" | "spell-out")[];
|
|
8674
|
+
"clip-rule"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "evenodd" | "nonzero")[];
|
|
8675
|
+
"color-interpolation"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "linearGradient" | "sRGB")[];
|
|
8676
|
+
cx?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8677
|
+
cy?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8678
|
+
d?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8679
|
+
fill?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8680
|
+
"fill-rule"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "evenodd" | "nonzero")[];
|
|
8681
|
+
marker?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8682
|
+
"marker-end"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8683
|
+
"marker-mid"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8684
|
+
"marker-start"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8685
|
+
r?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8686
|
+
rx?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8687
|
+
ry?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8688
|
+
"shape-rendering"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8689
|
+
"stop-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8690
|
+
"stop-opacity"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8691
|
+
stroke?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8692
|
+
"stroke-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8693
|
+
"stroke-dasharray"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8694
|
+
"stroke-dashoffset"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8695
|
+
"stroke-linecap"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "butt" | "round" | "square")[];
|
|
8696
|
+
"stroke-linejoin"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "bevel" | "miter" | "round")[];
|
|
8697
|
+
"stroke-miterlimit"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8698
|
+
"stroke-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8699
|
+
"text-anchor"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "end" | "middle" | "start")[];
|
|
8700
|
+
"text-rendering"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "geometricPrecision")[];
|
|
8701
|
+
"vector-effect"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8702
|
+
x?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8703
|
+
y?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8704
|
+
"color-interpolation-filters"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "linearRGB" | "sRGB")[];
|
|
8705
|
+
"flood-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8706
|
+
"flood-opacity"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8707
|
+
"lighting-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8708
|
+
"tab-size"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "length")[];
|
|
8709
|
+
"border-collapse"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "collapse" | "separate")[];
|
|
8710
|
+
"border-spacing"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8711
|
+
"caption-side"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "bottom" | "bottom-outside" | "top" | "top-outside")[];
|
|
8712
|
+
"empty-cells"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "hide" | "show")[];
|
|
8713
|
+
"table-layout"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "fixed")[];
|
|
8714
|
+
"text-align"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "center" | "end" | "justify" | "left" | "match-parent" | "right" | "start")[];
|
|
8715
|
+
"text-align-last"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8716
|
+
"text-autospace"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "ideograph-alpha" | "ideograph-numeric" | "insert" | "no-autospace" | "normal" | "punctuation" | "replace")[];
|
|
8717
|
+
"text-box"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal")[];
|
|
8718
|
+
"text-box-edge"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8719
|
+
"text-box-trim"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none" | "trim-both" | "trim-end" | "trim-start")[];
|
|
8720
|
+
"text-combine-upright"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "all" | "none")[];
|
|
8721
|
+
"text-decoration"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "line-through" | "none" | "overline" | "transparent" | "underline")[];
|
|
8722
|
+
"text-decoration-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8723
|
+
"text-decoration-line"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "line-through" | "none" | "overline" | "underline" | "blink" | "grammar-error" | "spelling-error")[];
|
|
8724
|
+
"text-decoration-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "wavy")[];
|
|
8725
|
+
"text-decoration-thickness"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "from-font" | "percentage")[];
|
|
8726
|
+
"text-decoration-skip-ink"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none" | "all")[];
|
|
8727
|
+
"text-emphasis"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8728
|
+
"text-emphasis-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "currentColor" | "transparent")[];
|
|
8729
|
+
"text-emphasis-position"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "left" | "over" | "right" | "under")[];
|
|
8730
|
+
"text-emphasis-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "circle" | "dot" | "double-circle" | "filled" | "none" | "sesame" | "triangle")[];
|
|
8731
|
+
"text-fit"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "grow" | "none" | "shrink")[];
|
|
8732
|
+
"text-indent"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "each-line" | "hanging")[];
|
|
8733
|
+
"text-justify"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "inter-character" | "inter-word" | "none")[];
|
|
8734
|
+
"text-orientation"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "mixed" | "sideways" | "upright")[];
|
|
8735
|
+
"text-overflow"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "string" | "clip" | "ellipsis")[];
|
|
8736
|
+
"text-shadow"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8737
|
+
"text-size-adjust"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "none" | "percentages")[];
|
|
8738
|
+
"text-spacing-trim"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal" | "space-all" | "space-first" | "trim-start")[];
|
|
8739
|
+
"-webkit-text-fill-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8740
|
+
"-webkit-text-stroke"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8741
|
+
"-webkit-text-stroke-color"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8742
|
+
"-webkit-text-stroke-width"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8743
|
+
"text-transform"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "math-auto" | "capitalize" | "full-size-kana" | "full-width" | "lowercase" | "none" | "uppercase")[];
|
|
8744
|
+
"text-underline-offset"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "percentage")[];
|
|
8745
|
+
"text-underline-position"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "from-font" | "left" | "right" | "under")[];
|
|
8746
|
+
"text-wrap"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "nowrap" | "stable" | "wrap" | "balance" | "pretty")[];
|
|
8747
|
+
"text-wrap-mode"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "nowrap" | "wrap")[];
|
|
8748
|
+
"text-wrap-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "stable" | "balance" | "pretty")[];
|
|
8749
|
+
"touch-action"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "manipulation" | "none" | "pan-down" | "pan-left" | "pan-right" | "pan-up" | "pan-x" | "pan-y" | "pinch-zoom")[];
|
|
8750
|
+
"transform-box"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "border-box" | "content-box" | "fill-box" | "stroke-box" | "view-box")[];
|
|
8751
|
+
transform?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none" | "3d")[];
|
|
8752
|
+
"transform-origin"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "bottom" | "center" | "left" | "right" | "top")[];
|
|
8753
|
+
"backface-visibility"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8754
|
+
perspective?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8755
|
+
"perspective-origin"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "bottom" | "center" | "left" | "right" | "top")[];
|
|
8756
|
+
"transform-style"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8757
|
+
"transition-behavior"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8758
|
+
transition?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "transition-behavior" | "all" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "linear" | "none" | "step-end" | "step-start")[];
|
|
8759
|
+
"transition-delay"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8760
|
+
"transition-duration"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8761
|
+
"transition-property"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "all" | "none")[];
|
|
8762
|
+
"transition-timing-function"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "ease" | "ease-in" | "ease-in-out" | "ease-out" | "jump" | "linear" | "step-end" | "step-start")[];
|
|
8763
|
+
"user-select"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "all" | "auto" | "none" | "text")[];
|
|
8764
|
+
"vertical-align"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "baseline" | "bottom" | "middle" | "sub" | "super" | "text-bottom" | "text-top" | "top")[];
|
|
8765
|
+
"view-transition-class"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "none")[];
|
|
8766
|
+
"view-transition-name"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "match-element" | "none")[];
|
|
8767
|
+
"view-transition-scope"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "all" | "none")[];
|
|
8768
|
+
visibility?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "collapse" | "hidden" | "visible")[];
|
|
8769
|
+
"white-space"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "break-spaces" | "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap")[];
|
|
8770
|
+
"white-space-collapse"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "break-spaces" | "collapse" | "preserve" | "preserve-breaks" | "preserve-spaces")[];
|
|
8771
|
+
orphans?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8772
|
+
widows?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8773
|
+
height?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "fit-content" | "max-content" | "min-content" | "stretch" | "auto")[];
|
|
8774
|
+
width?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "anchor-size" | "fit-content" | "max-content" | "min-content" | "stretch" | "auto")[];
|
|
8775
|
+
"will-change"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto" | "contents" | "scroll-position")[];
|
|
8776
|
+
"window-drag"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "move" | "none")[];
|
|
8777
|
+
"word-break"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "break-all" | "keep-all" | "normal" | "auto-phrase" | "break-word")[];
|
|
8778
|
+
"word-spacing"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "normal")[];
|
|
8779
|
+
"writing-mode"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "horizontal-tb" | "sideways-lr" | "sideways-rl" | "vertical-lr" | "vertical-rl" | "lr" | "lr-tb" | "rl" | "rl-tb" | "tb" | "tb-rl")[];
|
|
8780
|
+
"z-index"?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset" | "auto")[];
|
|
8781
|
+
zoom?: ("revert-layer" | "inherit" | "initial" | "revert" | "unset")[];
|
|
8782
|
+
};
|
|
8783
|
+
allowSelectors?: ("active-view-transition" | "active-view-transition-type" | "autofill" | "defined" | "backdrop" | "after" | "before" | "column" | "checkmark" | "picker" | "picker-icon" | "default" | "details-content" | "dir" | "empty" | "file-selector-button" | "first-letter" | "first-line" | "focus-visible" | "focus-within" | "in-range" | "invalid" | "optional" | "out-of-range" | "required" | "valid" | "fullscreen" | "has" | "has-slotted" | "heading" | "headingfunction" | "highlight" | "host" | "hostfunction" | "host-context" | "indeterminate" | "checked" | "disabled" | "enabled" | "interest-source" | "interest-target" | "is" | "lang" | "any-link" | "link" | "visited" | "marker" | "buffering" | "muted" | "paused" | "playing" | "seeking" | "stalled" | "volume-locked" | "modal" | "namespace" | "nesting" | "not" | "first-child" | "last-child" | "nth-child" | "nth-last-child" | "only-child" | "first-of-type" | "last-of-type" | "nth-last-of-type" | "nth-of-type" | "only-of-type" | "open" | "first" | "left" | "right" | "picture-in-picture" | "placeholder" | "placeholder-shown" | "popover-open" | "read-only" | "read-write" | "root" | "scope" | "scroll-button" | "target-after" | "target-before" | "target-current" | "scroll-marker" | "scroll-marker-group" | "selection" | "attribute" | "child" | "class" | "descendant" | "id" | "list" | "next-sibling" | "subsequent-sibling" | "type" | "universal" | "part" | "slotted" | "grammar-error" | "spelling-error" | "state" | "target" | "target-text" | "future" | "past" | "active" | "focus" | "hover" | "user-invalid" | "user-valid" | "view-transition" | "view-transition-group" | "view-transition-image-pair" | "view-transition-new" | "view-transition-old" | "cue" | "xr-overlay" | "where")[];
|
|
8784
|
+
allowUnits?: ("cap" | "ch" | "cqw" | "cqh" | "cqi" | "cqb" | "cqmin" | "cqmax" | "em" | "ex" | "ic" | "lh" | "Q" | "rcap" | "rch" | "rem" | "rex" | "ric" | "rlh" | "vb" | "vi" | "dvb" | "dvh" | "dvi" | "dvmax" | "dvmin" | "dvw" | "lvb" | "lvh" | "lvi" | "lvmax" | "lvmin" | "lvw" | "svb" | "svh" | "svi" | "svmax" | "svmin" | "svw" | "vh" | "vmax" | "vmin" | "vw")[];
|
|
8785
|
+
}];
|
|
8786
|
+
// ----- css/use-layers -----
|
|
8787
|
+
type CssUseLayers = [] | [{
|
|
8788
|
+
allowUnnamedLayers?: boolean;
|
|
8789
|
+
requireImportLayers?: boolean;
|
|
8790
|
+
layerNamePattern?: string;
|
|
8791
|
+
}];
|
|
8792
|
+
// ----- cssicorn/no-deprecated-features -----
|
|
8793
|
+
type CssicornNoDeprecatedFeatures = [] | [{
|
|
8794
|
+
allow?: string[];
|
|
8795
|
+
}];
|
|
8796
|
+
// ----- cssicorn/no-redundant-longhand-properties -----
|
|
8797
|
+
type CssicornNoRedundantLonghandProperties = [] | [{
|
|
8798
|
+
ignoreShorthands?: ("animation" | "animation-range" | "background" | "border" | "border-block" | "border-block-color" | "border-block-end" | "border-block-start" | "border-block-style" | "border-block-width" | "border-bottom" | "border-color" | "border-image" | "border-inline" | "border-inline-color" | "border-inline-end" | "border-inline-start" | "border-inline-style" | "border-inline-width" | "border-left" | "border-radius" | "border-right" | "border-style" | "border-top" | "border-width" | "column-rule" | "columns" | "flex" | "flex-flow" | "font" | "font-synthesis" | "font-variant" | "gap" | "grid" | "grid-area" | "grid-column" | "grid-gap" | "grid-row" | "grid-template" | "inset" | "inset-block" | "inset-inline" | "list-style" | "margin" | "margin-block" | "margin-inline" | "mask" | "mask-border" | "outline" | "overflow" | "overscroll-behavior" | "padding" | "padding-block" | "padding-inline" | "place-content" | "place-items" | "place-self" | "scroll-margin" | "scroll-margin-block" | "scroll-margin-inline" | "scroll-padding" | "scroll-padding-block" | "scroll-padding-inline" | "text-decoration" | "text-emphasis" | "transition")[];
|
|
8799
|
+
}];
|
|
8800
|
+
// ----- cssicorn/no-unknown-pseudo-selectors -----
|
|
8801
|
+
type CssicornNoUnknownPseudoSelectors = [] | [{
|
|
8802
|
+
allow?: string[];
|
|
8803
|
+
}];
|
|
8804
|
+
// ----- cssicorn/no-unscoped-nesting-selector -----
|
|
8805
|
+
type CssicornNoUnscopedNestingSelector = [] | [{
|
|
8806
|
+
scopingRootAtRules?: string[];
|
|
8807
|
+
}];
|
|
8808
|
+
// ----- cssicorn/prefer-explicit-viewport-units -----
|
|
8809
|
+
type CssicornPreferExplicitViewportUnits = [] | [{
|
|
8810
|
+
unit?: ("dvh" | "svh" | "lvh");
|
|
8811
|
+
}];
|
|
7851
8812
|
// ----- curly -----
|
|
7852
8813
|
type Curly = ([] | ["all"] | [] | [("multi" | "multi-line" | "multi-or-nest")] | [("multi" | "multi-line" | "multi-or-nest"), "consistent"]);
|
|
7853
8814
|
// ----- default-case -----
|
|
@@ -18668,6 +19629,11 @@ interface _UnicornImportStyle_ModuleStyles {
|
|
|
18668
19629
|
interface _UnicornImportStyle_BooleanObject {
|
|
18669
19630
|
[k: string]: boolean | undefined;
|
|
18670
19631
|
}
|
|
19632
|
+
// ----- unicorn/indent -----
|
|
19633
|
+
type UnicornIndent = [] | [{
|
|
19634
|
+
indent?: ("tab" | number);
|
|
19635
|
+
tabWidth?: number;
|
|
19636
|
+
}];
|
|
18671
19637
|
// ----- unicorn/isolated-functions -----
|
|
18672
19638
|
type UnicornIsolatedFunctions = [] | [{
|
|
18673
19639
|
overrideGlobals?: {
|
|
@@ -18679,6 +19645,15 @@ type UnicornIsolatedFunctions = [] | [{
|
|
|
18679
19645
|
}];
|
|
18680
19646
|
// ----- unicorn/iteration-fallback-style -----
|
|
18681
19647
|
type UnicornIterationFallbackStyle = [] | [("guard" | "fallback")];
|
|
19648
|
+
// ----- unicorn/key-name-casing -----
|
|
19649
|
+
type UnicornKeyNameCasing = [] | [{
|
|
19650
|
+
camelCase?: boolean;
|
|
19651
|
+
PascalCase?: boolean;
|
|
19652
|
+
SCREAMING_SNAKE_CASE?: boolean;
|
|
19653
|
+
"kebab-case"?: boolean;
|
|
19654
|
+
snake_case?: boolean;
|
|
19655
|
+
ignore?: string[];
|
|
19656
|
+
}];
|
|
18682
19657
|
// ----- unicorn/logical-assignment-operators -----
|
|
18683
19658
|
type UnicornLogicalAssignmentOperators = (([] | ["always"] | ["always", {
|
|
18684
19659
|
enforceForIfStatements?: boolean;
|
|
@@ -18733,10 +19708,6 @@ type UnicornNoArraySort = [] | [{
|
|
|
18733
19708
|
type UnicornNoBreakInNestedLoop = [] | [{
|
|
18734
19709
|
checkContinue?: boolean;
|
|
18735
19710
|
}];
|
|
18736
|
-
// ----- unicorn/no-deprecated-css-features -----
|
|
18737
|
-
type UnicornNoDeprecatedCssFeatures = [] | [{
|
|
18738
|
-
allow?: string[];
|
|
18739
|
-
}];
|
|
18740
19711
|
// ----- unicorn/no-empty-file -----
|
|
18741
19712
|
type UnicornNoEmptyFile = [] | [{
|
|
18742
19713
|
allowComments?: boolean;
|
|
@@ -18785,9 +19756,9 @@ type UnicornNoNull = [] | [{
|
|
|
18785
19756
|
type UnicornNoTypeofUndefined = [] | [{
|
|
18786
19757
|
checkGlobalVariables?: boolean;
|
|
18787
19758
|
}];
|
|
18788
|
-
// ----- unicorn/no-
|
|
18789
|
-
type
|
|
18790
|
-
|
|
19759
|
+
// ----- unicorn/no-unnecessary-parameters -----
|
|
19760
|
+
type UnicornNoUnnecessaryParameters = [] | [{
|
|
19761
|
+
minimumCallCount?: number;
|
|
18791
19762
|
}];
|
|
18792
19763
|
// ----- unicorn/no-unnecessary-polyfills -----
|
|
18793
19764
|
type UnicornNoUnnecessaryPolyfills = [] | [{
|
|
@@ -18799,10 +19770,6 @@ type UnicornNoUnnecessaryPolyfills = [] | [{
|
|
|
18799
19770
|
type UnicornNoUnreadableArrayDestructuring = [] | [{
|
|
18800
19771
|
maximumIgnoredElements?: number;
|
|
18801
19772
|
}];
|
|
18802
|
-
// ----- unicorn/no-unscoped-css-nesting-selector -----
|
|
18803
|
-
type UnicornNoUnscopedCssNestingSelector = [] | [{
|
|
18804
|
-
scopingRootAtRules?: string[];
|
|
18805
|
-
}];
|
|
18806
19773
|
// ----- unicorn/no-useless-undefined -----
|
|
18807
19774
|
type UnicornNoUselessUndefined = [] | [{
|
|
18808
19775
|
checkArguments?: boolean;
|
|
@@ -18859,6 +19826,7 @@ type UnicornPreferAt = [] | [{
|
|
|
18859
19826
|
// ----- unicorn/prefer-combined-guards -----
|
|
18860
19827
|
type UnicornPreferCombinedGuards = [] | [{
|
|
18861
19828
|
checkCompoundConditions?: boolean;
|
|
19829
|
+
checkMultiStatementBodies?: boolean;
|
|
18862
19830
|
}];
|
|
18863
19831
|
// ----- unicorn/prefer-continue -----
|
|
18864
19832
|
type UnicornPreferContinue = [] | [{
|
|
@@ -18875,10 +19843,6 @@ type UnicornPreferEarlyReturn = [] | [{
|
|
|
18875
19843
|
maximumStatements?: number;
|
|
18876
19844
|
checkShortBodies?: boolean;
|
|
18877
19845
|
}];
|
|
18878
|
-
// ----- unicorn/prefer-explicit-viewport-units -----
|
|
18879
|
-
type UnicornPreferExplicitViewportUnits = [] | [{
|
|
18880
|
-
unit?: ("dvh" | "svh" | "lvh");
|
|
18881
|
-
}];
|
|
18882
19846
|
// ----- unicorn/prefer-export-from -----
|
|
18883
19847
|
type UnicornPreferExportFrom = [] | [{
|
|
18884
19848
|
checkUsedVariables?: boolean;
|
|
@@ -18922,6 +19886,10 @@ type UnicornPreferSetHas = [] | [{
|
|
|
18922
19886
|
}];
|
|
18923
19887
|
// ----- unicorn/prefer-short-arrow-method -----
|
|
18924
19888
|
type UnicornPreferShortArrowMethod = [] | [("always" | "consistent-as-needed")];
|
|
19889
|
+
// ----- unicorn/prefer-simplified-conditions -----
|
|
19890
|
+
type UnicornPreferSimplifiedConditions = [] | [{
|
|
19891
|
+
negatedConditions?: ("simplify" | "expand");
|
|
19892
|
+
}];
|
|
18925
19893
|
// ----- unicorn/prefer-single-call -----
|
|
18926
19894
|
type UnicornPreferSingleCall = [] | [{
|
|
18927
19895
|
ignore?: string[];
|
|
@@ -20621,7 +21589,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
|
|
|
20621
21589
|
onlyEquality?: boolean;
|
|
20622
21590
|
}];
|
|
20623
21591
|
// Names of all the configs
|
|
20624
|
-
type ConfigNames = 'favorodera/ignores' | 'favorodera/imports/setup' | 'favorodera/imports/rules' | 'favorodera/javascript/setup' | 'favorodera/javascript/rules' | 'favorodera/jsdoc/recommended/setup' | 'favorodera/jsdoc/stylistic/setup' | 'favorodera/jsdoc/rules' | 'favorodera/jsonc/setup' | 'favorodera/jsonc/rules' | 'favorodera/jsonc/sort/package-json' | 'favorodera/jsonc/sort/tsconfig-json' | 'favorodera/markdown/setup' | 'favorodera/markdown/rules' | 'favorodera/node/setup' | 'favorodera/node/rules' | 'favorodera/perfectionist/setup' | 'favorodera/perfectionist/rules' | 'favorodera/pnpm/setup' | 'favorodera/pnpm/package-json' | 'favorodera/pnpm/pnpm-workspace-yaml' | 'favorodera/stylistic/setup' | 'favorodera/stylistic/rules' | 'favorodera/tailwind/recommended/setup' | 'favorodera/tailwind/stylistic/setup' | 'favorodera/tailwind/rules' | 'favorodera/test/setup' | 'favorodera/test/rules' | 'favorodera/typescript/setup' | 'favorodera/typescript/rules' | 'favorodera/unicorn/setup' | 'favorodera/unicorn/rules' | 'favorodera/unused-imports/setup' | 'favorodera/unused-imports/rules' | 'favorodera/vue/setup' | 'favorodera/vue/a11y/setup' | 'favorodera/vue/rules' | 'favorodera/vue/a11y/rules' | 'favorodera/yaml/setup' | 'favorodera/yaml/rules' | 'favorodera/yaml/sort/pnpm-workspace-yaml' | 'favorodera/disables/jsonc' | 'favorodera/disables/markdown' | 'favorodera/disables/code-in-markdown' | 'favorodera/disables/js-ts-vue' | 'favorodera/disables/vue' | 'favorodera/disables/test';
|
|
21592
|
+
type ConfigNames = 'favorodera/ignores' | 'favorodera/css/setup' | 'favorodera/css/cssicorn/setup' | 'favorodera/css/rules' | 'favorodera/css/cssicorn/rules' | 'favorodera/imports/setup' | 'favorodera/imports/rules' | 'favorodera/javascript/setup' | 'favorodera/javascript/rules' | 'favorodera/jsdoc/recommended/setup' | 'favorodera/jsdoc/stylistic/setup' | 'favorodera/jsdoc/rules' | 'favorodera/jsonc/setup' | 'favorodera/jsonc/rules' | 'favorodera/jsonc/sort/package-json' | 'favorodera/jsonc/sort/tsconfig-json' | 'favorodera/markdown/setup' | 'favorodera/markdown/rules' | 'favorodera/node/setup' | 'favorodera/node/rules' | 'favorodera/perfectionist/setup' | 'favorodera/perfectionist/rules' | 'favorodera/pnpm/setup' | 'favorodera/pnpm/package-json' | 'favorodera/pnpm/pnpm-workspace-yaml' | 'favorodera/stylistic/setup' | 'favorodera/stylistic/rules' | 'favorodera/tailwind/recommended/setup' | 'favorodera/tailwind/stylistic/setup' | 'favorodera/tailwind/rules' | 'favorodera/test/setup' | 'favorodera/test/rules' | 'favorodera/typescript/setup' | 'favorodera/typescript/rules' | 'favorodera/unicorn/setup' | 'favorodera/unicorn/rules' | 'favorodera/unused-imports/setup' | 'favorodera/unused-imports/rules' | 'favorodera/vue/setup' | 'favorodera/vue/a11y/setup' | 'favorodera/vue/rules' | 'favorodera/vue/a11y/rules' | 'favorodera/yaml/setup' | 'favorodera/yaml/rules' | 'favorodera/yaml/sort/pnpm-workspace-yaml' | 'favorodera/disables/jsonc' | 'favorodera/disables/markdown' | 'favorodera/disables/code-in-markdown' | 'favorodera/disables/js-ts-vue' | 'favorodera/disables/vue' | 'favorodera/disables/test';
|
|
20625
21593
|
//#endregion
|
|
20626
21594
|
//#region src/types/utils.d.ts
|
|
20627
21595
|
/** ESLint rules configuration with type-safe autocompletion */
|
|
@@ -20839,6 +21807,8 @@ interface ConfigOptions {
|
|
|
20839
21807
|
vue?: boolean | VueConfigOptions;
|
|
20840
21808
|
/** YAML files linting and sorting (via `eslint-plugin-yml`). */
|
|
20841
21809
|
yaml?: boolean;
|
|
21810
|
+
/** CSS files linting and best practices (via `@eslint/css` and `eslint-cssicorn`). */
|
|
21811
|
+
css?: boolean;
|
|
20842
21812
|
}
|
|
20843
21813
|
/**
|
|
20844
21814
|
* Factory to create a flat ESLint config.
|
|
@@ -20855,12 +21825,14 @@ export declare const jsGlob = "**/*.{js,cjs,mjs}";
|
|
|
20855
21825
|
export declare const tsGlob = "**/*.{ts,cts,mts}";
|
|
20856
21826
|
/** Glob pattern for matching Vue single-file components */
|
|
20857
21827
|
export declare const vueGlob = "**/*.vue";
|
|
21828
|
+
/** Glob pattern for matching CSS files */
|
|
21829
|
+
export declare const cssGlob = "**/*.css";
|
|
20858
21830
|
/** Glob pattern for matching Markdown files */
|
|
20859
21831
|
export declare const mdGlob = "**/*.md";
|
|
20860
21832
|
/** Glob pattern for matching virtual files extracted from Markdown */
|
|
20861
21833
|
export declare const mdInMdGlob = "**/*.md/*.md";
|
|
20862
21834
|
/** Glob pattern for matching code blocks embedded in Markdown files */
|
|
20863
|
-
export declare const codeInMdGlob = "**/*.md/**/*.{js,cjs,mjs,ts,cts,mts,vue}";
|
|
21835
|
+
export declare const codeInMdGlob = "**/*.md/**/*.{js,cjs,mjs,ts,cts,mts,vue,css}";
|
|
20864
21836
|
/** Glob pattern for matching scripts files */
|
|
20865
21837
|
export declare const scriptsGlob = "**/*.{js,cjs,mjs,ts,cts,mts}";
|
|
20866
21838
|
/** Glob pattern for matching test files */
|