@ncontiero/eslint-config 6.2.1 → 6.3.0-beta.10

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +1212 -125
  2. package/dist/index.js +1 -1
  3. package/package.json +26 -24
package/dist/index.d.ts CHANGED
@@ -3812,16 +3812,120 @@ interface RuleOptions {
3812
3812
  * @see https://eslint.org/docs/latest/rules/radix
3813
3813
  */
3814
3814
  'radix'?: Linter.RuleEntry<Radix>
3815
+ /**
3816
+ * Verifies that automatic effect dependencies are compiled if opted-in
3817
+ */
3818
+ 'react-hooks/automatic-effect-dependencies'?: Linter.RuleEntry<ReactHooksAutomaticEffectDependencies>
3819
+ /**
3820
+ * Validates against calling capitalized functions/methods instead of using JSX
3821
+ */
3822
+ 'react-hooks/capitalized-calls'?: Linter.RuleEntry<ReactHooksCapitalizedCalls>
3823
+ /**
3824
+ * Validates against higher order functions defining nested components or hooks. Components and hooks should be defined at the module level
3825
+ */
3826
+ 'react-hooks/component-hook-factories'?: Linter.RuleEntry<ReactHooksComponentHookFactories>
3827
+ /**
3828
+ * Validates the compiler configuration options
3829
+ */
3830
+ 'react-hooks/config'?: Linter.RuleEntry<ReactHooksConfig>
3831
+ /**
3832
+ * Validates usage of error boundaries instead of try/catch for errors in child components
3833
+ */
3834
+ 'react-hooks/error-boundaries'?: Linter.RuleEntry<ReactHooksErrorBoundaries>
3815
3835
  /**
3816
3836
  * verifies the list of dependencies for Hooks like useEffect and similar
3817
3837
  * @see https://github.com/facebook/react/issues/14920
3818
3838
  */
3819
3839
  'react-hooks/exhaustive-deps'?: Linter.RuleEntry<ReactHooksExhaustiveDeps>
3840
+ /**
3841
+ * Validates usage of fbt
3842
+ */
3843
+ 'react-hooks/fbt'?: Linter.RuleEntry<ReactHooksFbt>
3844
+ /**
3845
+ * Validates usage of `fire`
3846
+ */
3847
+ 'react-hooks/fire'?: Linter.RuleEntry<ReactHooksFire>
3848
+ /**
3849
+ * Validates configuration of [gating mode](https://react.dev/reference/react-compiler/gating)
3850
+ */
3851
+ 'react-hooks/gating'?: Linter.RuleEntry<ReactHooksGating>
3852
+ /**
3853
+ * Validates against assignment/mutation of globals during render, part of ensuring that [side effects must render outside of render](https://react.dev/reference/rules/components-and-hooks-must-be-pure#side-effects-must-run-outside-of-render)
3854
+ */
3855
+ 'react-hooks/globals'?: Linter.RuleEntry<ReactHooksGlobals>
3856
+ /**
3857
+ * Validates the rules of hooks
3858
+ */
3859
+ 'react-hooks/hooks'?: Linter.RuleEntry<ReactHooksHooks>
3860
+ /**
3861
+ * Validates against mutating props, state, and other values that [are immutable](https://react.dev/reference/rules/components-and-hooks-must-be-pure#props-and-state-are-immutable)
3862
+ */
3863
+ 'react-hooks/immutability'?: Linter.RuleEntry<ReactHooksImmutability>
3864
+ /**
3865
+ * Validates against usage of libraries which are incompatible with memoization (manual or automatic)
3866
+ */
3867
+ 'react-hooks/incompatible-library'?: Linter.RuleEntry<ReactHooksIncompatibleLibrary>
3868
+ /**
3869
+ * Internal invariants
3870
+ */
3871
+ 'react-hooks/invariant'?: Linter.RuleEntry<ReactHooksInvariant>
3872
+ /**
3873
+ * Validates that effect dependencies are memoized
3874
+ */
3875
+ 'react-hooks/memoized-effect-dependencies'?: Linter.RuleEntry<ReactHooksMemoizedEffectDependencies>
3876
+ /**
3877
+ * Validates against deriving values from state in an effect
3878
+ */
3879
+ 'react-hooks/no-deriving-state-in-effects'?: Linter.RuleEntry<ReactHooksNoDerivingStateInEffects>
3880
+ /**
3881
+ * Validates that existing manual memoized is preserved by the compiler. React Compiler will only compile components and hooks if its inference [matches or exceeds the existing manual memoization](https://react.dev/learn/react-compiler/introduction#what-should-i-do-about-usememo-usecallback-and-reactmemo)
3882
+ */
3883
+ 'react-hooks/preserve-manual-memoization'?: Linter.RuleEntry<ReactHooksPreserveManualMemoization>
3884
+ /**
3885
+ * Validates that [components/hooks are pure](https://react.dev/reference/rules/components-and-hooks-must-be-pure) by checking that they do not call known-impure functions
3886
+ */
3887
+ 'react-hooks/purity'?: Linter.RuleEntry<ReactHooksPurity>
3888
+ /**
3889
+ * Validates correct usage of refs, not reading/writing during render. See the "pitfalls" section in [`useRef()` usage](https://react.dev/reference/react/useRef#usage)
3890
+ */
3891
+ 'react-hooks/refs'?: Linter.RuleEntry<ReactHooksRefs>
3892
+ /**
3893
+ * Validates against suppression of other rules
3894
+ */
3895
+ 'react-hooks/rule-suppression'?: Linter.RuleEntry<ReactHooksRuleSuppression>
3820
3896
  /**
3821
3897
  * enforces the Rules of Hooks
3822
- * @see https://reactjs.org/docs/hooks-rules.html
3898
+ * @see https://react.dev/reference/rules/rules-of-hooks
3899
+ */
3900
+ 'react-hooks/rules-of-hooks'?: Linter.RuleEntry<ReactHooksRulesOfHooks>
3901
+ /**
3902
+ * Validates against calling setState synchronously in an effect, which can lead to re-renders that degrade performance
3903
+ */
3904
+ 'react-hooks/set-state-in-effect'?: Linter.RuleEntry<ReactHooksSetStateInEffect>
3905
+ /**
3906
+ * Validates against setting state during render, which can trigger additional renders and potential infinite render loops
3907
+ */
3908
+ 'react-hooks/set-state-in-render'?: Linter.RuleEntry<ReactHooksSetStateInRender>
3909
+ /**
3910
+ * Validates that components are static, not recreated every render. Components that are recreated dynamically can reset state and trigger excessive re-rendering
3911
+ */
3912
+ 'react-hooks/static-components'?: Linter.RuleEntry<ReactHooksStaticComponents>
3913
+ /**
3914
+ * Validates against invalid syntax
3915
+ */
3916
+ 'react-hooks/syntax'?: Linter.RuleEntry<ReactHooksSyntax>
3917
+ /**
3918
+ * Unimplemented features
3823
3919
  */
3824
- 'react-hooks/rules-of-hooks'?: Linter.RuleEntry<[]>
3920
+ 'react-hooks/todo'?: Linter.RuleEntry<ReactHooksTodo>
3921
+ /**
3922
+ * Validates against syntax that we do not plan to support in React Compiler
3923
+ */
3924
+ 'react-hooks/unsupported-syntax'?: Linter.RuleEntry<ReactHooksUnsupportedSyntax>
3925
+ /**
3926
+ * Validates usage of the useMemo() hook against common mistakes. See [`useMemo()` docs](https://react.dev/reference/react/useMemo) for more information.
3927
+ */
3928
+ 'react-hooks/use-memo'?: Linter.RuleEntry<ReactHooksUseMemo>
3825
3929
  'react-refresh/only-export-components'?: Linter.RuleEntry<ReactRefreshOnlyExportComponents>
3826
3930
  /**
3827
3931
  * Enforces consistent naming for boolean props
@@ -4862,45 +4966,60 @@ interface RuleOptions {
4862
4966
  */
4863
4967
  'symbol-description'?: Linter.RuleEntry<[]>
4864
4968
  /**
4865
- * Enforce a consistent and logical order of the Tailwind CSS classnames
4866
- * @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
+ */
4972
+ 'tailwindcss/enforce-consistent-class-order'?: Linter.RuleEntry<TailwindcssEnforceConsistentClassOrder>
4973
+ /**
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
+ */
4977
+ 'tailwindcss/enforce-consistent-important-position'?: Linter.RuleEntry<TailwindcssEnforceConsistentImportantPosition>
4978
+ /**
4979
+ * Enforce consistent line wrapping for tailwind classes.
4980
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/multiline.md
4867
4981
  */
4868
- 'tailwindcss/classnames-order'?: Linter.RuleEntry<TailwindcssClassnamesOrder>
4982
+ 'tailwindcss/enforce-consistent-line-wrapping'?: Linter.RuleEntry<TailwindcssEnforceConsistentLineWrapping>
4869
4983
  /**
4870
- * Warns about dash prefixed classnames using arbitrary values
4871
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/enforces-negative-arbitrary-values.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
4872
4986
  */
4873
- 'tailwindcss/enforces-negative-arbitrary-values'?: Linter.RuleEntry<TailwindcssEnforcesNegativeArbitraryValues>
4987
+ 'tailwindcss/enforce-consistent-variable-syntax'?: Linter.RuleEntry<TailwindcssEnforceConsistentVariableSyntax>
4874
4988
  /**
4875
- * Enforces the usage of shorthand Tailwind CSS classnames
4876
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/enforces-shorthand.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
4877
4991
  */
4878
- 'tailwindcss/enforces-shorthand'?: Linter.RuleEntry<TailwindcssEnforcesShorthand>
4992
+ 'tailwindcss/enforce-shorthand-classes'?: Linter.RuleEntry<TailwindcssEnforceShorthandClasses>
4879
4993
  /**
4880
- * Detect obsolete classnames when upgrading to Tailwind CSS v3
4881
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/migration-from-tailwind-2.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
4882
4996
  */
4883
- 'tailwindcss/migration-from-tailwind-2'?: Linter.RuleEntry<TailwindcssMigrationFromTailwind2>
4997
+ 'tailwindcss/no-conflicting-classes'?: Linter.RuleEntry<TailwindcssNoConflictingClasses>
4884
4998
  /**
4885
- * Forbid using arbitrary values in classnames
4886
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/no-arbitrary-value.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
4887
5001
  */
4888
- 'tailwindcss/no-arbitrary-value'?: Linter.RuleEntry<TailwindcssNoArbitraryValue>
5002
+ 'tailwindcss/no-deprecated-classes'?: Linter.RuleEntry<TailwindcssNoDeprecatedClasses>
4889
5003
  /**
4890
- * Avoid contradicting Tailwind CSS classnames (e.g. "w-3 w-5")
4891
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/no-contradicting-classname.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
4892
5006
  */
4893
- 'tailwindcss/no-contradicting-classname'?: Linter.RuleEntry<TailwindcssNoContradictingClassname>
5007
+ 'tailwindcss/no-duplicate-classes'?: Linter.RuleEntry<TailwindcssNoDuplicateClasses>
4894
5008
  /**
4895
- * Detect classnames which do not belong to Tailwind CSS
4896
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/no-custom-classname.md
5009
+ * Disallow restricted classes.
5010
+ * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-restricted-classes.md
4897
5011
  */
4898
- 'tailwindcss/no-custom-classname'?: Linter.RuleEntry<TailwindcssNoCustomClassname>
5012
+ 'tailwindcss/no-restricted-classes'?: Linter.RuleEntry<TailwindcssNoRestrictedClasses>
4899
5013
  /**
4900
- * Forbid using arbitrary values in classnames when an equivalent preset exists
4901
- * @see https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/master/docs/rules/no-unnecessary-arbitrary-value.md
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
4902
5016
  */
4903
- 'tailwindcss/no-unnecessary-arbitrary-value'?: Linter.RuleEntry<TailwindcssNoUnnecessaryArbitraryValue>
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>
4904
5023
  /**
4905
5024
  * Require or disallow spacing around embedded expressions of template strings
4906
5025
  * @see https://eslint.org/docs/latest/rules/template-curly-spacing
@@ -9715,12 +9834,16 @@ type NoRestrictedImports = ((string | {
9715
9834
  message?: string
9716
9835
  importNames?: string[]
9717
9836
  allowImportNames?: string[]
9837
+
9838
+ allowTypeImports?: boolean
9718
9839
  })[] | []|[{
9719
9840
  paths?: (string | {
9720
9841
  name: string
9721
9842
  message?: string
9722
9843
  importNames?: string[]
9723
9844
  allowImportNames?: string[]
9845
+
9846
+ allowTypeImports?: boolean
9724
9847
  })[]
9725
9848
  patterns?: (string[] | ({
9726
9849
  [k: string]: unknown | undefined
@@ -13249,10 +13372,120 @@ type Quotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "b
13249
13372
  })]
13250
13373
  // ----- radix -----
13251
13374
  type Radix = []|[("always" | "as-needed")]
13375
+ // ----- react-hooks/automatic-effect-dependencies -----
13376
+ type ReactHooksAutomaticEffectDependencies = []|[{
13377
+ [k: string]: unknown | undefined
13378
+ }]
13379
+ // ----- react-hooks/capitalized-calls -----
13380
+ type ReactHooksCapitalizedCalls = []|[{
13381
+ [k: string]: unknown | undefined
13382
+ }]
13383
+ // ----- react-hooks/component-hook-factories -----
13384
+ type ReactHooksComponentHookFactories = []|[{
13385
+ [k: string]: unknown | undefined
13386
+ }]
13387
+ // ----- react-hooks/config -----
13388
+ type ReactHooksConfig = []|[{
13389
+ [k: string]: unknown | undefined
13390
+ }]
13391
+ // ----- react-hooks/error-boundaries -----
13392
+ type ReactHooksErrorBoundaries = []|[{
13393
+ [k: string]: unknown | undefined
13394
+ }]
13252
13395
  // ----- react-hooks/exhaustive-deps -----
13253
13396
  type ReactHooksExhaustiveDeps = []|[{
13254
13397
  additionalHooks?: string
13255
13398
  enableDangerousAutofixThisMayCauseInfiniteLoops?: boolean
13399
+ experimental_autoDependenciesHooks?: string[]
13400
+ requireExplicitEffectDeps?: boolean
13401
+ }]
13402
+ // ----- react-hooks/fbt -----
13403
+ type ReactHooksFbt = []|[{
13404
+ [k: string]: unknown | undefined
13405
+ }]
13406
+ // ----- react-hooks/fire -----
13407
+ type ReactHooksFire = []|[{
13408
+ [k: string]: unknown | undefined
13409
+ }]
13410
+ // ----- react-hooks/gating -----
13411
+ type ReactHooksGating = []|[{
13412
+ [k: string]: unknown | undefined
13413
+ }]
13414
+ // ----- react-hooks/globals -----
13415
+ type ReactHooksGlobals = []|[{
13416
+ [k: string]: unknown | undefined
13417
+ }]
13418
+ // ----- react-hooks/hooks -----
13419
+ type ReactHooksHooks = []|[{
13420
+ [k: string]: unknown | undefined
13421
+ }]
13422
+ // ----- react-hooks/immutability -----
13423
+ type ReactHooksImmutability = []|[{
13424
+ [k: string]: unknown | undefined
13425
+ }]
13426
+ // ----- react-hooks/incompatible-library -----
13427
+ type ReactHooksIncompatibleLibrary = []|[{
13428
+ [k: string]: unknown | undefined
13429
+ }]
13430
+ // ----- react-hooks/invariant -----
13431
+ type ReactHooksInvariant = []|[{
13432
+ [k: string]: unknown | undefined
13433
+ }]
13434
+ // ----- react-hooks/memoized-effect-dependencies -----
13435
+ type ReactHooksMemoizedEffectDependencies = []|[{
13436
+ [k: string]: unknown | undefined
13437
+ }]
13438
+ // ----- react-hooks/no-deriving-state-in-effects -----
13439
+ type ReactHooksNoDerivingStateInEffects = []|[{
13440
+ [k: string]: unknown | undefined
13441
+ }]
13442
+ // ----- react-hooks/preserve-manual-memoization -----
13443
+ type ReactHooksPreserveManualMemoization = []|[{
13444
+ [k: string]: unknown | undefined
13445
+ }]
13446
+ // ----- react-hooks/purity -----
13447
+ type ReactHooksPurity = []|[{
13448
+ [k: string]: unknown | undefined
13449
+ }]
13450
+ // ----- react-hooks/refs -----
13451
+ type ReactHooksRefs = []|[{
13452
+ [k: string]: unknown | undefined
13453
+ }]
13454
+ // ----- react-hooks/rule-suppression -----
13455
+ type ReactHooksRuleSuppression = []|[{
13456
+ [k: string]: unknown | undefined
13457
+ }]
13458
+ // ----- react-hooks/rules-of-hooks -----
13459
+ type ReactHooksRulesOfHooks = []|[{
13460
+ additionalHooks?: string
13461
+ }]
13462
+ // ----- react-hooks/set-state-in-effect -----
13463
+ type ReactHooksSetStateInEffect = []|[{
13464
+ [k: string]: unknown | undefined
13465
+ }]
13466
+ // ----- react-hooks/set-state-in-render -----
13467
+ type ReactHooksSetStateInRender = []|[{
13468
+ [k: string]: unknown | undefined
13469
+ }]
13470
+ // ----- react-hooks/static-components -----
13471
+ type ReactHooksStaticComponents = []|[{
13472
+ [k: string]: unknown | undefined
13473
+ }]
13474
+ // ----- react-hooks/syntax -----
13475
+ type ReactHooksSyntax = []|[{
13476
+ [k: string]: unknown | undefined
13477
+ }]
13478
+ // ----- react-hooks/todo -----
13479
+ type ReactHooksTodo = []|[{
13480
+ [k: string]: unknown | undefined
13481
+ }]
13482
+ // ----- react-hooks/unsupported-syntax -----
13483
+ type ReactHooksUnsupportedSyntax = []|[{
13484
+ [k: string]: unknown | undefined
13485
+ }]
13486
+ // ----- react-hooks/use-memo -----
13487
+ type ReactHooksUseMemo = []|[{
13488
+ [k: string]: unknown | undefined
13256
13489
  }]
13257
13490
  // ----- react-refresh/only-export-components -----
13258
13491
  type ReactRefreshOnlyExportComponents = []|[{
@@ -13941,112 +14174,952 @@ type SwitchColonSpacing = []|[{
13941
14174
  before?: boolean
13942
14175
  after?: boolean
13943
14176
  }]
13944
- // ----- tailwindcss/classnames-order -----
13945
- type TailwindcssClassnamesOrder = []|[{
13946
- callees?: string[]
13947
- ignoredKeys?: string[]
13948
- config?: (string | {
14177
+ // ----- tailwindcss/enforce-consistent-class-order -----
14178
+ type TailwindcssEnforceConsistentClassOrder = []|[{
14179
+
14180
+ callees?: ([string, ({
14181
+
14182
+ match: "strings"
13949
14183
  [k: string]: unknown | undefined
13950
- })
13951
- removeDuplicates?: boolean
13952
- tags?: string[]
13953
- [k: string]: unknown | undefined
13954
- }]
13955
- // ----- tailwindcss/enforces-negative-arbitrary-values -----
13956
- type TailwindcssEnforcesNegativeArbitraryValues = []|[{
13957
- callees?: string[]
13958
- ignoredKeys?: string[]
13959
- config?: (string | {
14184
+ } | {
14185
+
14186
+ match: "objectKeys"
14187
+
14188
+ pathPattern?: string
13960
14189
  [k: string]: unknown | undefined
13961
- })
13962
- tags?: string[]
13963
- [k: string]: unknown | undefined
13964
- }]
13965
- // ----- tailwindcss/enforces-shorthand -----
13966
- type TailwindcssEnforcesShorthand = []|[{
13967
- callees?: string[]
13968
- ignoredKeys?: string[]
13969
- config?: (string | {
14190
+ } | {
14191
+
14192
+ match: "objectValues"
14193
+
14194
+ pathPattern?: string
13970
14195
  [k: string]: unknown | undefined
13971
- })
13972
- tags?: string[]
13973
- [k: string]: unknown | undefined
13974
- }]
13975
- // ----- tailwindcss/migration-from-tailwind-2 -----
13976
- type TailwindcssMigrationFromTailwind2 = []|[{
13977
- callees?: string[]
13978
- ignoredKeys?: string[]
13979
- config?: (string | {
14196
+ })[]] | string)[]
14197
+
14198
+ attributes?: (string | [string, ({
14199
+
14200
+ match: "strings"
13980
14201
  [k: string]: unknown | undefined
13981
- })
13982
- tags?: string[]
13983
- [k: string]: unknown | undefined
13984
- }]
13985
- // ----- tailwindcss/no-arbitrary-value -----
13986
- type TailwindcssNoArbitraryValue = []|[{
13987
- callees?: string[]
13988
- ignoredKeys?: string[]
13989
- config?: (string | {
14202
+ } | {
14203
+
14204
+ match: "objectKeys"
14205
+
14206
+ pathPattern?: string
13990
14207
  [k: string]: unknown | undefined
13991
- })
13992
- tags?: string[]
13993
- [k: string]: unknown | undefined
13994
- }]
13995
- // ----- tailwindcss/no-contradicting-classname -----
13996
- type TailwindcssNoContradictingClassname = []|[{
13997
- callees?: string[]
13998
- ignoredKeys?: string[]
13999
- config?: (string | {
14208
+ } | {
14209
+
14210
+ match: "objectValues"
14211
+
14212
+ pathPattern?: string
14000
14213
  [k: string]: unknown | undefined
14001
- })
14002
- tags?: string[]
14003
- [k: string]: unknown | undefined
14004
- }]
14005
- // ----- tailwindcss/no-custom-classname -----
14006
- type TailwindcssNoCustomClassname = []|[{
14007
- callees?: string[]
14008
- ignoredKeys?: string[]
14009
- config?: (string | {
14214
+ })[]])[]
14215
+
14216
+ variables?: ([string, ({
14217
+
14218
+ match: "strings"
14010
14219
  [k: string]: unknown | undefined
14011
- })
14012
- cssFiles?: string[]
14013
- cssFilesRefreshRate?: number
14014
- tags?: string[]
14015
- whitelist?: string[]
14016
- [k: string]: unknown | undefined
14017
- }]
14018
- // ----- tailwindcss/no-unnecessary-arbitrary-value -----
14019
- type TailwindcssNoUnnecessaryArbitraryValue = []|[{
14020
- callees?: string[]
14021
- ignoredKeys?: string[]
14022
- config?: (string | {
14220
+ } | {
14221
+
14222
+ match: "objectKeys"
14223
+
14224
+ pathPattern?: string
14023
14225
  [k: string]: unknown | undefined
14024
- })
14025
- tags?: string[]
14026
- [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")
14027
14259
  }]
14028
- // ----- template-curly-spacing -----
14029
- type TemplateCurlySpacing = []|[("always" | "never")]
14030
- // ----- template-tag-spacing -----
14031
- type TemplateTagSpacing = []|[("always" | "never")]
14032
- // ----- toml/array-bracket-newline -----
14033
- type TomlArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
14034
- multiline?: boolean
14035
- minItems?: (number | null)
14036
- })]
14037
- // ----- toml/array-bracket-spacing -----
14038
- type TomlArrayBracketSpacing = []|[("always" | "never")]|[("always" | "never"), {
14039
- singleValue?: boolean
14040
- objectsInArrays?: boolean
14041
- arraysInArrays?: boolean
14260
+ // ----- tailwindcss/enforce-consistent-important-position -----
14261
+ type TailwindcssEnforceConsistentImportantPosition = []|[{
14262
+
14263
+ callees?: ([string, ({
14264
+
14265
+ match: "strings"
14266
+ [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")
14042
14342
  }]
14043
- // ----- toml/array-element-newline -----
14044
- type TomlArrayElementNewline = []|[(_TomlArrayElementNewlineBasicConfig | {
14045
- ArrayExpression?: _TomlArrayElementNewlineBasicConfig
14046
- ArrayPattern?: _TomlArrayElementNewlineBasicConfig
14047
- TOMLArray?: _TomlArrayElementNewlineBasicConfig
14048
- })]
14049
- type _TomlArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
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
14435
+ }]
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")
14518
+ }]
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") | {
14050
15123
  multiline?: boolean
14051
15124
  minItems?: (number | null)
14052
15125
  })
@@ -14710,6 +15783,20 @@ interface OptionsUnicorn extends OptionsOverrides {
14710
15783
  */
14711
15784
  allRecommended?: boolean;
14712
15785
  }
15786
+ interface OptionsTailwindCSS extends OptionsOverrides {
15787
+ /**
15788
+ * Path to the Tailwind CSS config file.
15789
+ *
15790
+ * @default "tailwind.config.ts"
15791
+ */
15792
+ configPath?: string;
15793
+ /**
15794
+ * Path to the global CSS file.
15795
+ *
15796
+ * @default "src/app/globals.css"
15797
+ */
15798
+ cssGlobalPath?: string;
15799
+ }
14713
15800
  interface OptionsConfig {
14714
15801
  /**
14715
15802
  * Enable gitignore support.
@@ -14792,7 +15879,7 @@ interface OptionsConfig {
14792
15879
  *
14793
15880
  * @default auto-detect based on the dependencies
14794
15881
  */
14795
- tailwindcss?: boolean | OptionsOverrides;
15882
+ tailwindcss?: boolean | OptionsTailwindCSS;
14796
15883
  /**
14797
15884
  * Enable TanStack React Query support.
14798
15885
  *
@@ -14847,7 +15934,7 @@ declare function regexp(options?: OptionsOverrides): FlatConfigItem[];
14847
15934
  declare function sortPackageJson(): FlatConfigItem[];
14848
15935
  declare function sortTsconfig(): FlatConfigItem[];
14849
15936
 
14850
- declare function tailwindcss(options?: OptionsIsInEditor & OptionsOverrides): Promise<FlatConfigItem[]>;
15937
+ declare function tailwindcss(options?: OptionsIsInEditor & OptionsTailwindCSS): Promise<FlatConfigItem[]>;
14851
15938
 
14852
15939
  declare function toml(options?: OptionsOverrides & OptionsFiles & StyleOptions): Promise<FlatConfigItem[]>;
14853
15940
 
@@ -14940,4 +16027,4 @@ declare function ensurePackages(packages: (string | undefined)[]): void;
14940
16027
  declare function composer(...items: Awaitable<FlatConfigItem[]>[]): Promise<FlatConfigItem[]>;
14941
16028
  declare function toArray<T>(value: T | T[]): T[];
14942
16029
 
14943
- 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 };
16030
+ 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 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 };