@mouse_484/eslint-config 5.3.4 → 5.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mouse_484/eslint-config",
3
3
  "type": "module",
4
- "version": "5.3.4",
4
+ "version": "5.3.6",
5
5
  "author": "mouse_484",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/mouse484/config/tree/main/packages/eslint",
@@ -24,7 +24,7 @@
24
24
  "dependencies": {
25
25
  "@antfu/eslint-config": "^6.0.0",
26
26
  "eslint-plugin-better-tailwindcss": "^3.7.10",
27
- "package-manager-detector": "^1.4.1"
27
+ "package-manager-detector": "^1.5.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "eslint-typegen": "2.3.0"
@@ -61,7 +61,7 @@ export interface RuleOptions {
61
61
  */
62
62
  'tailwind/no-restricted-classes'?: Linter.RuleEntry<TailwindNoRestrictedClasses>
63
63
  /**
64
- * Disallow unnecessary whitespace in tailwind classes.
64
+ * Disallow unnecessary whitespace between Tailwind CSS classes.
65
65
  * @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-unnecessary-whitespace.md
66
66
  */
67
67
  'tailwind/no-unnecessary-whitespace'?: Linter.RuleEntry<TailwindNoUnnecessaryWhitespace>
@@ -146,6 +146,8 @@ type TailwindEnforceConsistentClassOrder = []|[{
146
146
 
147
147
  tailwindConfig?: string
148
148
 
149
+ tsconfig?: string
150
+
149
151
  order?: ("asc" | "desc" | "official" | "improved")
150
152
  }]
151
153
  // ----- tailwind/enforce-consistent-important-position -----
@@ -215,6 +217,8 @@ type TailwindEnforceConsistentImportantPosition = []|[{
215
217
 
216
218
  tailwindConfig?: string
217
219
 
220
+ tsconfig?: string
221
+
218
222
  position?: ("legacy" | "recommended")
219
223
  }]
220
224
  // ----- tailwind/enforce-consistent-line-wrapping -----
@@ -284,6 +288,8 @@ type TailwindEnforceConsistentLineWrapping = []|[{
284
288
 
285
289
  tailwindConfig?: string
286
290
 
291
+ tsconfig?: string
292
+
287
293
  classesPerLine?: number
288
294
 
289
295
  group?: ("emptyLine" | "never" | "newLine")
@@ -427,6 +433,8 @@ type TailwindEnforceShorthandClasses = []|[{
427
433
  entryPoint?: string
428
434
 
429
435
  tailwindConfig?: string
436
+
437
+ tsconfig?: string
430
438
  }]
431
439
  // ----- tailwind/multiline -----
432
440
  type TailwindMultiline = []|[{
@@ -495,6 +503,8 @@ type TailwindMultiline = []|[{
495
503
 
496
504
  tailwindConfig?: string
497
505
 
506
+ tsconfig?: string
507
+
498
508
  classesPerLine?: number
499
509
 
500
510
  group?: ("emptyLine" | "never" | "newLine")
@@ -573,6 +583,8 @@ type TailwindNoConflictingClasses = []|[{
573
583
  entryPoint?: string
574
584
 
575
585
  tailwindConfig?: string
586
+
587
+ tsconfig?: string
576
588
  }]
577
589
  // ----- tailwind/no-deprecated-classes -----
578
590
  type TailwindNoDeprecatedClasses = []|[{
@@ -640,6 +652,8 @@ type TailwindNoDeprecatedClasses = []|[{
640
652
  entryPoint?: string
641
653
 
642
654
  tailwindConfig?: string
655
+
656
+ tsconfig?: string
643
657
  }]
644
658
  // ----- tailwind/no-duplicate-classes -----
645
659
  type TailwindNoDuplicateClasses = []|[{
@@ -907,6 +921,8 @@ type TailwindNoUnregisteredClasses = []|[{
907
921
 
908
922
  tailwindConfig?: string
909
923
 
924
+ tsconfig?: string
925
+
910
926
  detectComponentClasses?: boolean
911
927
 
912
928
  ignore?: string[]
@@ -978,5 +994,7 @@ type TailwindSortClasses = []|[{
978
994
 
979
995
  tailwindConfig?: string
980
996
 
997
+ tsconfig?: string
998
+
981
999
  order?: ("asc" | "desc" | "official" | "improved")
982
1000
  }]
package/src/lib/type.d.ts CHANGED
@@ -12,12 +12,12 @@ export type Options = AntfuOptions & {
12
12
  }
13
13
 
14
14
  export declare function mouse(
15
- options: Options,
15
+ options?: Options,
16
16
  ...configs: AntfuUserConfigs
17
17
  ): ReturnType<typeof antfu>
18
18
  export default mouse
19
19
 
20
- // factoty
20
+ // factory
21
21
  type ConfigItem = TypedFlatConfigItem & { withOptions?: (keyof Options)[], name: string }
22
22
  type OnlyObject<T> = T extends object ? T : never
23
23
  export declare function createConfigs<T extends keyof Options = undefined>(parameters: {