@ncontiero/eslint-config 6.3.0-beta.4 → 6.3.0-beta.5

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/dist/index.d.ts CHANGED
@@ -4966,45 +4966,60 @@ interface RuleOptions {
4966
4966
  */
4967
4967
  'symbol-description'?: Linter.RuleEntry<[]>
4968
4968
  /**
4969
- * Enforce a consistent and logical order of the Tailwind CSS classnames
4970
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/classnames-order.md
4969
+ * Enforce a consistent order for tailwind classes.
4970
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-class-order.md
4971
4971
  */
4972
- 'tailwindcss/classnames-order'?: Linter.RuleEntry<TailwindcssClassnamesOrder>
4972
+ 'tailwindcss/enforce-consistent-class-order'?: Linter.RuleEntry<TailwindcssEnforceConsistentClassOrder>
4973
4973
  /**
4974
- * Warns about dash prefixed classnames using arbitrary values
4975
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/enforces-negative-arbitrary-values.md
4974
+ * Enforce consistent important position for classes.
4975
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-important-position.md
4976
4976
  */
4977
- 'tailwindcss/enforces-negative-arbitrary-values'?: Linter.RuleEntry<TailwindcssEnforcesNegativeArbitraryValues>
4977
+ 'tailwindcss/enforce-consistent-important-position'?: Linter.RuleEntry<TailwindcssEnforceConsistentImportantPosition>
4978
4978
  /**
4979
- * Enforces the usage of shorthand Tailwind CSS classnames
4980
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/enforces-shorthand.md
4979
+ * Enforce consistent line wrapping for tailwind classes.
4980
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/multiline.md
4981
4981
  */
4982
- 'tailwindcss/enforces-shorthand'?: Linter.RuleEntry<TailwindcssEnforcesShorthand>
4982
+ 'tailwindcss/enforce-consistent-line-wrapping'?: Linter.RuleEntry<TailwindcssEnforceConsistentLineWrapping>
4983
4983
  /**
4984
- * Detect obsolete classnames when upgrading to Tailwind CSS v3
4985
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/migration-from-tailwind-2.md
4984
+ * Enforce consistent syntax for css variables.
4985
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-variable-syntax.md
4986
4986
  */
4987
- 'tailwindcss/migration-from-tailwind-2'?: Linter.RuleEntry<TailwindcssMigrationFromTailwind2>
4987
+ 'tailwindcss/enforce-consistent-variable-syntax'?: Linter.RuleEntry<TailwindcssEnforceConsistentVariableSyntax>
4988
4988
  /**
4989
- * Forbid using arbitrary values in classnames
4990
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/no-arbitrary-value.md
4989
+ * Enforce shorthand class names instead of longhand class names.
4990
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-shorthand-classes.md
4991
4991
  */
4992
- 'tailwindcss/no-arbitrary-value'?: Linter.RuleEntry<TailwindcssNoArbitraryValue>
4992
+ 'tailwindcss/enforce-shorthand-classes'?: Linter.RuleEntry<TailwindcssEnforceShorthandClasses>
4993
4993
  /**
4994
- * Avoid contradicting Tailwind CSS classnames (e.g. "w-3 w-5")
4995
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/no-contradicting-classname.md
4994
+ * Disallow classes that produce conflicting styles.
4995
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-conflicting-classes.md
4996
4996
  */
4997
- 'tailwindcss/no-contradicting-classname'?: Linter.RuleEntry<TailwindcssNoContradictingClassname>
4997
+ 'tailwindcss/no-conflicting-classes'?: Linter.RuleEntry<TailwindcssNoConflictingClasses>
4998
4998
  /**
4999
- * Detect classnames which do not belong to Tailwind CSS
5000
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/no-custom-classname.md
4999
+ * Disallow the use of deprecated Tailwind CSS classes.
5000
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-deprecated-classes.md
5001
5001
  */
5002
- 'tailwindcss/no-custom-classname'?: Linter.RuleEntry<TailwindcssNoCustomClassname>
5002
+ 'tailwindcss/no-deprecated-classes'?: Linter.RuleEntry<TailwindcssNoDeprecatedClasses>
5003
5003
  /**
5004
- * Forbid using arbitrary values in classnames when an equivalent preset exists
5005
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/no-unnecessary-arbitrary-value.md
5004
+ * Disallow duplicate class names in tailwind classes.
5005
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-duplicate-classes.md
5006
5006
  */
5007
- 'tailwindcss/no-unnecessary-arbitrary-value'?: Linter.RuleEntry<TailwindcssNoUnnecessaryArbitraryValue>
5007
+ 'tailwindcss/no-duplicate-classes'?: Linter.RuleEntry<TailwindcssNoDuplicateClasses>
5008
+ /**
5009
+ * Disallow restricted classes.
5010
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-restricted-classes.md
5011
+ */
5012
+ 'tailwindcss/no-restricted-classes'?: Linter.RuleEntry<TailwindcssNoRestrictedClasses>
5013
+ /**
5014
+ * Disallow any css classes that are not registered in tailwindcss.
5015
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-unknown-classes.md
5016
+ */
5017
+ 'tailwindcss/no-unknown-classes'?: Linter.RuleEntry<TailwindcssNoUnknownClasses>
5018
+ /**
5019
+ * Disallow unnecessary whitespace between Tailwind CSS classes.
5020
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-unnecessary-whitespace.md
5021
+ */
5022
+ 'tailwindcss/no-unnecessary-whitespace'?: Linter.RuleEntry<TailwindcssNoUnnecessaryWhitespace>
5008
5023
  /**
5009
5024
  * Require or disallow spacing around embedded expressions of template strings
5010
5025
  * @see https://eslint.org/docs/latest/rules/template-curly-spacing
@@ -14159,123 +14174,963 @@ type SwitchColonSpacing = []|[{
14159
14174
  before?: boolean
14160
14175
  after?: boolean
14161
14176
  }]
14162
- // ----- tailwindcss/classnames-order -----
14163
- type TailwindcssClassnamesOrder = []|[{
14164
- callees?: string[]
14165
- ignoredKeys?: string[]
14166
- config?: (string | {
14177
+ // ----- tailwindcss/enforce-consistent-class-order -----
14178
+ type TailwindcssEnforceConsistentClassOrder = []|[{
14179
+
14180
+ callees?: ([string, ({
14181
+
14182
+ match: "strings"
14167
14183
  [k: string]: unknown | undefined
14168
- })
14169
- removeDuplicates?: boolean
14170
- tags?: string[]
14171
- [k: string]: unknown | undefined
14172
- }]
14173
- // ----- tailwindcss/enforces-negative-arbitrary-values -----
14174
- type TailwindcssEnforcesNegativeArbitraryValues = []|[{
14175
- callees?: string[]
14176
- ignoredKeys?: string[]
14177
- config?: (string | {
14184
+ } | {
14185
+
14186
+ match: "objectKeys"
14187
+
14188
+ pathPattern?: string
14178
14189
  [k: string]: unknown | undefined
14179
- })
14180
- tags?: string[]
14181
- [k: string]: unknown | undefined
14182
- }]
14183
- // ----- tailwindcss/enforces-shorthand -----
14184
- type TailwindcssEnforcesShorthand = []|[{
14185
- callees?: string[]
14186
- ignoredKeys?: string[]
14187
- config?: (string | {
14190
+ } | {
14191
+
14192
+ match: "objectValues"
14193
+
14194
+ pathPattern?: string
14188
14195
  [k: string]: unknown | undefined
14189
- })
14190
- tags?: string[]
14191
- [k: string]: unknown | undefined
14192
- }]
14193
- // ----- tailwindcss/migration-from-tailwind-2 -----
14194
- type TailwindcssMigrationFromTailwind2 = []|[{
14195
- callees?: string[]
14196
- ignoredKeys?: string[]
14197
- config?: (string | {
14196
+ })[]] | string)[]
14197
+
14198
+ attributes?: (string | [string, ({
14199
+
14200
+ match: "strings"
14198
14201
  [k: string]: unknown | undefined
14199
- })
14200
- tags?: string[]
14201
- [k: string]: unknown | undefined
14202
- }]
14203
- // ----- tailwindcss/no-arbitrary-value -----
14204
- type TailwindcssNoArbitraryValue = []|[{
14205
- callees?: string[]
14206
- ignoredKeys?: string[]
14207
- config?: (string | {
14202
+ } | {
14203
+
14204
+ match: "objectKeys"
14205
+
14206
+ pathPattern?: string
14208
14207
  [k: string]: unknown | undefined
14209
- })
14210
- tags?: string[]
14211
- [k: string]: unknown | undefined
14212
- }]
14213
- // ----- tailwindcss/no-contradicting-classname -----
14214
- type TailwindcssNoContradictingClassname = []|[{
14215
- callees?: string[]
14216
- ignoredKeys?: string[]
14217
- config?: (string | {
14208
+ } | {
14209
+
14210
+ match: "objectValues"
14211
+
14212
+ pathPattern?: string
14218
14213
  [k: string]: unknown | undefined
14219
- })
14220
- tags?: string[]
14221
- [k: string]: unknown | undefined
14222
- }]
14223
- // ----- tailwindcss/no-custom-classname -----
14224
- type TailwindcssNoCustomClassname = []|[{
14225
- callees?: string[]
14226
- ignoredKeys?: string[]
14227
- config?: (string | {
14214
+ })[]])[]
14215
+
14216
+ variables?: ([string, ({
14217
+
14218
+ match: "strings"
14228
14219
  [k: string]: unknown | undefined
14229
- })
14230
- cssFiles?: string[]
14231
- cssFilesRefreshRate?: number
14232
- tags?: string[]
14233
- whitelist?: string[]
14234
- [k: string]: unknown | undefined
14220
+ } | {
14221
+
14222
+ match: "objectKeys"
14223
+
14224
+ pathPattern?: string
14225
+ [k: string]: unknown | undefined
14226
+ } | {
14227
+
14228
+ match: "objectValues"
14229
+
14230
+ pathPattern?: string
14231
+ [k: string]: unknown | undefined
14232
+ })[]] | string)[]
14233
+
14234
+ tags?: ([string, ({
14235
+
14236
+ match: "strings"
14237
+ [k: string]: unknown | undefined
14238
+ } | {
14239
+
14240
+ match: "objectKeys"
14241
+
14242
+ pathPattern?: string
14243
+ [k: string]: unknown | undefined
14244
+ } | {
14245
+
14246
+ match: "objectValues"
14247
+
14248
+ pathPattern?: string
14249
+ [k: string]: unknown | undefined
14250
+ })[]] | string)[]
14251
+
14252
+ entryPoint?: string
14253
+
14254
+ tailwindConfig?: string
14255
+
14256
+ tsconfig?: string
14257
+
14258
+ order?: ("asc" | "desc" | "official" | "improved")
14235
14259
  }]
14236
- // ----- tailwindcss/no-unnecessary-arbitrary-value -----
14237
- type TailwindcssNoUnnecessaryArbitraryValue = []|[{
14238
- callees?: string[]
14239
- ignoredKeys?: string[]
14240
- config?: (string | {
14260
+ // ----- tailwindcss/enforce-consistent-important-position -----
14261
+ type TailwindcssEnforceConsistentImportantPosition = []|[{
14262
+
14263
+ callees?: ([string, ({
14264
+
14265
+ match: "strings"
14241
14266
  [k: string]: unknown | undefined
14242
- })
14243
- tags?: string[]
14244
- [k: string]: unknown | undefined
14267
+ } | {
14268
+
14269
+ match: "objectKeys"
14270
+
14271
+ pathPattern?: string
14272
+ [k: string]: unknown | undefined
14273
+ } | {
14274
+
14275
+ match: "objectValues"
14276
+
14277
+ pathPattern?: string
14278
+ [k: string]: unknown | undefined
14279
+ })[]] | string)[]
14280
+
14281
+ attributes?: (string | [string, ({
14282
+
14283
+ match: "strings"
14284
+ [k: string]: unknown | undefined
14285
+ } | {
14286
+
14287
+ match: "objectKeys"
14288
+
14289
+ pathPattern?: string
14290
+ [k: string]: unknown | undefined
14291
+ } | {
14292
+
14293
+ match: "objectValues"
14294
+
14295
+ pathPattern?: string
14296
+ [k: string]: unknown | undefined
14297
+ })[]])[]
14298
+
14299
+ variables?: ([string, ({
14300
+
14301
+ match: "strings"
14302
+ [k: string]: unknown | undefined
14303
+ } | {
14304
+
14305
+ match: "objectKeys"
14306
+
14307
+ pathPattern?: string
14308
+ [k: string]: unknown | undefined
14309
+ } | {
14310
+
14311
+ match: "objectValues"
14312
+
14313
+ pathPattern?: string
14314
+ [k: string]: unknown | undefined
14315
+ })[]] | string)[]
14316
+
14317
+ tags?: ([string, ({
14318
+
14319
+ match: "strings"
14320
+ [k: string]: unknown | undefined
14321
+ } | {
14322
+
14323
+ match: "objectKeys"
14324
+
14325
+ pathPattern?: string
14326
+ [k: string]: unknown | undefined
14327
+ } | {
14328
+
14329
+ match: "objectValues"
14330
+
14331
+ pathPattern?: string
14332
+ [k: string]: unknown | undefined
14333
+ })[]] | string)[]
14334
+
14335
+ entryPoint?: string
14336
+
14337
+ tailwindConfig?: string
14338
+
14339
+ tsconfig?: string
14340
+
14341
+ position?: ("legacy" | "recommended")
14245
14342
  }]
14246
- // ----- template-curly-spacing -----
14247
- type TemplateCurlySpacing = []|[("always" | "never")]
14248
- // ----- template-tag-spacing -----
14249
- type TemplateTagSpacing = []|[("always" | "never")]
14250
- // ----- toml/array-bracket-newline -----
14251
- type TomlArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
14252
- multiline?: boolean
14253
- minItems?: (number | null)
14254
- })]
14255
- // ----- toml/array-bracket-spacing -----
14256
- type TomlArrayBracketSpacing = []|[("always" | "never")]|[("always" | "never"), {
14257
- singleValue?: boolean
14258
- objectsInArrays?: boolean
14259
- arraysInArrays?: boolean
14343
+ // ----- tailwindcss/enforce-consistent-line-wrapping -----
14344
+ type TailwindcssEnforceConsistentLineWrapping = []|[{
14345
+
14346
+ callees?: ([string, ({
14347
+
14348
+ match: "strings"
14349
+ [k: string]: unknown | undefined
14350
+ } | {
14351
+
14352
+ match: "objectKeys"
14353
+
14354
+ pathPattern?: string
14355
+ [k: string]: unknown | undefined
14356
+ } | {
14357
+
14358
+ match: "objectValues"
14359
+
14360
+ pathPattern?: string
14361
+ [k: string]: unknown | undefined
14362
+ })[]] | string)[]
14363
+
14364
+ attributes?: (string | [string, ({
14365
+
14366
+ match: "strings"
14367
+ [k: string]: unknown | undefined
14368
+ } | {
14369
+
14370
+ match: "objectKeys"
14371
+
14372
+ pathPattern?: string
14373
+ [k: string]: unknown | undefined
14374
+ } | {
14375
+
14376
+ match: "objectValues"
14377
+
14378
+ pathPattern?: string
14379
+ [k: string]: unknown | undefined
14380
+ })[]])[]
14381
+
14382
+ variables?: ([string, ({
14383
+
14384
+ match: "strings"
14385
+ [k: string]: unknown | undefined
14386
+ } | {
14387
+
14388
+ match: "objectKeys"
14389
+
14390
+ pathPattern?: string
14391
+ [k: string]: unknown | undefined
14392
+ } | {
14393
+
14394
+ match: "objectValues"
14395
+
14396
+ pathPattern?: string
14397
+ [k: string]: unknown | undefined
14398
+ })[]] | string)[]
14399
+
14400
+ tags?: ([string, ({
14401
+
14402
+ match: "strings"
14403
+ [k: string]: unknown | undefined
14404
+ } | {
14405
+
14406
+ match: "objectKeys"
14407
+
14408
+ pathPattern?: string
14409
+ [k: string]: unknown | undefined
14410
+ } | {
14411
+
14412
+ match: "objectValues"
14413
+
14414
+ pathPattern?: string
14415
+ [k: string]: unknown | undefined
14416
+ })[]] | string)[]
14417
+
14418
+ entryPoint?: string
14419
+
14420
+ tailwindConfig?: string
14421
+
14422
+ tsconfig?: string
14423
+
14424
+ classesPerLine?: number
14425
+
14426
+ group?: ("newLine" | "emptyLine" | "never")
14427
+
14428
+ indent?: ("tab" | number)
14429
+
14430
+ lineBreakStyle?: ("unix" | "windows")
14431
+
14432
+ preferSingleLine?: boolean
14433
+
14434
+ printWidth?: number
14260
14435
  }]
14261
- // ----- toml/array-element-newline -----
14262
- type TomlArrayElementNewline = []|[(_TomlArrayElementNewlineBasicConfig | {
14263
- ArrayExpression?: _TomlArrayElementNewlineBasicConfig
14264
- ArrayPattern?: _TomlArrayElementNewlineBasicConfig
14265
- TOMLArray?: _TomlArrayElementNewlineBasicConfig
14266
- })]
14267
- type _TomlArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
14268
- multiline?: boolean
14269
- minItems?: (number | null)
14270
- })
14271
- // ----- toml/comma-style -----
14272
- type TomlCommaStyle = []|[("first" | "last")]|[("first" | "last"), {
14273
- exceptions?: {
14274
- [k: string]: boolean | undefined
14275
- }
14436
+ // ----- tailwindcss/enforce-consistent-variable-syntax -----
14437
+ type TailwindcssEnforceConsistentVariableSyntax = []|[{
14438
+
14439
+ callees?: ([string, ({
14440
+
14441
+ match: "strings"
14442
+ [k: string]: unknown | undefined
14443
+ } | {
14444
+
14445
+ match: "objectKeys"
14446
+
14447
+ pathPattern?: string
14448
+ [k: string]: unknown | undefined
14449
+ } | {
14450
+
14451
+ match: "objectValues"
14452
+
14453
+ pathPattern?: string
14454
+ [k: string]: unknown | undefined
14455
+ })[]] | string)[]
14456
+
14457
+ attributes?: (string | [string, ({
14458
+
14459
+ match: "strings"
14460
+ [k: string]: unknown | undefined
14461
+ } | {
14462
+
14463
+ match: "objectKeys"
14464
+
14465
+ pathPattern?: string
14466
+ [k: string]: unknown | undefined
14467
+ } | {
14468
+
14469
+ match: "objectValues"
14470
+
14471
+ pathPattern?: string
14472
+ [k: string]: unknown | undefined
14473
+ })[]])[]
14474
+
14475
+ variables?: ([string, ({
14476
+
14477
+ match: "strings"
14478
+ [k: string]: unknown | undefined
14479
+ } | {
14480
+
14481
+ match: "objectKeys"
14482
+
14483
+ pathPattern?: string
14484
+ [k: string]: unknown | undefined
14485
+ } | {
14486
+
14487
+ match: "objectValues"
14488
+
14489
+ pathPattern?: string
14490
+ [k: string]: unknown | undefined
14491
+ })[]] | string)[]
14492
+
14493
+ tags?: ([string, ({
14494
+
14495
+ match: "strings"
14496
+ [k: string]: unknown | undefined
14497
+ } | {
14498
+
14499
+ match: "objectKeys"
14500
+
14501
+ pathPattern?: string
14502
+ [k: string]: unknown | undefined
14503
+ } | {
14504
+
14505
+ match: "objectValues"
14506
+
14507
+ pathPattern?: string
14508
+ [k: string]: unknown | undefined
14509
+ })[]] | string)[]
14510
+
14511
+ entryPoint?: string
14512
+
14513
+ tailwindConfig?: string
14514
+
14515
+ tsconfig?: string
14516
+
14517
+ syntax?: ("shorthand" | "variable")
14276
14518
  }]
14277
- // ----- toml/indent -----
14278
- type TomlIndent = []|[("tab" | number)]|[("tab" | number), {
14519
+ // ----- tailwindcss/enforce-shorthand-classes -----
14520
+ type TailwindcssEnforceShorthandClasses = []|[{
14521
+
14522
+ callees?: ([string, ({
14523
+
14524
+ match: "strings"
14525
+ [k: string]: unknown | undefined
14526
+ } | {
14527
+
14528
+ match: "objectKeys"
14529
+
14530
+ pathPattern?: string
14531
+ [k: string]: unknown | undefined
14532
+ } | {
14533
+
14534
+ match: "objectValues"
14535
+
14536
+ pathPattern?: string
14537
+ [k: string]: unknown | undefined
14538
+ })[]] | string)[]
14539
+
14540
+ attributes?: (string | [string, ({
14541
+
14542
+ match: "strings"
14543
+ [k: string]: unknown | undefined
14544
+ } | {
14545
+
14546
+ match: "objectKeys"
14547
+
14548
+ pathPattern?: string
14549
+ [k: string]: unknown | undefined
14550
+ } | {
14551
+
14552
+ match: "objectValues"
14553
+
14554
+ pathPattern?: string
14555
+ [k: string]: unknown | undefined
14556
+ })[]])[]
14557
+
14558
+ variables?: ([string, ({
14559
+
14560
+ match: "strings"
14561
+ [k: string]: unknown | undefined
14562
+ } | {
14563
+
14564
+ match: "objectKeys"
14565
+
14566
+ pathPattern?: string
14567
+ [k: string]: unknown | undefined
14568
+ } | {
14569
+
14570
+ match: "objectValues"
14571
+
14572
+ pathPattern?: string
14573
+ [k: string]: unknown | undefined
14574
+ })[]] | string)[]
14575
+
14576
+ tags?: ([string, ({
14577
+
14578
+ match: "strings"
14579
+ [k: string]: unknown | undefined
14580
+ } | {
14581
+
14582
+ match: "objectKeys"
14583
+
14584
+ pathPattern?: string
14585
+ [k: string]: unknown | undefined
14586
+ } | {
14587
+
14588
+ match: "objectValues"
14589
+
14590
+ pathPattern?: string
14591
+ [k: string]: unknown | undefined
14592
+ })[]] | string)[]
14593
+
14594
+ entryPoint?: string
14595
+
14596
+ tailwindConfig?: string
14597
+
14598
+ tsconfig?: string
14599
+ }]
14600
+ // ----- tailwindcss/no-conflicting-classes -----
14601
+ type TailwindcssNoConflictingClasses = []|[{
14602
+
14603
+ callees?: ([string, ({
14604
+
14605
+ match: "strings"
14606
+ [k: string]: unknown | undefined
14607
+ } | {
14608
+
14609
+ match: "objectKeys"
14610
+
14611
+ pathPattern?: string
14612
+ [k: string]: unknown | undefined
14613
+ } | {
14614
+
14615
+ match: "objectValues"
14616
+
14617
+ pathPattern?: string
14618
+ [k: string]: unknown | undefined
14619
+ })[]] | string)[]
14620
+
14621
+ attributes?: (string | [string, ({
14622
+
14623
+ match: "strings"
14624
+ [k: string]: unknown | undefined
14625
+ } | {
14626
+
14627
+ match: "objectKeys"
14628
+
14629
+ pathPattern?: string
14630
+ [k: string]: unknown | undefined
14631
+ } | {
14632
+
14633
+ match: "objectValues"
14634
+
14635
+ pathPattern?: string
14636
+ [k: string]: unknown | undefined
14637
+ })[]])[]
14638
+
14639
+ variables?: ([string, ({
14640
+
14641
+ match: "strings"
14642
+ [k: string]: unknown | undefined
14643
+ } | {
14644
+
14645
+ match: "objectKeys"
14646
+
14647
+ pathPattern?: string
14648
+ [k: string]: unknown | undefined
14649
+ } | {
14650
+
14651
+ match: "objectValues"
14652
+
14653
+ pathPattern?: string
14654
+ [k: string]: unknown | undefined
14655
+ })[]] | string)[]
14656
+
14657
+ tags?: ([string, ({
14658
+
14659
+ match: "strings"
14660
+ [k: string]: unknown | undefined
14661
+ } | {
14662
+
14663
+ match: "objectKeys"
14664
+
14665
+ pathPattern?: string
14666
+ [k: string]: unknown | undefined
14667
+ } | {
14668
+
14669
+ match: "objectValues"
14670
+
14671
+ pathPattern?: string
14672
+ [k: string]: unknown | undefined
14673
+ })[]] | string)[]
14674
+
14675
+ entryPoint?: string
14676
+
14677
+ tailwindConfig?: string
14678
+
14679
+ tsconfig?: string
14680
+ }]
14681
+ // ----- tailwindcss/no-deprecated-classes -----
14682
+ type TailwindcssNoDeprecatedClasses = []|[{
14683
+
14684
+ callees?: ([string, ({
14685
+
14686
+ match: "strings"
14687
+ [k: string]: unknown | undefined
14688
+ } | {
14689
+
14690
+ match: "objectKeys"
14691
+
14692
+ pathPattern?: string
14693
+ [k: string]: unknown | undefined
14694
+ } | {
14695
+
14696
+ match: "objectValues"
14697
+
14698
+ pathPattern?: string
14699
+ [k: string]: unknown | undefined
14700
+ })[]] | string)[]
14701
+
14702
+ attributes?: (string | [string, ({
14703
+
14704
+ match: "strings"
14705
+ [k: string]: unknown | undefined
14706
+ } | {
14707
+
14708
+ match: "objectKeys"
14709
+
14710
+ pathPattern?: string
14711
+ [k: string]: unknown | undefined
14712
+ } | {
14713
+
14714
+ match: "objectValues"
14715
+
14716
+ pathPattern?: string
14717
+ [k: string]: unknown | undefined
14718
+ })[]])[]
14719
+
14720
+ variables?: ([string, ({
14721
+
14722
+ match: "strings"
14723
+ [k: string]: unknown | undefined
14724
+ } | {
14725
+
14726
+ match: "objectKeys"
14727
+
14728
+ pathPattern?: string
14729
+ [k: string]: unknown | undefined
14730
+ } | {
14731
+
14732
+ match: "objectValues"
14733
+
14734
+ pathPattern?: string
14735
+ [k: string]: unknown | undefined
14736
+ })[]] | string)[]
14737
+
14738
+ tags?: ([string, ({
14739
+
14740
+ match: "strings"
14741
+ [k: string]: unknown | undefined
14742
+ } | {
14743
+
14744
+ match: "objectKeys"
14745
+
14746
+ pathPattern?: string
14747
+ [k: string]: unknown | undefined
14748
+ } | {
14749
+
14750
+ match: "objectValues"
14751
+
14752
+ pathPattern?: string
14753
+ [k: string]: unknown | undefined
14754
+ })[]] | string)[]
14755
+
14756
+ entryPoint?: string
14757
+
14758
+ tailwindConfig?: string
14759
+
14760
+ tsconfig?: string
14761
+ }]
14762
+ // ----- tailwindcss/no-duplicate-classes -----
14763
+ type TailwindcssNoDuplicateClasses = []|[{
14764
+
14765
+ callees?: ([string, ({
14766
+
14767
+ match: "strings"
14768
+ [k: string]: unknown | undefined
14769
+ } | {
14770
+
14771
+ match: "objectKeys"
14772
+
14773
+ pathPattern?: string
14774
+ [k: string]: unknown | undefined
14775
+ } | {
14776
+
14777
+ match: "objectValues"
14778
+
14779
+ pathPattern?: string
14780
+ [k: string]: unknown | undefined
14781
+ })[]] | string)[]
14782
+
14783
+ attributes?: (string | [string, ({
14784
+
14785
+ match: "strings"
14786
+ [k: string]: unknown | undefined
14787
+ } | {
14788
+
14789
+ match: "objectKeys"
14790
+
14791
+ pathPattern?: string
14792
+ [k: string]: unknown | undefined
14793
+ } | {
14794
+
14795
+ match: "objectValues"
14796
+
14797
+ pathPattern?: string
14798
+ [k: string]: unknown | undefined
14799
+ })[]])[]
14800
+
14801
+ variables?: ([string, ({
14802
+
14803
+ match: "strings"
14804
+ [k: string]: unknown | undefined
14805
+ } | {
14806
+
14807
+ match: "objectKeys"
14808
+
14809
+ pathPattern?: string
14810
+ [k: string]: unknown | undefined
14811
+ } | {
14812
+
14813
+ match: "objectValues"
14814
+
14815
+ pathPattern?: string
14816
+ [k: string]: unknown | undefined
14817
+ })[]] | string)[]
14818
+
14819
+ tags?: ([string, ({
14820
+
14821
+ match: "strings"
14822
+ [k: string]: unknown | undefined
14823
+ } | {
14824
+
14825
+ match: "objectKeys"
14826
+
14827
+ pathPattern?: string
14828
+ [k: string]: unknown | undefined
14829
+ } | {
14830
+
14831
+ match: "objectValues"
14832
+
14833
+ pathPattern?: string
14834
+ [k: string]: unknown | undefined
14835
+ })[]] | string)[]
14836
+
14837
+ entryPoint?: string
14838
+
14839
+ tailwindConfig?: string
14840
+
14841
+ tsconfig?: string
14842
+ }]
14843
+ // ----- tailwindcss/no-restricted-classes -----
14844
+ type TailwindcssNoRestrictedClasses = []|[{
14845
+
14846
+ callees?: ([string, ({
14847
+
14848
+ match: "strings"
14849
+ [k: string]: unknown | undefined
14850
+ } | {
14851
+
14852
+ match: "objectKeys"
14853
+
14854
+ pathPattern?: string
14855
+ [k: string]: unknown | undefined
14856
+ } | {
14857
+
14858
+ match: "objectValues"
14859
+
14860
+ pathPattern?: string
14861
+ [k: string]: unknown | undefined
14862
+ })[]] | string)[]
14863
+
14864
+ attributes?: (string | [string, ({
14865
+
14866
+ match: "strings"
14867
+ [k: string]: unknown | undefined
14868
+ } | {
14869
+
14870
+ match: "objectKeys"
14871
+
14872
+ pathPattern?: string
14873
+ [k: string]: unknown | undefined
14874
+ } | {
14875
+
14876
+ match: "objectValues"
14877
+
14878
+ pathPattern?: string
14879
+ [k: string]: unknown | undefined
14880
+ })[]])[]
14881
+
14882
+ variables?: ([string, ({
14883
+
14884
+ match: "strings"
14885
+ [k: string]: unknown | undefined
14886
+ } | {
14887
+
14888
+ match: "objectKeys"
14889
+
14890
+ pathPattern?: string
14891
+ [k: string]: unknown | undefined
14892
+ } | {
14893
+
14894
+ match: "objectValues"
14895
+
14896
+ pathPattern?: string
14897
+ [k: string]: unknown | undefined
14898
+ })[]] | string)[]
14899
+
14900
+ tags?: ([string, ({
14901
+
14902
+ match: "strings"
14903
+ [k: string]: unknown | undefined
14904
+ } | {
14905
+
14906
+ match: "objectKeys"
14907
+
14908
+ pathPattern?: string
14909
+ [k: string]: unknown | undefined
14910
+ } | {
14911
+
14912
+ match: "objectValues"
14913
+
14914
+ pathPattern?: string
14915
+ [k: string]: unknown | undefined
14916
+ })[]] | string)[]
14917
+
14918
+ entryPoint?: string
14919
+
14920
+ tailwindConfig?: string
14921
+
14922
+ tsconfig?: string
14923
+ restrict?: ({
14924
+
14925
+ fix?: string
14926
+
14927
+ message?: string
14928
+
14929
+ pattern: string
14930
+ [k: string]: unknown | undefined
14931
+ } | string)[]
14932
+ }]
14933
+ // ----- tailwindcss/no-unknown-classes -----
14934
+ type TailwindcssNoUnknownClasses = []|[{
14935
+
14936
+ callees?: ([string, ({
14937
+
14938
+ match: "strings"
14939
+ [k: string]: unknown | undefined
14940
+ } | {
14941
+
14942
+ match: "objectKeys"
14943
+
14944
+ pathPattern?: string
14945
+ [k: string]: unknown | undefined
14946
+ } | {
14947
+
14948
+ match: "objectValues"
14949
+
14950
+ pathPattern?: string
14951
+ [k: string]: unknown | undefined
14952
+ })[]] | string)[]
14953
+
14954
+ attributes?: (string | [string, ({
14955
+
14956
+ match: "strings"
14957
+ [k: string]: unknown | undefined
14958
+ } | {
14959
+
14960
+ match: "objectKeys"
14961
+
14962
+ pathPattern?: string
14963
+ [k: string]: unknown | undefined
14964
+ } | {
14965
+
14966
+ match: "objectValues"
14967
+
14968
+ pathPattern?: string
14969
+ [k: string]: unknown | undefined
14970
+ })[]])[]
14971
+
14972
+ variables?: ([string, ({
14973
+
14974
+ match: "strings"
14975
+ [k: string]: unknown | undefined
14976
+ } | {
14977
+
14978
+ match: "objectKeys"
14979
+
14980
+ pathPattern?: string
14981
+ [k: string]: unknown | undefined
14982
+ } | {
14983
+
14984
+ match: "objectValues"
14985
+
14986
+ pathPattern?: string
14987
+ [k: string]: unknown | undefined
14988
+ })[]] | string)[]
14989
+
14990
+ tags?: ([string, ({
14991
+
14992
+ match: "strings"
14993
+ [k: string]: unknown | undefined
14994
+ } | {
14995
+
14996
+ match: "objectKeys"
14997
+
14998
+ pathPattern?: string
14999
+ [k: string]: unknown | undefined
15000
+ } | {
15001
+
15002
+ match: "objectValues"
15003
+
15004
+ pathPattern?: string
15005
+ [k: string]: unknown | undefined
15006
+ })[]] | string)[]
15007
+
15008
+ entryPoint?: string
15009
+
15010
+ tailwindConfig?: string
15011
+
15012
+ tsconfig?: string
15013
+
15014
+ detectComponentClasses?: boolean
15015
+
15016
+ ignore?: string[]
15017
+ }]
15018
+ // ----- tailwindcss/no-unnecessary-whitespace -----
15019
+ type TailwindcssNoUnnecessaryWhitespace = []|[{
15020
+
15021
+ callees?: ([string, ({
15022
+
15023
+ match: "strings"
15024
+ [k: string]: unknown | undefined
15025
+ } | {
15026
+
15027
+ match: "objectKeys"
15028
+
15029
+ pathPattern?: string
15030
+ [k: string]: unknown | undefined
15031
+ } | {
15032
+
15033
+ match: "objectValues"
15034
+
15035
+ pathPattern?: string
15036
+ [k: string]: unknown | undefined
15037
+ })[]] | string)[]
15038
+
15039
+ attributes?: (string | [string, ({
15040
+
15041
+ match: "strings"
15042
+ [k: string]: unknown | undefined
15043
+ } | {
15044
+
15045
+ match: "objectKeys"
15046
+
15047
+ pathPattern?: string
15048
+ [k: string]: unknown | undefined
15049
+ } | {
15050
+
15051
+ match: "objectValues"
15052
+
15053
+ pathPattern?: string
15054
+ [k: string]: unknown | undefined
15055
+ })[]])[]
15056
+
15057
+ variables?: ([string, ({
15058
+
15059
+ match: "strings"
15060
+ [k: string]: unknown | undefined
15061
+ } | {
15062
+
15063
+ match: "objectKeys"
15064
+
15065
+ pathPattern?: string
15066
+ [k: string]: unknown | undefined
15067
+ } | {
15068
+
15069
+ match: "objectValues"
15070
+
15071
+ pathPattern?: string
15072
+ [k: string]: unknown | undefined
15073
+ })[]] | string)[]
15074
+
15075
+ tags?: ([string, ({
15076
+
15077
+ match: "strings"
15078
+ [k: string]: unknown | undefined
15079
+ } | {
15080
+
15081
+ match: "objectKeys"
15082
+
15083
+ pathPattern?: string
15084
+ [k: string]: unknown | undefined
15085
+ } | {
15086
+
15087
+ match: "objectValues"
15088
+
15089
+ pathPattern?: string
15090
+ [k: string]: unknown | undefined
15091
+ })[]] | string)[]
15092
+
15093
+ entryPoint?: string
15094
+
15095
+ tailwindConfig?: string
15096
+
15097
+ tsconfig?: string
15098
+
15099
+ allowMultiline?: boolean
15100
+ }]
15101
+ // ----- template-curly-spacing -----
15102
+ type TemplateCurlySpacing = []|[("always" | "never")]
15103
+ // ----- template-tag-spacing -----
15104
+ type TemplateTagSpacing = []|[("always" | "never")]
15105
+ // ----- toml/array-bracket-newline -----
15106
+ type TomlArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
15107
+ multiline?: boolean
15108
+ minItems?: (number | null)
15109
+ })]
15110
+ // ----- toml/array-bracket-spacing -----
15111
+ type TomlArrayBracketSpacing = []|[("always" | "never")]|[("always" | "never"), {
15112
+ singleValue?: boolean
15113
+ objectsInArrays?: boolean
15114
+ arraysInArrays?: boolean
15115
+ }]
15116
+ // ----- toml/array-element-newline -----
15117
+ type TomlArrayElementNewline = []|[(_TomlArrayElementNewlineBasicConfig | {
15118
+ ArrayExpression?: _TomlArrayElementNewlineBasicConfig
15119
+ ArrayPattern?: _TomlArrayElementNewlineBasicConfig
15120
+ TOMLArray?: _TomlArrayElementNewlineBasicConfig
15121
+ })]
15122
+ type _TomlArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
15123
+ multiline?: boolean
15124
+ minItems?: (number | null)
15125
+ })
15126
+ // ----- toml/comma-style -----
15127
+ type TomlCommaStyle = []|[("first" | "last")]|[("first" | "last"), {
15128
+ exceptions?: {
15129
+ [k: string]: boolean | undefined
15130
+ }
15131
+ }]
15132
+ // ----- toml/indent -----
15133
+ type TomlIndent = []|[("tab" | number)]|[("tab" | number), {
14279
15134
  subTables?: number
14280
15135
  keyValuePairs?: number
14281
15136
  }]
@@ -14928,6 +15783,16 @@ interface OptionsUnicorn extends OptionsOverrides {
14928
15783
  */
14929
15784
  allRecommended?: boolean;
14930
15785
  }
15786
+ interface OptionsTailwindCSS extends OptionsOverrides {
15787
+ /**
15788
+ * Path to the Tailwind CSS config file.
15789
+ */
15790
+ configPath?: string;
15791
+ /**
15792
+ * Path to the global CSS file.
15793
+ */
15794
+ cssGlobalPath?: string;
15795
+ }
14931
15796
  interface OptionsConfig {
14932
15797
  /**
14933
15798
  * Enable gitignore support.
@@ -15010,7 +15875,7 @@ interface OptionsConfig {
15010
15875
  *
15011
15876
  * @default auto-detect based on the dependencies
15012
15877
  */
15013
- tailwindcss?: boolean | OptionsOverrides;
15878
+ tailwindcss?: boolean | OptionsTailwindCSS;
15014
15879
  /**
15015
15880
  * Enable TanStack React Query support.
15016
15881
  *
@@ -15065,7 +15930,7 @@ declare function regexp(options?: OptionsOverrides): FlatConfigItem[];
15065
15930
  declare function sortPackageJson(): FlatConfigItem[];
15066
15931
  declare function sortTsconfig(): FlatConfigItem[];
15067
15932
 
15068
- declare function tailwindcss(options?: OptionsIsInEditor & OptionsOverrides): Promise<FlatConfigItem[]>;
15933
+ declare function tailwindcss(options?: OptionsIsInEditor & OptionsTailwindCSS): Promise<FlatConfigItem[]>;
15069
15934
 
15070
15935
  declare function toml(options?: OptionsOverrides & OptionsFiles & StyleOptions): Promise<FlatConfigItem[]>;
15071
15936
 
@@ -15116,6 +15981,7 @@ declare const GLOB_YAML = "**/*.y?(a)ml";
15116
15981
  declare const GLOB_TOML = "**/*.toml";
15117
15982
  declare const GLOB_HTML = "**/*.htm?(l)";
15118
15983
  declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
15984
+ declare const GLOB_TAILWINDCSS: string[];
15119
15985
  declare const GLOB_ALL_SRC: string[];
15120
15986
  declare const GLOB_NODE_MODULES: "**/node_modules";
15121
15987
  declare const GLOB_DIST: "**/dist";
@@ -15158,4 +16024,4 @@ declare function ensurePackages(packages: (string | undefined)[]): void;
15158
16024
  declare function composer(...items: Awaitable<FlatConfigItem[]>[]): Promise<FlatConfigItem[]>;
15159
16025
  declare function toArray<T>(value: T | T[]): T[];
15160
16026
 
15161
- export { type Awaitable, type FlatConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_NODE_MODULES, GLOB_POSTCSS, GLOB_REACT, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_YAML, type OptionsConfig, type OptionsFiles, type OptionsHasNextJs, type OptionsHasRegexp, type OptionsHasTanStackReactQuery, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsTypeScriptParserOptions, type OptionsTypescript, type OptionsUnicorn, type ResolvedOptions, type Rules, type StyleConfig, type StyleOptions, combine, command, comments, composer, deMorgan, ensurePackages, getOverrides, hasNextJs, hasReact, hasTailwind, hasTanStackReactQuery, hasTypeScript, ignores, imports, interopDefault, isInEditorEnv, javascript, jsdoc, jsonc, markdown, ncontiero, nextJs, node, parserPlain, perfectionist, prettier, promise, react, regexp, resolveSubOptions, restrictedSyntaxJs, sortPackageJson, sortTsconfig, tailwindcss, toArray, toml, typescript, unicorn, yml };
16027
+ export { type Awaitable, type FlatConfigItem, GLOB_ALL_SRC, GLOB_CSS, GLOB_DIST, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_LOCKFILE, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_NODE_MODULES, GLOB_POSTCSS, GLOB_REACT, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TAILWINDCSS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_YAML, type OptionsConfig, type OptionsFiles, type OptionsHasNextJs, type OptionsHasRegexp, type OptionsHasTanStackReactQuery, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsTailwindCSS, type OptionsTypeScriptParserOptions, type OptionsTypescript, type OptionsUnicorn, type ResolvedOptions, type Rules, type StyleConfig, type StyleOptions, combine, command, comments, composer, deMorgan, ensurePackages, getOverrides, hasNextJs, hasReact, hasTailwind, hasTanStackReactQuery, hasTypeScript, ignores, imports, interopDefault, isInEditorEnv, javascript, jsdoc, jsonc, markdown, ncontiero, nextJs, node, parserPlain, perfectionist, prettier, promise, react, regexp, resolveSubOptions, restrictedSyntaxJs, sortPackageJson, sortTsconfig, tailwindcss, toArray, toml, typescript, unicorn, yml };