eslint-plugin-better-tailwindcss 4.0.1 → 4.0.2
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/lib/api/types.d.ts +2 -1
- package/lib/api/types.d.ts.map +1 -1
- package/lib/api/types.js +1 -1
- package/lib/api/types.js.map +1 -1
- package/lib/configs/config.d.ts +1090 -19
- package/lib/configs/config.d.ts.map +1 -1
- package/lib/configs/config.js +29 -39
- package/lib/configs/config.js.map +1 -1
- package/lib/parsers/angular.js.map +1 -1
- package/lib/rules/enforce-canonical-classes.d.ts +82 -50
- package/lib/rules/enforce-canonical-classes.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-class-order.d.ts +83 -52
- package/lib/rules/enforce-consistent-class-order.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-important-position.d.ts +79 -48
- package/lib/rules/enforce-consistent-important-position.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-line-wrapping.d.ts +87 -55
- package/lib/rules/enforce-consistent-line-wrapping.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-variable-syntax.d.ts +79 -48
- package/lib/rules/enforce-consistent-variable-syntax.d.ts.map +1 -1
- package/lib/rules/enforce-consistent-variable-syntax.js +1 -1
- package/lib/rules/enforce-consistent-variable-syntax.js.map +1 -1
- package/lib/rules/enforce-shorthand-classes.d.ts +81 -49
- package/lib/rules/enforce-shorthand-classes.d.ts.map +1 -1
- package/lib/rules/no-conflicting-classes.d.ts +79 -48
- package/lib/rules/no-conflicting-classes.d.ts.map +1 -1
- package/lib/rules/no-deprecated-classes.d.ts +81 -49
- package/lib/rules/no-deprecated-classes.d.ts.map +1 -1
- package/lib/rules/no-duplicate-classes.d.ts +79 -48
- package/lib/rules/no-duplicate-classes.d.ts.map +1 -1
- package/lib/rules/no-restricted-classes.d.ts +79 -50
- package/lib/rules/no-restricted-classes.d.ts.map +1 -1
- package/lib/rules/no-unknown-classes.d.ts +79 -48
- package/lib/rules/no-unknown-classes.d.ts.map +1 -1
- package/lib/rules/no-unnecessary-whitespace.d.ts +79 -48
- package/lib/rules/no-unnecessary-whitespace.d.ts.map +1 -1
- package/lib/tailwindcss/canonical-classes.async.v4.d.ts.map +1 -1
- package/lib/tailwindcss/canonical-classes.async.v4.js +11 -18
- package/lib/tailwindcss/canonical-classes.async.v4.js.map +1 -1
- package/lib/types/rule.d.ts +7 -5
- package/lib/types/rule.d.ts.map +1 -1
- package/lib/utils/rule.d.ts +31 -2
- package/lib/utils/rule.d.ts.map +1 -1
- package/lib/utils/rule.js +1 -0
- package/lib/utils/rule.js.map +1 -1
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-consistent-important-position.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-important-position.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,kCAAkC
|
|
1
|
+
{"version":3,"file":"enforce-consistent-important-position.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-important-position.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkF7C,CAAC"}
|
|
@@ -1,56 +1,88 @@
|
|
|
1
|
-
export declare const enforceConsistentLineWrapping:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
1
|
+
export declare const enforceConsistentLineWrapping: {
|
|
2
|
+
category: "stylistic";
|
|
3
|
+
messages: {
|
|
4
|
+
readonly missing: "Incorrect line wrapping. Expected\n\n{{ notReadable }}\n\nto be\n\n{{ readable }}";
|
|
5
|
+
readonly unnecessary: "Unnecessary line wrapping. Expected\n\n{{ notReadable }}\n\nto be\n\n{{ readable }}";
|
|
6
|
+
} | undefined;
|
|
7
|
+
name: "enforce-consistent-line-wrapping";
|
|
8
|
+
readonly options: any;
|
|
9
|
+
rule: {
|
|
10
|
+
create: (ctx: import("node_modules/@eslint/core/dist/cjs/types.cjs").RuleContext<{
|
|
11
|
+
LangOptions: import("eslint").Linter.LanguageOptions;
|
|
12
|
+
Code: import("eslint").SourceCode;
|
|
13
|
+
RuleOptions: [Required<{
|
|
14
|
+
rootFontSize?: number | undefined;
|
|
15
|
+
detectComponentClasses: boolean;
|
|
16
|
+
tsconfig?: string | undefined;
|
|
17
|
+
tailwindConfig?: string | undefined;
|
|
18
|
+
messageStyle: "visual" | "compact" | "raw";
|
|
19
|
+
entryPoint?: string | undefined;
|
|
20
|
+
tags: (string | [string, ({
|
|
21
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
22
|
+
} | {
|
|
23
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
24
|
+
pathPattern?: string | undefined;
|
|
25
|
+
} | {
|
|
26
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
27
|
+
pathPattern?: string | undefined;
|
|
28
|
+
})[]])[];
|
|
29
|
+
variables: (string | [string, ({
|
|
30
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
31
|
+
} | {
|
|
32
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
33
|
+
pathPattern?: string | undefined;
|
|
34
|
+
} | {
|
|
35
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
36
|
+
pathPattern?: string | undefined;
|
|
37
|
+
})[]])[];
|
|
38
|
+
attributes: (string | [string, ({
|
|
39
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
40
|
+
} | {
|
|
41
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
42
|
+
pathPattern?: string | undefined;
|
|
43
|
+
} | {
|
|
44
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
45
|
+
pathPattern?: string | undefined;
|
|
46
|
+
})[]])[];
|
|
47
|
+
callees: (string | [string, ({
|
|
48
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
49
|
+
} | {
|
|
50
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
51
|
+
pathPattern?: string | undefined;
|
|
52
|
+
} | {
|
|
53
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
54
|
+
pathPattern?: string | undefined;
|
|
55
|
+
})[]])[];
|
|
56
|
+
} & {
|
|
57
|
+
classesPerLine: number;
|
|
58
|
+
group: "never" | "newLine" | "emptyLine";
|
|
59
|
+
indent: number | "tab";
|
|
60
|
+
lineBreakStyle: "unix" | "windows";
|
|
61
|
+
preferSingleLine: boolean;
|
|
62
|
+
printWidth: number;
|
|
63
|
+
strictness: "strict" | "loose";
|
|
64
|
+
}>];
|
|
65
|
+
Node: import("eslint").JSSyntaxElement;
|
|
66
|
+
MessageIds: "missing" | "unnecessary";
|
|
67
|
+
}>) => import("eslint").Rule.RuleListener;
|
|
68
|
+
meta: {
|
|
69
|
+
messages?: {
|
|
70
|
+
readonly missing: "Incorrect line wrapping. Expected\n\n{{ notReadable }}\n\nto be\n\n{{ readable }}";
|
|
71
|
+
readonly unnecessary: "Unnecessary line wrapping. Expected\n\n{{ notReadable }}\n\nto be\n\n{{ readable }}";
|
|
72
|
+
} | undefined;
|
|
73
|
+
docs: {
|
|
74
|
+
description: string;
|
|
75
|
+
recommended: boolean;
|
|
76
|
+
url: string;
|
|
77
|
+
};
|
|
78
|
+
fixable: "code" | undefined;
|
|
79
|
+
schema: {
|
|
80
|
+
additionalProperties: false;
|
|
81
|
+
properties: Record<string, boolean | import("@valibot/to-json-schema").JsonSchema> | undefined;
|
|
82
|
+
type: "object";
|
|
83
|
+
}[];
|
|
84
|
+
type: "problem" | "layout";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
56
88
|
//# sourceMappingURL=enforce-consistent-line-wrapping.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-consistent-line-wrapping.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-line-wrapping.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,6BAA6B
|
|
1
|
+
{"version":3,"file":"enforce-consistent-line-wrapping.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-line-wrapping.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFxC,CAAC"}
|
|
@@ -1,49 +1,80 @@
|
|
|
1
|
-
export declare const enforceConsistentVariableSyntax:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
1
|
+
export declare const enforceConsistentVariableSyntax: {
|
|
2
|
+
category: "stylistic";
|
|
3
|
+
messages: {
|
|
4
|
+
readonly incorrect: "Incorrect variable syntax: {{ className }}.";
|
|
5
|
+
} | undefined;
|
|
6
|
+
name: "enforce-consistent-variable-syntax";
|
|
7
|
+
readonly options: any;
|
|
8
|
+
rule: {
|
|
9
|
+
create: (ctx: import("node_modules/@eslint/core/dist/cjs/types.cjs").RuleContext<{
|
|
10
|
+
LangOptions: import("eslint").Linter.LanguageOptions;
|
|
11
|
+
Code: import("eslint").SourceCode;
|
|
12
|
+
RuleOptions: [Required<{
|
|
13
|
+
rootFontSize?: number | undefined;
|
|
14
|
+
detectComponentClasses: boolean;
|
|
15
|
+
tsconfig?: string | undefined;
|
|
16
|
+
tailwindConfig?: string | undefined;
|
|
17
|
+
messageStyle: "visual" | "compact" | "raw";
|
|
18
|
+
entryPoint?: string | undefined;
|
|
19
|
+
tags: (string | [string, ({
|
|
20
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
21
|
+
} | {
|
|
22
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
23
|
+
pathPattern?: string | undefined;
|
|
24
|
+
} | {
|
|
25
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
26
|
+
pathPattern?: string | undefined;
|
|
27
|
+
})[]])[];
|
|
28
|
+
variables: (string | [string, ({
|
|
29
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
30
|
+
} | {
|
|
31
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
32
|
+
pathPattern?: string | undefined;
|
|
33
|
+
} | {
|
|
34
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
35
|
+
pathPattern?: string | undefined;
|
|
36
|
+
})[]])[];
|
|
37
|
+
attributes: (string | [string, ({
|
|
38
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
39
|
+
} | {
|
|
40
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
41
|
+
pathPattern?: string | undefined;
|
|
42
|
+
} | {
|
|
43
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
44
|
+
pathPattern?: string | undefined;
|
|
45
|
+
})[]])[];
|
|
46
|
+
callees: (string | [string, ({
|
|
47
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
48
|
+
} | {
|
|
49
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
50
|
+
pathPattern?: string | undefined;
|
|
51
|
+
} | {
|
|
52
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
53
|
+
pathPattern?: string | undefined;
|
|
54
|
+
})[]])[];
|
|
55
|
+
} & {
|
|
56
|
+
syntax: "shorthand" | "variable";
|
|
57
|
+
}>];
|
|
58
|
+
Node: import("eslint").JSSyntaxElement;
|
|
59
|
+
MessageIds: "incorrect";
|
|
60
|
+
}>) => import("eslint").Rule.RuleListener;
|
|
61
|
+
meta: {
|
|
62
|
+
messages?: {
|
|
63
|
+
readonly incorrect: "Incorrect variable syntax: {{ className }}.";
|
|
64
|
+
} | undefined;
|
|
65
|
+
docs: {
|
|
66
|
+
description: string;
|
|
67
|
+
recommended: boolean;
|
|
68
|
+
url: string;
|
|
69
|
+
};
|
|
70
|
+
fixable: "code" | undefined;
|
|
71
|
+
schema: {
|
|
72
|
+
additionalProperties: false;
|
|
73
|
+
properties: Record<string, boolean | import("@valibot/to-json-schema").JsonSchema> | undefined;
|
|
74
|
+
type: "object";
|
|
75
|
+
}[];
|
|
76
|
+
type: "problem" | "layout";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
49
80
|
//# sourceMappingURL=enforce-consistent-variable-syntax.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-consistent-variable-syntax.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-variable-syntax.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"enforce-consistent-variable-syntax.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-consistent-variable-syntax.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B1C,CAAC"}
|
|
@@ -114,7 +114,7 @@ function lintLiterals(ctx, literals) {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
function isBeginningOfArbitraryShorthand(base) {
|
|
117
|
-
return !!base.match(/^_
|
|
117
|
+
return !!base.match(/^_*--(?![\w-]+\()/);
|
|
118
118
|
}
|
|
119
119
|
function isBeginningOfArbitraryVariable(base) {
|
|
120
120
|
return !!base.match(/^_*var\(_*--/);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-consistent-variable-syntax.js","sourceRoot":"","sources":["../../src/rules/enforce-consistent-variable-syntax.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEpF,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACnH,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM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AA+B,CAAC,qBAAqB,CAAC,EAAC,CAAC;oBAEzD,MAAM,UAAU,GAAG,UAAU,CAAC,GAAG,EAAE;wBACjC,GAAG,cAAc;wBACjB,IAAI,EAAE;4BACJ,GAAG,iBAAiB;4BACpB,QAAQ,qBAAqB,IAAI;4BACjC,GAAG,gBAAgB;yBACpB,CAAC,IAAI,CAAC,EAAE,CAAC;qBACX,CAAC,CAAC;oBAEH,OAAO;wBACL,IAAI,EAAE,EAAE,SAAS,EAAE;wBACnB,GAAG,EAAE,UAAU;wBACf,EAAE,EAAE,WAAW;wBACf,QAAQ;qBACA,CAAC;gBAEb,CAAC;YACH,CAAC;QAEH,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED,SAAS,+BAA+B,CAAC,IAAY;IACnD,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"enforce-consistent-variable-syntax.js","sourceRoot":"","sources":["../../src/rules/enforce-consistent-variable-syntax.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEpF,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACnH,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,qCAAqC,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAMjE,MAAM,CAAC,MAAM,+BAA+B,GAAG,UAAU,CAAC;IACxD,OAAO,EAAE,IAAI;IACb,QAAQ,EAAE,WAAW;IACrB,WAAW,EAAE,8CAA8C;IAC3D,IAAI,EAAE,wHAAwH;IAC9H,I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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
1
|
+
export declare const enforceShorthandClasses: {
|
|
2
|
+
category: "stylistic";
|
|
3
|
+
messages: {
|
|
4
|
+
readonly longhand: "Non shorthand class detected. Expected {{ longhands }} to be {{ shorthands }}";
|
|
5
|
+
readonly unnecessary: "Unnecessary whitespace";
|
|
6
|
+
} | undefined;
|
|
7
|
+
name: "enforce-shorthand-classes";
|
|
8
|
+
readonly options: any;
|
|
9
|
+
rule: {
|
|
10
|
+
create: (ctx: import("node_modules/@eslint/core/dist/cjs/types.cjs").RuleContext<{
|
|
11
|
+
LangOptions: import("eslint").Linter.LanguageOptions;
|
|
12
|
+
Code: import("eslint").SourceCode;
|
|
13
|
+
RuleOptions: [Required<{
|
|
14
|
+
rootFontSize?: number | undefined;
|
|
15
|
+
detectComponentClasses: boolean;
|
|
16
|
+
tsconfig?: string | undefined;
|
|
17
|
+
tailwindConfig?: string | undefined;
|
|
18
|
+
messageStyle: "visual" | "compact" | "raw";
|
|
19
|
+
entryPoint?: string | undefined;
|
|
20
|
+
tags: (string | [string, ({
|
|
21
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
22
|
+
} | {
|
|
23
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
24
|
+
pathPattern?: string | undefined;
|
|
25
|
+
} | {
|
|
26
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
27
|
+
pathPattern?: string | undefined;
|
|
28
|
+
})[]])[];
|
|
29
|
+
variables: (string | [string, ({
|
|
30
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
31
|
+
} | {
|
|
32
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
33
|
+
pathPattern?: string | undefined;
|
|
34
|
+
} | {
|
|
35
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
36
|
+
pathPattern?: string | undefined;
|
|
37
|
+
})[]])[];
|
|
38
|
+
attributes: (string | [string, ({
|
|
39
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
40
|
+
} | {
|
|
41
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
42
|
+
pathPattern?: string | undefined;
|
|
43
|
+
} | {
|
|
44
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
45
|
+
pathPattern?: string | undefined;
|
|
46
|
+
})[]])[];
|
|
47
|
+
callees: (string | [string, ({
|
|
48
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
49
|
+
} | {
|
|
50
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
51
|
+
pathPattern?: string | undefined;
|
|
52
|
+
} | {
|
|
53
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
54
|
+
pathPattern?: string | undefined;
|
|
55
|
+
})[]])[];
|
|
56
|
+
} & {
|
|
57
|
+
[x: string]: unknown;
|
|
58
|
+
}>];
|
|
59
|
+
Node: import("eslint").JSSyntaxElement;
|
|
60
|
+
MessageIds: "unnecessary" | "longhand";
|
|
61
|
+
}>) => import("eslint").Rule.RuleListener;
|
|
62
|
+
meta: {
|
|
63
|
+
messages?: {
|
|
64
|
+
readonly longhand: "Non shorthand class detected. Expected {{ longhands }} to be {{ shorthands }}";
|
|
65
|
+
readonly unnecessary: "Unnecessary whitespace";
|
|
66
|
+
} | undefined;
|
|
67
|
+
docs: {
|
|
68
|
+
description: string;
|
|
69
|
+
recommended: boolean;
|
|
70
|
+
url: string;
|
|
71
|
+
};
|
|
72
|
+
fixable: "code" | undefined;
|
|
73
|
+
schema: {
|
|
74
|
+
additionalProperties: false;
|
|
75
|
+
properties: Record<string, boolean | import("@valibot/to-json-schema").JsonSchema> | undefined;
|
|
76
|
+
type: "object";
|
|
77
|
+
}[];
|
|
78
|
+
type: "problem" | "layout";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
};
|
|
50
82
|
export type Shorthands = [RegExp[], string[]][][];
|
|
51
83
|
export declare const shorthands: [RegExp[], string[]][][];
|
|
52
84
|
//# sourceMappingURL=enforce-shorthand-classes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enforce-shorthand-classes.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-shorthand-classes.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"enforce-shorthand-classes.d.ts","sourceRoot":"","sources":["../../src/rules/enforce-shorthand-classes.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmBlC,CAAC;AAGH,MAAM,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;AAElD,eAAO,MAAM,UAAU,0BAqFD,CAAC"}
|
|
@@ -1,49 +1,80 @@
|
|
|
1
|
-
export declare const noConflictingClasses:
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
1
|
+
export declare const noConflictingClasses: {
|
|
2
|
+
category: "correctness";
|
|
3
|
+
messages: {
|
|
4
|
+
readonly conflicting: "Conflicting class detected: \"{{ className }}\" and \"{{ conflictingClassString }}\" apply the same CSS properties: \"{{ conflictingPropertiesString }}\".";
|
|
5
|
+
} | undefined;
|
|
6
|
+
name: "no-conflicting-classes";
|
|
7
|
+
readonly options: any;
|
|
8
|
+
rule: {
|
|
9
|
+
create: (ctx: import("node_modules/@eslint/core/dist/cjs/types.cjs").RuleContext<{
|
|
10
|
+
LangOptions: import("eslint").Linter.LanguageOptions;
|
|
11
|
+
Code: import("eslint").SourceCode;
|
|
12
|
+
RuleOptions: [Required<{
|
|
13
|
+
rootFontSize?: number | undefined;
|
|
14
|
+
detectComponentClasses: boolean;
|
|
15
|
+
tsconfig?: string | undefined;
|
|
16
|
+
tailwindConfig?: string | undefined;
|
|
17
|
+
messageStyle: "visual" | "compact" | "raw";
|
|
18
|
+
entryPoint?: string | undefined;
|
|
19
|
+
tags: (string | [string, ({
|
|
20
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
21
|
+
} | {
|
|
22
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
23
|
+
pathPattern?: string | undefined;
|
|
24
|
+
} | {
|
|
25
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
26
|
+
pathPattern?: string | undefined;
|
|
27
|
+
})[]])[];
|
|
28
|
+
variables: (string | [string, ({
|
|
29
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
30
|
+
} | {
|
|
31
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
32
|
+
pathPattern?: string | undefined;
|
|
33
|
+
} | {
|
|
34
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
35
|
+
pathPattern?: string | undefined;
|
|
36
|
+
})[]])[];
|
|
37
|
+
attributes: (string | [string, ({
|
|
38
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
39
|
+
} | {
|
|
40
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
41
|
+
pathPattern?: string | undefined;
|
|
42
|
+
} | {
|
|
43
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
44
|
+
pathPattern?: string | undefined;
|
|
45
|
+
})[]])[];
|
|
46
|
+
callees: (string | [string, ({
|
|
47
|
+
match: import("../types/rule.js").MatcherType.String;
|
|
48
|
+
} | {
|
|
49
|
+
match: import("../types/rule.js").MatcherType.ObjectKey;
|
|
50
|
+
pathPattern?: string | undefined;
|
|
51
|
+
} | {
|
|
52
|
+
match: import("../types/rule.js").MatcherType.ObjectValue;
|
|
53
|
+
pathPattern?: string | undefined;
|
|
54
|
+
})[]])[];
|
|
55
|
+
} & {
|
|
56
|
+
[x: string]: unknown;
|
|
57
|
+
}>];
|
|
58
|
+
Node: import("eslint").JSSyntaxElement;
|
|
59
|
+
MessageIds: "conflicting";
|
|
60
|
+
}>) => import("eslint").Rule.RuleListener;
|
|
61
|
+
meta: {
|
|
62
|
+
messages?: {
|
|
63
|
+
readonly conflicting: "Conflicting class detected: \"{{ className }}\" and \"{{ conflictingClassString }}\" apply the same CSS properties: \"{{ conflictingPropertiesString }}\".";
|
|
64
|
+
} | undefined;
|
|
65
|
+
docs: {
|
|
66
|
+
description: string;
|
|
67
|
+
recommended: boolean;
|
|
68
|
+
url: string;
|
|
69
|
+
};
|
|
70
|
+
fixable: "code" | undefined;
|
|
71
|
+
schema: {
|
|
72
|
+
additionalProperties: false;
|
|
73
|
+
properties: Record<string, boolean | import("@valibot/to-json-schema").JsonSchema> | undefined;
|
|
74
|
+
type: "object";
|
|
75
|
+
}[];
|
|
76
|
+
type: "problem" | "layout";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
49
80
|
//# sourceMappingURL=no-conflicting-classes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-conflicting-classes.d.ts","sourceRoot":"","sources":["../../src/rules/no-conflicting-classes.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"no-conflicting-classes.d.ts","sourceRoot":"","sources":["../../src/rules/no-conflicting-classes.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiB/B,CAAC"}
|