@mouse_484/eslint-config 5.10.9 → 5.10.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.
- package/package.json +1 -1
- package/scripts/typegen.js +1 -1
- package/src/configs/tailwind.js +4 -7
- package/src/lib/rules.gen.d.ts +36 -36
package/package.json
CHANGED
package/scripts/typegen.js
CHANGED
|
@@ -3,7 +3,7 @@ import eslintPluginBetterTailwindcss from 'eslint-plugin-better-tailwindcss'
|
|
|
3
3
|
import { pluginsToRulesDTS } from 'eslint-typegen/core'
|
|
4
4
|
|
|
5
5
|
const dts = await pluginsToRulesDTS({
|
|
6
|
-
|
|
6
|
+
'better-tailwindcss': eslintPluginBetterTailwindcss,
|
|
7
7
|
})
|
|
8
8
|
|
|
9
9
|
await writeFile('./src/lib/rules.gen.d.ts', dts)
|
package/src/configs/tailwind.js
CHANGED
|
@@ -10,14 +10,11 @@ export default createConfigs({
|
|
|
10
10
|
|
|
11
11
|
return {
|
|
12
12
|
name: 'tailwind',
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
extends: [
|
|
14
|
+
eslintPluginBetterTailwindcss.configs.recommended,
|
|
15
|
+
],
|
|
16
16
|
rules: {
|
|
17
|
-
|
|
18
|
-
...eslintPluginBetterTailwindcss.configs.correctness.rules,
|
|
19
|
-
...eslintPluginBetterTailwindcss.configs.stylistic.rules,
|
|
20
|
-
'tailwind/no-unknown-classes': ['error', {
|
|
17
|
+
'better-tailwindcss/no-unknown-classes': ['error', {
|
|
21
18
|
detectComponentClasses: true,
|
|
22
19
|
}],
|
|
23
20
|
},
|
package/src/lib/rules.gen.d.ts
CHANGED
|
@@ -13,67 +13,67 @@ export interface RuleOptions {
|
|
|
13
13
|
* Enforce canonical class names.
|
|
14
14
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-canonical-classes.md
|
|
15
15
|
*/
|
|
16
|
-
'
|
|
16
|
+
'better-tailwindcss/enforce-canonical-classes'?: Linter.RuleEntry<BetterTailwindcssEnforceCanonicalClasses>
|
|
17
17
|
/**
|
|
18
18
|
* Enforce a consistent order for tailwind classes.
|
|
19
19
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-class-order.md
|
|
20
20
|
*/
|
|
21
|
-
'
|
|
21
|
+
'better-tailwindcss/enforce-consistent-class-order'?: Linter.RuleEntry<BetterTailwindcssEnforceConsistentClassOrder>
|
|
22
22
|
/**
|
|
23
23
|
* Enforce consistent important position for classes.
|
|
24
24
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-important-position.md
|
|
25
25
|
*/
|
|
26
|
-
'
|
|
26
|
+
'better-tailwindcss/enforce-consistent-important-position'?: Linter.RuleEntry<BetterTailwindcssEnforceConsistentImportantPosition>
|
|
27
27
|
/**
|
|
28
28
|
* Enforce consistent line wrapping for tailwind classes.
|
|
29
29
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-line-wrapping.md
|
|
30
30
|
*/
|
|
31
|
-
'
|
|
31
|
+
'better-tailwindcss/enforce-consistent-line-wrapping'?: Linter.RuleEntry<BetterTailwindcssEnforceConsistentLineWrapping>
|
|
32
32
|
/**
|
|
33
33
|
* Enforce consistent syntax for css variables.
|
|
34
34
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-consistent-variable-syntax.md
|
|
35
35
|
*/
|
|
36
|
-
'
|
|
36
|
+
'better-tailwindcss/enforce-consistent-variable-syntax'?: Linter.RuleEntry<BetterTailwindcssEnforceConsistentVariableSyntax>
|
|
37
37
|
/**
|
|
38
38
|
* Enforce shorthand class names instead of longhand class names.
|
|
39
39
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/enforce-shorthand-classes.md
|
|
40
40
|
*/
|
|
41
|
-
'
|
|
41
|
+
'better-tailwindcss/enforce-shorthand-classes'?: Linter.RuleEntry<BetterTailwindcssEnforceShorthandClasses>
|
|
42
42
|
/**
|
|
43
43
|
* Disallow classes that produce conflicting styles.
|
|
44
44
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-conflicting-classes.md
|
|
45
45
|
*/
|
|
46
|
-
'
|
|
46
|
+
'better-tailwindcss/no-conflicting-classes'?: Linter.RuleEntry<BetterTailwindcssNoConflictingClasses>
|
|
47
47
|
/**
|
|
48
48
|
* Disallow the use of deprecated Tailwind CSS classes.
|
|
49
49
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-deprecated-classes.md
|
|
50
50
|
*/
|
|
51
|
-
'
|
|
51
|
+
'better-tailwindcss/no-deprecated-classes'?: Linter.RuleEntry<BetterTailwindcssNoDeprecatedClasses>
|
|
52
52
|
/**
|
|
53
53
|
* Disallow duplicate class names in tailwind classes.
|
|
54
54
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-duplicate-classes.md
|
|
55
55
|
*/
|
|
56
|
-
'
|
|
56
|
+
'better-tailwindcss/no-duplicate-classes'?: Linter.RuleEntry<BetterTailwindcssNoDuplicateClasses>
|
|
57
57
|
/**
|
|
58
58
|
* Disallow restricted classes.
|
|
59
59
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-restricted-classes.md
|
|
60
60
|
*/
|
|
61
|
-
'
|
|
61
|
+
'better-tailwindcss/no-restricted-classes'?: Linter.RuleEntry<BetterTailwindcssNoRestrictedClasses>
|
|
62
62
|
/**
|
|
63
63
|
* Disallow any css classes that are not registered in tailwindcss.
|
|
64
64
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-unknown-classes.md
|
|
65
65
|
*/
|
|
66
|
-
'
|
|
66
|
+
'better-tailwindcss/no-unknown-classes'?: Linter.RuleEntry<BetterTailwindcssNoUnknownClasses>
|
|
67
67
|
/**
|
|
68
68
|
* Disallow unnecessary whitespace between Tailwind CSS classes.
|
|
69
69
|
* @see https://github.com/schoero/eslint-plugin-better-tailwindcss/blob/main/docs/rules/no-unnecessary-whitespace.md
|
|
70
70
|
*/
|
|
71
|
-
'
|
|
71
|
+
'better-tailwindcss/no-unnecessary-whitespace'?: Linter.RuleEntry<BetterTailwindcssNoUnnecessaryWhitespace>
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/* ======= Declarations ======= */
|
|
75
|
-
// -----
|
|
76
|
-
type
|
|
75
|
+
// ----- better-tailwindcss/enforce-canonical-classes -----
|
|
76
|
+
type BetterTailwindcssEnforceCanonicalClasses = []|[{
|
|
77
77
|
|
|
78
78
|
selectors?: ({
|
|
79
79
|
|
|
@@ -261,8 +261,8 @@ type TailwindEnforceCanonicalClasses = []|[{
|
|
|
261
261
|
|
|
262
262
|
logical?: boolean
|
|
263
263
|
}]
|
|
264
|
-
// -----
|
|
265
|
-
type
|
|
264
|
+
// ----- better-tailwindcss/enforce-consistent-class-order -----
|
|
265
|
+
type BetterTailwindcssEnforceConsistentClassOrder = []|[{
|
|
266
266
|
|
|
267
267
|
selectors?: ({
|
|
268
268
|
|
|
@@ -456,8 +456,8 @@ type TailwindEnforceConsistentClassOrder = []|[{
|
|
|
456
456
|
|
|
457
457
|
unknownClassPosition?: ("start" | "end")
|
|
458
458
|
}]
|
|
459
|
-
// -----
|
|
460
|
-
type
|
|
459
|
+
// ----- better-tailwindcss/enforce-consistent-important-position -----
|
|
460
|
+
type BetterTailwindcssEnforceConsistentImportantPosition = []|[{
|
|
461
461
|
|
|
462
462
|
selectors?: ({
|
|
463
463
|
|
|
@@ -643,8 +643,8 @@ type TailwindEnforceConsistentImportantPosition = []|[{
|
|
|
643
643
|
|
|
644
644
|
position?: ("legacy" | "recommended")
|
|
645
645
|
}]
|
|
646
|
-
// -----
|
|
647
|
-
type
|
|
646
|
+
// ----- better-tailwindcss/enforce-consistent-line-wrapping -----
|
|
647
|
+
type BetterTailwindcssEnforceConsistentLineWrapping = []|[{
|
|
648
648
|
|
|
649
649
|
selectors?: ({
|
|
650
650
|
|
|
@@ -842,8 +842,8 @@ type TailwindEnforceConsistentLineWrapping = []|[{
|
|
|
842
842
|
|
|
843
843
|
strictness?: ("strict" | "loose")
|
|
844
844
|
}]
|
|
845
|
-
// -----
|
|
846
|
-
type
|
|
845
|
+
// ----- better-tailwindcss/enforce-consistent-variable-syntax -----
|
|
846
|
+
type BetterTailwindcssEnforceConsistentVariableSyntax = []|[{
|
|
847
847
|
|
|
848
848
|
selectors?: ({
|
|
849
849
|
|
|
@@ -1029,8 +1029,8 @@ type TailwindEnforceConsistentVariableSyntax = []|[{
|
|
|
1029
1029
|
|
|
1030
1030
|
syntax?: ("shorthand" | "variable")
|
|
1031
1031
|
}]
|
|
1032
|
-
// -----
|
|
1033
|
-
type
|
|
1032
|
+
// ----- better-tailwindcss/enforce-shorthand-classes -----
|
|
1033
|
+
type BetterTailwindcssEnforceShorthandClasses = []|[{
|
|
1034
1034
|
|
|
1035
1035
|
selectors?: ({
|
|
1036
1036
|
|
|
@@ -1214,8 +1214,8 @@ type TailwindEnforceShorthandClasses = []|[{
|
|
|
1214
1214
|
|
|
1215
1215
|
rootFontSize?: number
|
|
1216
1216
|
}]
|
|
1217
|
-
// -----
|
|
1218
|
-
type
|
|
1217
|
+
// ----- better-tailwindcss/no-conflicting-classes -----
|
|
1218
|
+
type BetterTailwindcssNoConflictingClasses = []|[{
|
|
1219
1219
|
|
|
1220
1220
|
selectors?: ({
|
|
1221
1221
|
|
|
@@ -1399,8 +1399,8 @@ type TailwindNoConflictingClasses = []|[{
|
|
|
1399
1399
|
|
|
1400
1400
|
rootFontSize?: number
|
|
1401
1401
|
}]
|
|
1402
|
-
// -----
|
|
1403
|
-
type
|
|
1402
|
+
// ----- better-tailwindcss/no-deprecated-classes -----
|
|
1403
|
+
type BetterTailwindcssNoDeprecatedClasses = []|[{
|
|
1404
1404
|
|
|
1405
1405
|
selectors?: ({
|
|
1406
1406
|
|
|
@@ -1584,8 +1584,8 @@ type TailwindNoDeprecatedClasses = []|[{
|
|
|
1584
1584
|
|
|
1585
1585
|
rootFontSize?: number
|
|
1586
1586
|
}]
|
|
1587
|
-
// -----
|
|
1588
|
-
type
|
|
1587
|
+
// ----- better-tailwindcss/no-duplicate-classes -----
|
|
1588
|
+
type BetterTailwindcssNoDuplicateClasses = []|[{
|
|
1589
1589
|
|
|
1590
1590
|
selectors?: ({
|
|
1591
1591
|
|
|
@@ -1769,8 +1769,8 @@ type TailwindNoDuplicateClasses = []|[{
|
|
|
1769
1769
|
|
|
1770
1770
|
rootFontSize?: number
|
|
1771
1771
|
}]
|
|
1772
|
-
// -----
|
|
1773
|
-
type
|
|
1772
|
+
// ----- better-tailwindcss/no-restricted-classes -----
|
|
1773
|
+
type BetterTailwindcssNoRestrictedClasses = []|[{
|
|
1774
1774
|
|
|
1775
1775
|
selectors?: ({
|
|
1776
1776
|
|
|
@@ -1962,8 +1962,8 @@ type TailwindNoRestrictedClasses = []|[{
|
|
|
1962
1962
|
pattern: string
|
|
1963
1963
|
} | string)[]
|
|
1964
1964
|
}]
|
|
1965
|
-
// -----
|
|
1966
|
-
type
|
|
1965
|
+
// ----- better-tailwindcss/no-unknown-classes -----
|
|
1966
|
+
type BetterTailwindcssNoUnknownClasses = []|[{
|
|
1967
1967
|
|
|
1968
1968
|
selectors?: ({
|
|
1969
1969
|
|
|
@@ -2149,8 +2149,8 @@ type TailwindNoUnknownClasses = []|[{
|
|
|
2149
2149
|
|
|
2150
2150
|
ignore?: string[]
|
|
2151
2151
|
}]
|
|
2152
|
-
// -----
|
|
2153
|
-
type
|
|
2152
|
+
// ----- better-tailwindcss/no-unnecessary-whitespace -----
|
|
2153
|
+
type BetterTailwindcssNoUnnecessaryWhitespace = []|[{
|
|
2154
2154
|
|
|
2155
2155
|
selectors?: ({
|
|
2156
2156
|
|