eslint-plugin-better-tailwindcss 3.7.6 → 3.7.7

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 (53) hide show
  1. package/lib/cjs/options/callees/tv.js +2 -2
  2. package/lib/cjs/options/callees/tv.js.map +1 -1
  3. package/lib/cjs/options/schemas/attributes.d.ts +104 -0
  4. package/lib/cjs/options/schemas/attributes.d.ts.map +1 -0
  5. package/lib/cjs/options/schemas/attributes.js +23 -0
  6. package/lib/cjs/options/schemas/attributes.js.map +1 -0
  7. package/lib/cjs/options/schemas/callees.d.ts +108 -0
  8. package/lib/cjs/options/schemas/callees.d.ts.map +1 -0
  9. package/lib/cjs/options/schemas/callees.js +23 -0
  10. package/lib/cjs/options/schemas/callees.js.map +1 -0
  11. package/lib/cjs/options/schemas/common.d.ts +14 -0
  12. package/lib/cjs/options/schemas/common.d.ts.map +1 -0
  13. package/lib/cjs/options/schemas/common.js +14 -0
  14. package/lib/cjs/options/schemas/common.js.map +1 -0
  15. package/lib/cjs/options/schemas/matchers.d.ts +13 -0
  16. package/lib/cjs/options/schemas/matchers.d.ts.map +1 -0
  17. package/lib/cjs/options/schemas/matchers.js +17 -0
  18. package/lib/cjs/options/schemas/matchers.js.map +1 -0
  19. package/lib/cjs/options/schemas/tags.d.ts +101 -0
  20. package/lib/cjs/options/schemas/tags.d.ts.map +1 -0
  21. package/lib/cjs/options/schemas/tags.js +23 -0
  22. package/lib/cjs/options/schemas/tags.js.map +1 -0
  23. package/lib/cjs/options/schemas/variables.d.ts +102 -0
  24. package/lib/cjs/options/schemas/variables.d.ts.map +1 -0
  25. package/lib/cjs/options/schemas/variables.js +23 -0
  26. package/lib/cjs/options/schemas/variables.js.map +1 -0
  27. package/lib/esm/options/callees/tv.js +2 -2
  28. package/lib/esm/options/callees/tv.js.map +1 -1
  29. package/lib/esm/options/schemas/attributes.d.ts +104 -0
  30. package/lib/esm/options/schemas/attributes.d.ts.map +1 -0
  31. package/lib/esm/options/schemas/attributes.js +20 -0
  32. package/lib/esm/options/schemas/attributes.js.map +1 -0
  33. package/lib/esm/options/schemas/callees.d.ts +108 -0
  34. package/lib/esm/options/schemas/callees.d.ts.map +1 -0
  35. package/lib/esm/options/schemas/callees.js +20 -0
  36. package/lib/esm/options/schemas/callees.js.map +1 -0
  37. package/lib/esm/options/schemas/common.d.ts +14 -0
  38. package/lib/esm/options/schemas/common.d.ts.map +1 -0
  39. package/lib/esm/options/schemas/common.js +11 -0
  40. package/lib/esm/options/schemas/common.js.map +1 -0
  41. package/lib/esm/options/schemas/matchers.d.ts +13 -0
  42. package/lib/esm/options/schemas/matchers.d.ts.map +1 -0
  43. package/lib/esm/options/schemas/matchers.js +14 -0
  44. package/lib/esm/options/schemas/matchers.js.map +1 -0
  45. package/lib/esm/options/schemas/tags.d.ts +101 -0
  46. package/lib/esm/options/schemas/tags.d.ts.map +1 -0
  47. package/lib/esm/options/schemas/tags.js +20 -0
  48. package/lib/esm/options/schemas/tags.js.map +1 -0
  49. package/lib/esm/options/schemas/variables.d.ts +102 -0
  50. package/lib/esm/options/schemas/variables.d.ts.map +1 -0
  51. package/lib/esm/options/schemas/variables.js +20 -0
  52. package/lib/esm/options/schemas/variables.js.map +1 -0
  53. package/package.json +11 -11
@@ -42,7 +42,7 @@ exports.TV_COMPOUND_VARIANTS_CLASS = [
42
42
  [
43
43
  {
44
44
  match: rule_js_1.MatcherType.ObjectValue,
45
- pathPattern: "^compoundVariants\\[\\d+\\]\\.(?:className|class)$"
45
+ pathPattern: "^compoundVariants\\[\\d+\\]\\.(?:className|class).*$"
46
46
  }
47
47
  ]
48
48
  ];
@@ -51,7 +51,7 @@ exports.TV_COMPOUND_SLOTS_CLASS = [
51
51
  [
52
52
  {
53
53
  match: rule_js_1.MatcherType.ObjectValue,
54
- pathPattern: "^compoundSlots\\[\\d+\\]\\.(?:className|class)$"
54
+ pathPattern: "^compoundSlots\\[\\d+\\]\\.(?:className|class).*$"
55
55
  }
56
56
  ]
57
57
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"tv.js","sourceRoot":"","sources":["../../../../src/options/callees/tv.ts"],"names":[],"mappings":";;;AAAA,8DAA+D;AAKlD,QAAA,UAAU,GAAG;IACxB,IAAI;IACJ;QACE;YACE,KAAK,EAAE,qBAAW,CAAC,MAAM;SAC1B;KACF;CACuB,CAAC;AAEd,QAAA,iBAAiB,GAAG;IAC/B,IAAI;IACJ;QACE;YACE,KAAK,EAAE,qBAAW,CAAC,WAAW;YAC9B,WAAW,EAAE,cAAc;SAC5B;KACF;CACuB,CAAC;AAEd,QAAA,cAAc,GAAG;IAC5B,IAAI;IACJ;QACE;YACE,KAAK,EAAE,qBAAW,CAAC,WAAW;YAC9B,WAAW,EAAE,QAAQ;SACtB;KACF;CACuB,CAAC;AAEd,QAAA,eAAe,GAAG;IAC7B,IAAI;IACJ;QACE;YACE,KAAK,EAAE,qBAAW,CAAC,WAAW;YAC9B,WAAW,EAAE,WAAW;SACzB;KACF;CACuB,CAAC;AAEd,QAAA,0BAA0B,GAAG;IACxC,IAAI;IACJ;QACE;YACE,KAAK,EAAE,qBAAW,CAAC,WAAW;YAC9B,WAAW,EAAE,oDAAoD;SAClE;KACF;CACuB,CAAC;AAEd,QAAA,uBAAuB,GAAG;IACrC,IAAI;IACJ;QACE;YACE,KAAK,EAAE,qBAAW,CAAC,WAAW;YAC9B,WAAW,EAAE,iDAAiD;SAC/D;KACF;CACuB,CAAC;AAE3B,8EAA8E;AACjE,QAAA,EAAE,GAAG;IAChB,kBAAU;IACV,yBAAiB;IACjB,kCAA0B;IAC1B,sBAAc;IACd,uBAAe;IACf,+BAAuB;CACN,CAAC"}
1
+ {"version":3,"file":"tv.js","sourceRoot":"","sources":["../../../../src/options/callees/tv.ts"],"names":[],"mappings":";;;AAAA,8DAA+D;AAKlD,QAAA,UAAU,GAAG;IACxB,IAAI;IACJ;QACE;YACE,KAAK,EAAE,qBAAW,CAAC,MAAM;SAC1B;KACF;CACuB,CAAC;AAEd,QAAA,iBAAiB,GAAG;IAC/B,IAAI;IACJ;QACE;YACE,KAAK,EAAE,qBAAW,CAAC,WAAW;YAC9B,WAAW,EAAE,cAAc;SAC5B;KACF;CACuB,CAAC;AAEd,QAAA,cAAc,GAAG;IAC5B,IAAI;IACJ;QACE;YACE,KAAK,EAAE,qBAAW,CAAC,WAAW;YAC9B,WAAW,EAAE,QAAQ;SACtB;KACF;CACuB,CAAC;AAEd,QAAA,eAAe,GAAG;IAC7B,IAAI;IACJ;QACE;YACE,KAAK,EAAE,qBAAW,CAAC,WAAW;YAC9B,WAAW,EAAE,WAAW;SACzB;KACF;CACuB,CAAC;AAEd,QAAA,0BAA0B,GAAG;IACxC,IAAI;IACJ;QACE;YACE,KAAK,EAAE,qBAAW,CAAC,WAAW;YAC9B,WAAW,EAAE,sDAAsD;SACpE;KACF;CACuB,CAAC;AAEd,QAAA,uBAAuB,GAAG;IACrC,IAAI;IACJ;QACE;YACE,KAAK,EAAE,qBAAW,CAAC,WAAW;YAC9B,WAAW,EAAE,mDAAmD;SACjE;KACF;CACuB,CAAC;AAE3B,8EAA8E;AACjE,QAAA,EAAE,GAAG;IAChB,kBAAU;IACV,yBAAiB;IACjB,kCAA0B;IAC1B,sBAAc;IACd,uBAAe;IACf,+BAAuB;CACN,CAAC"}
@@ -0,0 +1,104 @@
1
+ import type { InferOutput } from "valibot";
2
+ export declare const ATTRIBUTE_MATCHER_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Attribute name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
3
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
4
+ }, undefined>, import("valibot").ObjectSchema<{
5
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
6
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
7
+ }, undefined>, import("valibot").ObjectSchema<{
8
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
9
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
10
+ }, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
11
+ match: import("../../types/rule").MatcherType.String;
12
+ } | {
13
+ match: import("../../types/rule").MatcherType.ObjectKey;
14
+ pathPattern?: string | undefined;
15
+ } | {
16
+ match: import("../../types/rule").MatcherType.ObjectValue;
17
+ pathPattern?: string | undefined;
18
+ })[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
19
+ match: import("../../types/rule").MatcherType.String;
20
+ } | {
21
+ match: import("../../types/rule").MatcherType.ObjectKey;
22
+ pathPattern?: string | undefined;
23
+ } | {
24
+ match: import("../../types/rule").MatcherType.ObjectValue;
25
+ pathPattern?: string | undefined;
26
+ })[]], "List of matchers that will automatically be matched.">]>;
27
+ export type AttributeMatchers = InferOutput<typeof ATTRIBUTE_MATCHER_CONFIG>;
28
+ export declare const ATTRIBUTE_NAME_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Attribute name that for which children get linted.">]>;
29
+ export type AttributeName = InferOutput<typeof ATTRIBUTE_NAME_CONFIG>;
30
+ export declare const ATTRIBUTES_SCHEMA: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Attribute name that for which children get linted.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Attribute name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
31
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
32
+ }, undefined>, import("valibot").ObjectSchema<{
33
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
34
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
35
+ }, undefined>, import("valibot").ObjectSchema<{
36
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
37
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
38
+ }, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
39
+ match: import("../../types/rule").MatcherType.String;
40
+ } | {
41
+ match: import("../../types/rule").MatcherType.ObjectKey;
42
+ pathPattern?: string | undefined;
43
+ } | {
44
+ match: import("../../types/rule").MatcherType.ObjectValue;
45
+ pathPattern?: string | undefined;
46
+ })[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
47
+ match: import("../../types/rule").MatcherType.String;
48
+ } | {
49
+ match: import("../../types/rule").MatcherType.ObjectKey;
50
+ pathPattern?: string | undefined;
51
+ } | {
52
+ match: import("../../types/rule").MatcherType.ObjectValue;
53
+ pathPattern?: string | undefined;
54
+ })[]], "List of matchers that will automatically be matched.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
55
+ match: import("../../types/rule").MatcherType.String;
56
+ } | {
57
+ match: import("../../types/rule").MatcherType.ObjectKey;
58
+ pathPattern?: string | undefined;
59
+ } | {
60
+ match: import("../../types/rule").MatcherType.ObjectValue;
61
+ pathPattern?: string | undefined;
62
+ })[]])[], "List of attribute names that should get linted.">]>;
63
+ export type Attributes = InferOutput<typeof ATTRIBUTES_SCHEMA>;
64
+ export declare const ATTRIBUTES_OPTION_SCHEMA: import("valibot").ObjectSchema<{
65
+ readonly attributes: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Attribute name that for which children get linted.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Attribute name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
66
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
67
+ }, undefined>, import("valibot").ObjectSchema<{
68
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
69
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
70
+ }, undefined>, import("valibot").ObjectSchema<{
71
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
72
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
73
+ }, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
74
+ match: import("../../types/rule").MatcherType.String;
75
+ } | {
76
+ match: import("../../types/rule").MatcherType.ObjectKey;
77
+ pathPattern?: string | undefined;
78
+ } | {
79
+ match: import("../../types/rule").MatcherType.ObjectValue;
80
+ pathPattern?: string | undefined;
81
+ })[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
82
+ match: import("../../types/rule").MatcherType.String;
83
+ } | {
84
+ match: import("../../types/rule").MatcherType.ObjectKey;
85
+ pathPattern?: string | undefined;
86
+ } | {
87
+ match: import("../../types/rule").MatcherType.ObjectValue;
88
+ pathPattern?: string | undefined;
89
+ })[]], "List of matchers that will automatically be matched.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
90
+ match: import("../../types/rule").MatcherType.String;
91
+ } | {
92
+ match: import("../../types/rule").MatcherType.ObjectKey;
93
+ pathPattern?: string | undefined;
94
+ } | {
95
+ match: import("../../types/rule").MatcherType.ObjectValue;
96
+ pathPattern?: string | undefined;
97
+ })[]])[], "List of attribute names that should get linted.">]>, (string | [string, ({
98
+ match: import("../../types/rule").MatcherType.String;
99
+ } | {
100
+ match: import("../../types/rule").MatcherType.ObjectKey;
101
+ })[]])[]>;
102
+ }, undefined>;
103
+ export type AttributesOptions = InferOutput<typeof ATTRIBUTES_OPTION_SCHEMA>;
104
+ //# sourceMappingURL=attributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes.d.ts","sourceRoot":"","sources":["../../../../src/options/schemas/attributes.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;gEAkBpC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE7E,eAAO,MAAM,qBAAqB,2LAGjC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEtE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8DAQ7B,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE/D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAEG,CAAC;AAEzC,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ATTRIBUTES_OPTION_SCHEMA = exports.ATTRIBUTES_SCHEMA = exports.ATTRIBUTE_NAME_CONFIG = exports.ATTRIBUTE_MATCHER_CONFIG = void 0;
4
+ const valibot_1 = require("valibot");
5
+ const default_options_js_1 = require("../default-options.js");
6
+ const matchers_js_1 = require("../schemas/matchers.js");
7
+ exports.ATTRIBUTE_MATCHER_CONFIG = (0, valibot_1.pipe)((0, valibot_1.tuple)([
8
+ (0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("Attribute name for which children get linted if matched.")),
9
+ (0, valibot_1.pipe)((0, valibot_1.array)((0, valibot_1.union)([
10
+ matchers_js_1.STRING_MATCHER_SCHEMA,
11
+ matchers_js_1.OBJECT_KEY_MATCHER_SCHEMA,
12
+ matchers_js_1.OBJECT_VALUE_MATCHER_SCHEMA
13
+ ])), (0, valibot_1.description)("List of matchers that will be applied."))
14
+ ]), (0, valibot_1.description)("List of matchers that will automatically be matched."));
15
+ exports.ATTRIBUTE_NAME_CONFIG = (0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("Attribute name that for which children get linted."));
16
+ exports.ATTRIBUTES_SCHEMA = (0, valibot_1.pipe)((0, valibot_1.array)((0, valibot_1.union)([
17
+ exports.ATTRIBUTE_NAME_CONFIG,
18
+ exports.ATTRIBUTE_MATCHER_CONFIG
19
+ ])), (0, valibot_1.description)("List of attribute names that should get linted."));
20
+ exports.ATTRIBUTES_OPTION_SCHEMA = (0, valibot_1.object)({
21
+ attributes: (0, valibot_1.optional)(exports.ATTRIBUTES_SCHEMA, default_options_js_1.DEFAULT_ATTRIBUTE_NAMES)
22
+ });
23
+ //# sourceMappingURL=attributes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attributes.js","sourceRoot":"","sources":["../../../../src/options/schemas/attributes.ts"],"names":[],"mappings":";;;AAAA,qCASiB;AAEjB,sFAAwF;AACxF,gFAIwD;AAM3C,QAAA,wBAAwB,GAAG,IAAA,cAAI,EAC1C,IAAA,eAAK,EAAC;IACJ,IAAA,cAAI,EACF,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,0DAA0D,CAAC,CACxE;IACD,IAAA,cAAI,EACF,IAAA,eAAK,EACH,IAAA,eAAK,EAAC;QACJ,mCAAqB;QACrB,uCAAyB;QACzB,yCAA2B;KAC5B,CAAC,CACH,EACD,IAAA,qBAAW,EAAC,wCAAwC,CAAC,CACtD;CACF,CAAC,EACF,IAAA,qBAAW,EAAC,sDAAsD,CAAC,CACpE,CAAC;AAIW,QAAA,qBAAqB,GAAG,IAAA,cAAI,EACvC,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,oDAAoD,CAAC,CAClE,CAAC;AAIW,QAAA,iBAAiB,GAAG,IAAA,cAAI,EACnC,IAAA,eAAK,EACH,IAAA,eAAK,EAAC;IACJ,6BAAqB;IACrB,gCAAwB;CACzB,CAAC,CACH,EACD,IAAA,qBAAW,EAAC,iDAAiD,CAAC,CAC/D,CAAC;AAIW,QAAA,wBAAwB,GAAG,IAAA,gBAAM,EAAC;IAC7C,UAAU,EAAE,IAAA,kBAAQ,EAAC,yBAAiB,EAAE,4CAAuB,CAAC;CACjE,CAAuC,CAAC"}
@@ -0,0 +1,108 @@
1
+ import type { InferOutput } from "valibot";
2
+ declare const CALLEE_MATCHER_SCHEMA: import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Callee name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
3
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
4
+ }, undefined>, import("valibot").ObjectSchema<{
5
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
6
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
7
+ }, undefined>, import("valibot").ObjectSchema<{
8
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
9
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
10
+ }, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
11
+ match: import("../../types/rule").MatcherType.String;
12
+ } | {
13
+ match: import("../../types/rule").MatcherType.ObjectKey;
14
+ pathPattern?: string | undefined;
15
+ } | {
16
+ match: import("../../types/rule").MatcherType.ObjectValue;
17
+ pathPattern?: string | undefined;
18
+ })[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
19
+ match: import("../../types/rule").MatcherType.String;
20
+ } | {
21
+ match: import("../../types/rule").MatcherType.ObjectKey;
22
+ pathPattern?: string | undefined;
23
+ } | {
24
+ match: import("../../types/rule").MatcherType.ObjectValue;
25
+ pathPattern?: string | undefined;
26
+ })[]], "List of matchers that will automatically be matched.">]>;
27
+ export type CalleeMatchers = InferOutput<typeof CALLEE_MATCHER_SCHEMA>;
28
+ declare const CALLEE_NAME_SCHEMA: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Callee name for which children get linted.">]>;
29
+ export type CalleeName = InferOutput<typeof CALLEE_NAME_SCHEMA>;
30
+ export declare const CALLEES_SCHEMA: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Callee name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
31
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
32
+ }, undefined>, import("valibot").ObjectSchema<{
33
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
34
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
35
+ }, undefined>, import("valibot").ObjectSchema<{
36
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
37
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
38
+ }, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
39
+ match: import("../../types/rule").MatcherType.String;
40
+ } | {
41
+ match: import("../../types/rule").MatcherType.ObjectKey;
42
+ pathPattern?: string | undefined;
43
+ } | {
44
+ match: import("../../types/rule").MatcherType.ObjectValue;
45
+ pathPattern?: string | undefined;
46
+ })[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
47
+ match: import("../../types/rule").MatcherType.String;
48
+ } | {
49
+ match: import("../../types/rule").MatcherType.ObjectKey;
50
+ pathPattern?: string | undefined;
51
+ } | {
52
+ match: import("../../types/rule").MatcherType.ObjectValue;
53
+ pathPattern?: string | undefined;
54
+ })[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Callee name for which children get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
55
+ match: import("../../types/rule").MatcherType.String;
56
+ } | {
57
+ match: import("../../types/rule").MatcherType.ObjectKey;
58
+ pathPattern?: string | undefined;
59
+ } | {
60
+ match: import("../../types/rule").MatcherType.ObjectValue;
61
+ pathPattern?: string | undefined;
62
+ })[]])[], "List of function names which arguments should get linted.">]>;
63
+ export type Callees = InferOutput<typeof CALLEES_SCHEMA>;
64
+ export declare const CALLEES_OPTION_SCHEMA: import("valibot").ObjectSchema<{
65
+ readonly callees: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Callee name for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
66
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
67
+ }, undefined>, import("valibot").ObjectSchema<{
68
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
69
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
70
+ }, undefined>, import("valibot").ObjectSchema<{
71
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
72
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
73
+ }, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
74
+ match: import("../../types/rule").MatcherType.String;
75
+ } | {
76
+ match: import("../../types/rule").MatcherType.ObjectKey;
77
+ pathPattern?: string | undefined;
78
+ } | {
79
+ match: import("../../types/rule").MatcherType.ObjectValue;
80
+ pathPattern?: string | undefined;
81
+ })[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
82
+ match: import("../../types/rule").MatcherType.String;
83
+ } | {
84
+ match: import("../../types/rule").MatcherType.ObjectKey;
85
+ pathPattern?: string | undefined;
86
+ } | {
87
+ match: import("../../types/rule").MatcherType.ObjectValue;
88
+ pathPattern?: string | undefined;
89
+ })[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Callee name for which children get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
90
+ match: import("../../types/rule").MatcherType.String;
91
+ } | {
92
+ match: import("../../types/rule").MatcherType.ObjectKey;
93
+ pathPattern?: string | undefined;
94
+ } | {
95
+ match: import("../../types/rule").MatcherType.ObjectValue;
96
+ pathPattern?: string | undefined;
97
+ })[]])[], "List of function names which arguments should get linted.">]>, ([string, {
98
+ match: import("../../types/rule").MatcherType.String;
99
+ }[]] | [string, {
100
+ match: import("../../types/rule").MatcherType.ObjectKey;
101
+ }[]] | [string, {
102
+ match: import("../../types/rule").MatcherType.ObjectValue;
103
+ pathPattern: string;
104
+ }[]])[]>;
105
+ }, undefined>;
106
+ export type CalleesOptions = InferOutput<typeof CALLEES_OPTION_SCHEMA>;
107
+ export {};
108
+ //# sourceMappingURL=callees.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callees.d.ts","sourceRoot":"","sources":["../../../../src/options/schemas/callees.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;gEAkB1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEvE,QAAA,MAAM,kBAAkB,mLAGvB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEhE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wEAQ1B,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC;AAEzD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAEM,CAAC;AAEzC,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CALLEES_OPTION_SCHEMA = exports.CALLEES_SCHEMA = void 0;
4
+ const valibot_1 = require("valibot");
5
+ const default_options_js_1 = require("../default-options.js");
6
+ const matchers_js_1 = require("../schemas/matchers.js");
7
+ const CALLEE_MATCHER_SCHEMA = (0, valibot_1.pipe)((0, valibot_1.tuple)([
8
+ (0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("Callee name for which children get linted if matched.")),
9
+ (0, valibot_1.pipe)((0, valibot_1.array)((0, valibot_1.union)([
10
+ matchers_js_1.STRING_MATCHER_SCHEMA,
11
+ matchers_js_1.OBJECT_KEY_MATCHER_SCHEMA,
12
+ matchers_js_1.OBJECT_VALUE_MATCHER_SCHEMA
13
+ ])), (0, valibot_1.description)("List of matchers that will be applied."))
14
+ ]), (0, valibot_1.description)("List of matchers that will automatically be matched."));
15
+ const CALLEE_NAME_SCHEMA = (0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("Callee name for which children get linted."));
16
+ exports.CALLEES_SCHEMA = (0, valibot_1.pipe)((0, valibot_1.array)((0, valibot_1.union)([
17
+ CALLEE_MATCHER_SCHEMA,
18
+ CALLEE_NAME_SCHEMA
19
+ ])), (0, valibot_1.description)("List of function names which arguments should get linted."));
20
+ exports.CALLEES_OPTION_SCHEMA = (0, valibot_1.object)({
21
+ callees: (0, valibot_1.optional)(exports.CALLEES_SCHEMA, default_options_js_1.DEFAULT_CALLEE_NAMES)
22
+ });
23
+ //# sourceMappingURL=callees.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callees.js","sourceRoot":"","sources":["../../../../src/options/schemas/callees.ts"],"names":[],"mappings":";;;AAAA,qCASiB;AAEjB,sFAAqF;AACrF,gFAIwD;AAMxD,MAAM,qBAAqB,GAAG,IAAA,cAAI,EAChC,IAAA,eAAK,EAAC;IACJ,IAAA,cAAI,EACF,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,uDAAuD,CAAC,CACrE;IACD,IAAA,cAAI,EACF,IAAA,eAAK,EACH,IAAA,eAAK,EAAC;QACJ,mCAAqB;QACrB,uCAAyB;QACzB,yCAA2B;KAC5B,CAAC,CACH,EACD,IAAA,qBAAW,EAAC,wCAAwC,CAAC,CACtD;CACF,CAAC,EACF,IAAA,qBAAW,EAAC,sDAAsD,CAAC,CACpE,CAAC;AAIF,MAAM,kBAAkB,GAAG,IAAA,cAAI,EAC7B,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,4CAA4C,CAAC,CAC1D,CAAC;AAIW,QAAA,cAAc,GAAG,IAAA,cAAI,EAChC,IAAA,eAAK,EACH,IAAA,eAAK,EAAC;IACJ,qBAAqB;IACrB,kBAAkB;CACnB,CAAC,CACH,EACD,IAAA,qBAAW,EAAC,2DAA2D,CAAC,CACzE,CAAC;AAIW,QAAA,qBAAqB,GAAG,IAAA,gBAAM,EAAC;IAC1C,OAAO,EAAE,IAAA,kBAAQ,EAAC,sBAAc,EAAE,yCAAoB,CAAC;CACxD,CAAuC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { InferOutput } from "valibot";
2
+ export declare const ENTRYPOINT_OPTION_SCHEMA: import("valibot").ObjectSchema<{
3
+ readonly entryPoint: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "The path to the css entry point of the project. If not specified, the plugin will fall back to the default tailwind classes.">]>, undefined>;
4
+ }, undefined>;
5
+ export type EntryPointOption = InferOutput<typeof ENTRYPOINT_OPTION_SCHEMA>;
6
+ export declare const TAILWIND_OPTION_SCHEMA: import("valibot").ObjectSchema<{
7
+ readonly tailwindConfig: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "The path to the tailwind config file. If not specified, the plugin will try to find it automatically or falls back to the default configuration.">]>, undefined>;
8
+ }, undefined>;
9
+ export type TailwindConfigOption = InferOutput<typeof TAILWIND_OPTION_SCHEMA>;
10
+ export declare const TSCONFIG_OPTION_SCHEMA: import("valibot").ObjectSchema<{
11
+ readonly tsconfig: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "The path to the tsconfig file. Is used to resolve path aliases in the tsconfig.">]>, undefined>;
12
+ }, undefined>;
13
+ export type TSConfigOption = InferOutput<typeof TSCONFIG_OPTION_SCHEMA>;
14
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/options/schemas/common.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,eAAO,MAAM,wBAAwB;;aAOnC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE5E,eAAO,MAAM,sBAAsB;;aAOjC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAE9E,eAAO,MAAM,sBAAsB;;aAOjC,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TSCONFIG_OPTION_SCHEMA = exports.TAILWIND_OPTION_SCHEMA = exports.ENTRYPOINT_OPTION_SCHEMA = void 0;
4
+ const valibot_1 = require("valibot");
5
+ exports.ENTRYPOINT_OPTION_SCHEMA = (0, valibot_1.object)({
6
+ entryPoint: (0, valibot_1.optional)((0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("The path to the css entry point of the project. If not specified, the plugin will fall back to the default tailwind classes.")))
7
+ });
8
+ exports.TAILWIND_OPTION_SCHEMA = (0, valibot_1.object)({
9
+ tailwindConfig: (0, valibot_1.optional)((0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("The path to the tailwind config file. If not specified, the plugin will try to find it automatically or falls back to the default configuration.")))
10
+ });
11
+ exports.TSCONFIG_OPTION_SCHEMA = (0, valibot_1.object)({
12
+ tsconfig: (0, valibot_1.optional)((0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("The path to the tsconfig file. Is used to resolve path aliases in the tsconfig.")))
13
+ });
14
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/options/schemas/common.ts"],"names":[],"mappings":";;;AAAA,qCAAsE;AAKzD,QAAA,wBAAwB,GAAG,IAAA,gBAAM,EAAC;IAC7C,UAAU,EAAE,IAAA,kBAAQ,EAClB,IAAA,cAAI,EACF,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,8HAA8H,CAAC,CAC5I,CACF;CACF,CAAC,CAAC;AAIU,QAAA,sBAAsB,GAAG,IAAA,gBAAM,EAAC;IAC3C,cAAc,EAAE,IAAA,kBAAQ,EACtB,IAAA,cAAI,EACF,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,kJAAkJ,CAAC,CAChK,CACF;CACF,CAAC,CAAC;AAIU,QAAA,sBAAsB,GAAG,IAAA,gBAAM,EAAC;IAC3C,QAAQ,EAAE,IAAA,kBAAQ,EAChB,IAAA,cAAI,EACF,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,iFAAiF,CAAC,CAC/F,CACF;CACF,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { MatcherType } from "../../types/rule.js";
2
+ export declare const STRING_MATCHER_SCHEMA: import("valibot").ObjectSchema<{
3
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.String, undefined>, import("valibot").DescriptionAction<MatcherType.String, "Matcher type that will be applied.">]>;
4
+ }, undefined>;
5
+ export declare const OBJECT_KEY_MATCHER_SCHEMA: import("valibot").ObjectSchema<{
6
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
7
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
8
+ }, undefined>;
9
+ export declare const OBJECT_VALUE_MATCHER_SCHEMA: import("valibot").ObjectSchema<{
10
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
11
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
12
+ }, undefined>;
13
+ //# sourceMappingURL=matchers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matchers.d.ts","sourceRoot":"","sources":["../../../../src/options/schemas/matchers.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAK/D,eAAO,MAAM,qBAAqB;;aAKM,CAAC;AAEzC,eAAO,MAAM,yBAAyB;;;aASE,CAAC;AAEzC,eAAO,MAAM,2BAA2B;;;aASA,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OBJECT_VALUE_MATCHER_SCHEMA = exports.OBJECT_KEY_MATCHER_SCHEMA = exports.STRING_MATCHER_SCHEMA = void 0;
4
+ const valibot_1 = require("valibot");
5
+ const rule_js_1 = require("../../types/rule.js");
6
+ exports.STRING_MATCHER_SCHEMA = (0, valibot_1.object)({
7
+ match: (0, valibot_1.pipe)((0, valibot_1.literal)(rule_js_1.MatcherType.String), (0, valibot_1.description)("Matcher type that will be applied."))
8
+ });
9
+ exports.OBJECT_KEY_MATCHER_SCHEMA = (0, valibot_1.object)({
10
+ match: (0, valibot_1.pipe)((0, valibot_1.literal)(rule_js_1.MatcherType.ObjectKey), (0, valibot_1.description)("Matcher type that will be applied.")),
11
+ pathPattern: (0, valibot_1.optional)((0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("Regular expression that filters the object key and matches the content for further processing in a group.")))
12
+ });
13
+ exports.OBJECT_VALUE_MATCHER_SCHEMA = (0, valibot_1.object)({
14
+ match: (0, valibot_1.pipe)((0, valibot_1.literal)(rule_js_1.MatcherType.ObjectValue), (0, valibot_1.description)("Matcher type that will be applied.")),
15
+ pathPattern: (0, valibot_1.optional)((0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("Regular expression that filters the object value and matches the content for further processing in a group.")))
16
+ });
17
+ //# sourceMappingURL=matchers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"matchers.js","sourceRoot":"","sources":["../../../../src/options/schemas/matchers.ts"],"names":[],"mappings":";;;AAAA,qCAA+E;AAE/E,8DAA+D;AAKlD,QAAA,qBAAqB,GAAG,IAAA,gBAAM,EAAC;IAC1C,KAAK,EAAE,IAAA,cAAI,EACT,IAAA,iBAAO,EAAC,qBAAW,CAAC,MAAM,CAAC,EAC3B,IAAA,qBAAW,EAAC,oCAAoC,CAAC,CAClD;CACF,CAAuC,CAAC;AAE5B,QAAA,yBAAyB,GAAG,IAAA,gBAAM,EAAC;IAC9C,KAAK,EAAE,IAAA,cAAI,EACT,IAAA,iBAAO,EAAC,qBAAW,CAAC,SAAS,CAAC,EAC9B,IAAA,qBAAW,EAAC,oCAAoC,CAAC,CAClD;IACD,WAAW,EAAE,IAAA,kBAAQ,EAAC,IAAA,cAAI,EACxB,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,2GAA2G,CAAC,CACzH,CAAC;CACH,CAAuC,CAAC;AAE5B,QAAA,2BAA2B,GAAG,IAAA,gBAAM,EAAC;IAChD,KAAK,EAAE,IAAA,cAAI,EACT,IAAA,iBAAO,EAAC,qBAAW,CAAC,WAAW,CAAC,EAChC,IAAA,qBAAW,EAAC,oCAAoC,CAAC,CAClD;IACD,WAAW,EAAE,IAAA,kBAAQ,EAAC,IAAA,cAAI,EACxB,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,6GAA6G,CAAC,CAC3H,CAAC;CACH,CAAuC,CAAC"}
@@ -0,0 +1,101 @@
1
+ import type { InferOutput } from "valibot";
2
+ declare const TAG_MATCHER_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
3
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
4
+ }, undefined>, import("valibot").ObjectSchema<{
5
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
6
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
7
+ }, undefined>, import("valibot").ObjectSchema<{
8
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
9
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
10
+ }, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
11
+ match: import("../../types/rule").MatcherType.String;
12
+ } | {
13
+ match: import("../../types/rule").MatcherType.ObjectKey;
14
+ pathPattern?: string | undefined;
15
+ } | {
16
+ match: import("../../types/rule").MatcherType.ObjectValue;
17
+ pathPattern?: string | undefined;
18
+ })[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
19
+ match: import("../../types/rule").MatcherType.String;
20
+ } | {
21
+ match: import("../../types/rule").MatcherType.ObjectKey;
22
+ pathPattern?: string | undefined;
23
+ } | {
24
+ match: import("../../types/rule").MatcherType.ObjectValue;
25
+ pathPattern?: string | undefined;
26
+ })[]], "List of matchers that will automatically be matched.">]>;
27
+ export type TagMatchers = InferOutput<typeof TAG_MATCHER_CONFIG>;
28
+ declare const TAG_NAME_CONFIG: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag that should get linted.">]>;
29
+ export type TagName = InferOutput<typeof TAG_NAME_CONFIG>;
30
+ export declare const TAGS_SCHEMA: import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
31
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
32
+ }, undefined>, import("valibot").ObjectSchema<{
33
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
34
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
35
+ }, undefined>, import("valibot").ObjectSchema<{
36
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
37
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
38
+ }, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
39
+ match: import("../../types/rule").MatcherType.String;
40
+ } | {
41
+ match: import("../../types/rule").MatcherType.ObjectKey;
42
+ pathPattern?: string | undefined;
43
+ } | {
44
+ match: import("../../types/rule").MatcherType.ObjectValue;
45
+ pathPattern?: string | undefined;
46
+ })[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
47
+ match: import("../../types/rule").MatcherType.String;
48
+ } | {
49
+ match: import("../../types/rule").MatcherType.ObjectKey;
50
+ pathPattern?: string | undefined;
51
+ } | {
52
+ match: import("../../types/rule").MatcherType.ObjectValue;
53
+ pathPattern?: string | undefined;
54
+ })[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag that should get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
55
+ match: import("../../types/rule").MatcherType.String;
56
+ } | {
57
+ match: import("../../types/rule").MatcherType.ObjectKey;
58
+ pathPattern?: string | undefined;
59
+ } | {
60
+ match: import("../../types/rule").MatcherType.ObjectValue;
61
+ pathPattern?: string | undefined;
62
+ })[]])[], "List of template literal tags that should get linted.">]>;
63
+ export type Tags = InferOutput<typeof TAGS_SCHEMA>;
64
+ export declare const TAGS_OPTIONS_SCHEMA: import("valibot").ObjectSchema<{
65
+ readonly tags: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").TupleSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag for which children get linted if matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
66
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.String, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.String, "Matcher type that will be applied.">]>;
67
+ }, undefined>, import("valibot").ObjectSchema<{
68
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectKey, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectKey, "Matcher type that will be applied.">]>;
69
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object key and matches the content for further processing in a group.">]>, undefined>;
70
+ }, undefined>, import("valibot").ObjectSchema<{
71
+ readonly match: import("valibot").SchemaWithPipe<readonly [import("valibot").LiteralSchema<import("../../types/rule").MatcherType.ObjectValue, undefined>, import("valibot").DescriptionAction<import("../../types/rule").MatcherType.ObjectValue, "Matcher type that will be applied.">]>;
72
+ readonly pathPattern: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Regular expression that filters the object value and matches the content for further processing in a group.">]>, undefined>;
73
+ }, undefined>], undefined>, undefined>, import("valibot").DescriptionAction<({
74
+ match: import("../../types/rule").MatcherType.String;
75
+ } | {
76
+ match: import("../../types/rule").MatcherType.ObjectKey;
77
+ pathPattern?: string | undefined;
78
+ } | {
79
+ match: import("../../types/rule").MatcherType.ObjectValue;
80
+ pathPattern?: string | undefined;
81
+ })[], "List of matchers that will be applied.">]>], undefined>, import("valibot").DescriptionAction<[string, ({
82
+ match: import("../../types/rule").MatcherType.String;
83
+ } | {
84
+ match: import("../../types/rule").MatcherType.ObjectKey;
85
+ pathPattern?: string | undefined;
86
+ } | {
87
+ match: import("../../types/rule").MatcherType.ObjectValue;
88
+ pathPattern?: string | undefined;
89
+ })[]], "List of matchers that will automatically be matched.">]>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").DescriptionAction<string, "Template literal tag that should get linted.">]>], undefined>, undefined>, import("valibot").DescriptionAction<(string | [string, ({
90
+ match: import("../../types/rule").MatcherType.String;
91
+ } | {
92
+ match: import("../../types/rule").MatcherType.ObjectKey;
93
+ pathPattern?: string | undefined;
94
+ } | {
95
+ match: import("../../types/rule").MatcherType.ObjectValue;
96
+ pathPattern?: string | undefined;
97
+ })[]])[], "List of template literal tags that should get linted.">]>, never[]>;
98
+ }, undefined>;
99
+ export type TagsOptions = InferOutput<typeof TAGS_OPTIONS_SCHEMA>;
100
+ export {};
101
+ //# sourceMappingURL=tags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tags.d.ts","sourceRoot":"","sources":["../../../../src/options/schemas/tags.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAG3C,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;gEAkBvB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEjE,QAAA,MAAM,eAAe,qLAGpB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,eAAe,CAAC,CAAC;AAE1D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEAQvB,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,WAAW,CAAC,OAAO,WAAW,CAAC,CAAC;AAEnD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAEQ,CAAC;AAEzC,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TAGS_OPTIONS_SCHEMA = exports.TAGS_SCHEMA = void 0;
4
+ const valibot_1 = require("valibot");
5
+ const default_options_js_1 = require("../default-options.js");
6
+ const matchers_js_1 = require("../schemas/matchers.js");
7
+ const TAG_MATCHER_CONFIG = (0, valibot_1.pipe)((0, valibot_1.tuple)([
8
+ (0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("Template literal tag for which children get linted if matched.")),
9
+ (0, valibot_1.pipe)((0, valibot_1.array)((0, valibot_1.union)([
10
+ matchers_js_1.STRING_MATCHER_SCHEMA,
11
+ matchers_js_1.OBJECT_KEY_MATCHER_SCHEMA,
12
+ matchers_js_1.OBJECT_VALUE_MATCHER_SCHEMA
13
+ ])), (0, valibot_1.description)("List of matchers that will be applied."))
14
+ ]), (0, valibot_1.description)("List of matchers that will automatically be matched."));
15
+ const TAG_NAME_CONFIG = (0, valibot_1.pipe)((0, valibot_1.string)(), (0, valibot_1.description)("Template literal tag that should get linted."));
16
+ exports.TAGS_SCHEMA = (0, valibot_1.pipe)((0, valibot_1.array)((0, valibot_1.union)([
17
+ TAG_MATCHER_CONFIG,
18
+ TAG_NAME_CONFIG
19
+ ])), (0, valibot_1.description)("List of template literal tags that should get linted."));
20
+ exports.TAGS_OPTIONS_SCHEMA = (0, valibot_1.object)({
21
+ tags: (0, valibot_1.optional)(exports.TAGS_SCHEMA, default_options_js_1.DEFAULT_TAG_NAMES)
22
+ });
23
+ //# sourceMappingURL=tags.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tags.js","sourceRoot":"","sources":["../../../../src/options/schemas/tags.ts"],"names":[],"mappings":";;;AAAA,qCASiB;AAEjB,sFAAkF;AAClF,gFAIwD;AAMxD,MAAM,kBAAkB,GAAG,IAAA,cAAI,EAC7B,IAAA,eAAK,EAAC;IACJ,IAAA,cAAI,EACF,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,gEAAgE,CAAC,CAC9E;IACD,IAAA,cAAI,EACF,IAAA,eAAK,EACH,IAAA,eAAK,EAAC;QACJ,mCAAqB;QACrB,uCAAyB;QACzB,yCAA2B;KAC5B,CAAC,CACH,EACD,IAAA,qBAAW,EAAC,wCAAwC,CAAC,CACtD;CACF,CAAC,EACF,IAAA,qBAAW,EAAC,sDAAsD,CAAC,CACpE,CAAC;AAIF,MAAM,eAAe,GAAG,IAAA,cAAI,EAC1B,IAAA,gBAAM,GAAE,EACR,IAAA,qBAAW,EAAC,8CAA8C,CAAC,CAC5D,CAAC;AAIW,QAAA,WAAW,GAAG,IAAA,cAAI,EAC7B,IAAA,eAAK,EACH,IAAA,eAAK,EAAC;IACJ,kBAAkB;IAClB,eAAe;CAChB,CAAC,CACH,EACD,IAAA,qBAAW,EAAC,uDAAuD,CAAC,CACrE,CAAC;AAIW,QAAA,mBAAmB,GAAG,IAAA,gBAAM,EAAC;IACxC,IAAI,EAAE,IAAA,kBAAQ,EAAC,mBAAW,EAAE,sCAAiB,CAAC;CAC/C,CAAuC,CAAC"}