html-validate-vue 9.1.0 → 9.3.0

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/README.md CHANGED
@@ -52,12 +52,13 @@ If you're using Vue CLI you can add the CLI plugin:
52
52
 
53
53
  ## Rules
54
54
 
55
- | Rule | Recommended | Description |
56
- | --------------------------- | ----------- | ------------------------------------------------------ |
57
- | `vue/available-slots` | Error | Validate usage of slots. Only known slots may be used. |
58
- | `vue/deprecated-slot` | Error | Report errors when deprecated slots are used. |
59
- | `vue/prefer-slot-shorthand` | Error | Prefers the usage of `#foo` over `v-slot:foo`. |
60
- | `vue/required-slots` | Error | Validate required slots. Required slots must be used. |
55
+ | Rule | Recommended | Description |
56
+ | ------------------------------ | ----------- | ------------------------------------------------------------------- |
57
+ | `vue/available-slots` | Error | Validate usage of slots. Only known slots may be used. |
58
+ | `vue/deprecated-slot` | Error | Report errors when deprecated slots are used. |
59
+ | `vue/prefer-boolean-shorthand` | Error | Prefer native boolean syntax (`prop`) over `:prop="true"` bindings. |
60
+ | `vue/prefer-slot-shorthand` | Error | Prefers the usage of `#foo` over `v-slot:foo`. |
61
+ | `vue/required-slots` | Error | Validate required slots. Required slots must be used. |
61
62
 
62
63
  ## Element metadata
63
64
 
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  // src/index.ts
4
- var import_html_validate8 = require("html-validate");
4
+ var import_html_validate9 = require("html-validate");
5
5
 
6
6
  // package.json
7
7
  var name = "html-validate-vue";
@@ -12,17 +12,44 @@ var peerDependencies = {
12
12
  // src/elements.ts
13
13
  var import_html_validate = require("html-validate");
14
14
  var elements_default = (0, import_html_validate.defineMetadata)({
15
+ "*": {
16
+ attributes: {
17
+ /* https://vuejs.org/api/built-in-special-attributes.html#is */
18
+ is: {},
19
+ /* https://vuejs.org/api/built-in-special-attributes.html#key */
20
+ key: {},
21
+ /* https://vuejs.org/api/built-in-special-attributes.html#ref */
22
+ ref: {},
23
+ /* directives */
24
+ "v-*": {},
25
+ /* props */
26
+ ":*": {},
27
+ /* event listeners */
28
+ "@*": {}
29
+ }
30
+ },
15
31
  component: {
16
32
  flow: true,
17
33
  phrasing: true,
18
34
  transparent: true,
19
35
  component: "is",
20
- requiredAttributes: ["is"]
36
+ attributes: {
37
+ is: {
38
+ required: true
39
+ }
40
+ }
21
41
  },
22
42
  "keep-alive": {
23
43
  flow: true,
24
44
  phrasing: true,
25
- transparent: true
45
+ transparent: true,
46
+ attributes: {
47
+ include: {},
48
+ exclude: {},
49
+ max: {
50
+ enum: [/^\d+$/]
51
+ }
52
+ }
26
53
  },
27
54
  portal: {
28
55
  deprecated: {
@@ -34,38 +61,173 @@ var elements_default = (0, import_html_validate.defineMetadata)({
34
61
  "router-link": {
35
62
  flow: true,
36
63
  phrasing: true,
37
- transparent: true
64
+ transparent: true,
65
+ attributes: {
66
+ "active-class": {
67
+ enum: ["/.+/"]
68
+ },
69
+ "aria-current-value": {
70
+ enum: ["location", "time", "true", "false", "page", "step", "date"]
71
+ },
72
+ custom: {
73
+ boolean: true
74
+ },
75
+ "exact-active-class": {
76
+ enum: ["/.+/"]
77
+ },
78
+ replace: {
79
+ boolean: true
80
+ },
81
+ to: {
82
+ enum: ["/.+/"],
83
+ required: true
84
+ }
85
+ }
38
86
  },
39
87
  "router-view": {
40
88
  flow: true,
41
- slots: ["default"]
89
+ slots: ["default"],
90
+ attributes: {
91
+ name: {
92
+ enum: ["/.+/"]
93
+ },
94
+ route: {}
95
+ }
42
96
  },
43
97
  slot: {
44
98
  flow: true,
45
99
  phrasing: true,
46
100
  transparent: true,
47
- scriptSupporting: true
101
+ scriptSupporting: true,
102
+ attributes: {
103
+ name: {},
104
+ /* scoped slot can take arbitrary bindings */
105
+ "*": {}
106
+ }
48
107
  },
49
108
  suspense: {
50
109
  flow: true,
51
110
  phrasing: true,
52
111
  transparent: true,
53
- slots: ["default", "fallback"]
112
+ slots: ["default", "fallback"],
113
+ attributes: {
114
+ timeout: {
115
+ enum: [/^\d+$/]
116
+ },
117
+ suspensible: {
118
+ boolean: true
119
+ }
120
+ }
54
121
  },
55
122
  teleport: {
56
123
  flow: true,
57
- phrasing: true
124
+ phrasing: true,
125
+ attributes: {
126
+ defer: {
127
+ boolean: true
128
+ },
129
+ disabled: {
130
+ boolean: true
131
+ },
132
+ to: {
133
+ enum: ["/.+/"]
134
+ }
135
+ }
136
+ },
137
+ template: {
138
+ attributes: {
139
+ "#*": {}
140
+ }
58
141
  },
59
142
  transition: {
60
143
  flow: true,
61
144
  phrasing: true,
62
- transparent: true
145
+ transparent: true,
146
+ attributes: {
147
+ name: {
148
+ enum: ["/.+/"]
149
+ },
150
+ "enter-from-class": {
151
+ enum: ["/.+/"]
152
+ },
153
+ "enter-active-class": {
154
+ enum: ["/.+/"]
155
+ },
156
+ "enter-to-class": {
157
+ enum: ["/.+/"]
158
+ },
159
+ "leave-from-class": {
160
+ enum: ["/.+/"]
161
+ },
162
+ "leave-active-class": {
163
+ enum: ["/.+/"]
164
+ },
165
+ "leave-to-class": {
166
+ enum: ["/.+/"]
167
+ },
168
+ type: {
169
+ enum: ["transition", "animation"]
170
+ },
171
+ duration: {
172
+ enum: [/^\d+$/]
173
+ },
174
+ css: {
175
+ boolean: true
176
+ },
177
+ appear: {
178
+ boolean: true
179
+ },
180
+ mode: {
181
+ enum: ["in-out", "out-in", "default"]
182
+ }
183
+ }
63
184
  },
64
185
  "transition-group": {
65
186
  flow: true,
66
187
  phrasing: true,
67
188
  transparent: true,
68
- component: "tag"
189
+ component: "tag",
190
+ attributes: {
191
+ name: {
192
+ enum: ["/.+/"]
193
+ },
194
+ "enter-from-class": {
195
+ enum: ["/.+/"]
196
+ },
197
+ "enter-active-class": {
198
+ enum: ["/.+/"]
199
+ },
200
+ "enter-to-class": {
201
+ enum: ["/.+/"]
202
+ },
203
+ "leave-from-class": {
204
+ enum: ["/.+/"]
205
+ },
206
+ "leave-active-class": {
207
+ enum: ["/.+/"]
208
+ },
209
+ "leave-to-class": {
210
+ enum: ["/.+/"]
211
+ },
212
+ type: {
213
+ enum: ["transition", "animation"]
214
+ },
215
+ duration: {
216
+ enum: [/^\d+$/]
217
+ },
218
+ css: {
219
+ boolean: true
220
+ },
221
+ appear: {
222
+ boolean: true
223
+ },
224
+ "move-class": {
225
+ enum: ["/.+/"]
226
+ },
227
+ tag: {
228
+ enum: ["/.+/"]
229
+ }
230
+ }
69
231
  }
70
232
  });
71
233
 
@@ -81,6 +243,7 @@ function createConfig() {
81
243
  "no-self-closing": "off",
82
244
  /* enable rules from this plugin */
83
245
  "vue/available-slots": "error",
246
+ "vue/prefer-boolean-shorthand": "error",
84
247
  "vue/prefer-slot-shorthand": "error",
85
248
  "vue/required-slots": "error"
86
249
  }
@@ -241,8 +404,40 @@ var DeprecatedSlot = class extends import_html_validate3.Rule {
241
404
  }
242
405
  };
243
406
 
244
- // src/rules/prefer-slot-shorthand.ts
407
+ // src/rules/prefer-boolean-shorthand.ts
245
408
  var import_html_validate4 = require("html-validate");
409
+ var PreferBooleanShorthand = class extends import_html_validate4.Rule {
410
+ documentation(context) {
411
+ const { prop, originalAttribute } = context;
412
+ return {
413
+ description: [
414
+ `Use \`${prop}\` instead of \`${originalAttribute}="true"\`.`,
415
+ "",
416
+ `The \`${prop}\` prop is declared as a boolean. Vue.js allows omitting the value for boolean props, so \`${prop}\` is equivalent to \`${originalAttribute}="true"\`.`
417
+ ].join("\n")
418
+ };
419
+ }
420
+ setup() {
421
+ this.on("attr", (event) => {
422
+ const { key, value, meta, originalAttribute, target, location } = event;
423
+ if (!originalAttribute) {
424
+ return;
425
+ }
426
+ if (!meta?.boolean) {
427
+ return;
428
+ }
429
+ if (!(value instanceof import_html_validate4.DynamicValue) || value.expr !== "true") {
430
+ return;
431
+ }
432
+ const context = { prop: key, originalAttribute };
433
+ const message = `Use "${key}" instead of "${originalAttribute}="true""`;
434
+ this.report(target, message, location, context);
435
+ });
436
+ }
437
+ };
438
+
439
+ // src/rules/prefer-slot-shorthand.ts
440
+ var import_html_validate5 = require("html-validate");
246
441
  var prefix = "v-slot:";
247
442
  function isVSlot(attr) {
248
443
  if (!attr.startsWith(prefix)) {
@@ -261,7 +456,7 @@ function isDeprecatedSlot(attr, value) {
261
456
  if (attr !== "slot") {
262
457
  return null;
263
458
  }
264
- if (value instanceof import_html_validate4.DynamicValue) {
459
+ if (value instanceof import_html_validate5.DynamicValue) {
265
460
  return null;
266
461
  }
267
462
  if (value === null || value === "") {
@@ -269,7 +464,7 @@ function isDeprecatedSlot(attr, value) {
269
464
  }
270
465
  return value;
271
466
  }
272
- var PreferSlotShorthand = class extends import_html_validate4.Rule {
467
+ var PreferSlotShorthand = class extends import_html_validate5.Rule {
273
468
  documentation(context) {
274
469
  const slot = context?.slot ?? "my-slot";
275
470
  return {
@@ -301,7 +496,7 @@ var PreferSlotShorthand = class extends import_html_validate4.Rule {
301
496
  };
302
497
 
303
498
  // src/rules/required-slots.ts
304
- var import_html_validate5 = require("html-validate");
499
+ var import_html_validate6 = require("html-validate");
305
500
  function difference2(a, b) {
306
501
  const result = new Set(a);
307
502
  for (const elem of b) {
@@ -309,7 +504,7 @@ function difference2(a, b) {
309
504
  }
310
505
  return result;
311
506
  }
312
- var RequiredSlots = class extends import_html_validate5.Rule {
507
+ var RequiredSlots = class extends import_html_validate6.Rule {
313
508
  documentation(context) {
314
509
  if (context) {
315
510
  return {
@@ -328,7 +523,7 @@ var RequiredSlots = class extends import_html_validate5.Rule {
328
523
  setup() {
329
524
  this.on("dom:ready", (event) => {
330
525
  const doc = event.document;
331
- import_html_validate5.walk.depthFirst(doc, (node) => {
526
+ import_html_validate6.walk.depthFirst(doc, (node) => {
332
527
  const meta = node.meta;
333
528
  if (!meta?.requiredSlots) {
334
529
  return;
@@ -362,6 +557,7 @@ var RequiredSlots = class extends import_html_validate5.Rule {
362
557
  var rules = {
363
558
  "vue/available-slots": AvailableSlots,
364
559
  "vue/deprecated-slot": DeprecatedSlot,
560
+ "vue/prefer-boolean-shorthand": PreferBooleanShorthand,
365
561
  "vue/prefer-slot-shorthand": PreferSlotShorthand,
366
562
  "vue/required-slots": RequiredSlots
367
563
  };
@@ -398,7 +594,7 @@ var schema_default = {
398
594
  };
399
595
 
400
596
  // src/hooks/attribute.ts
401
- var import_html_validate6 = require("html-validate");
597
+ var import_html_validate7 = require("html-validate");
402
598
  function* processAttribute(attr) {
403
599
  yield attr;
404
600
  const bind = /^(?:v-bind)?:(.*)$/.exec(attr.key);
@@ -407,14 +603,14 @@ function* processAttribute(attr) {
407
603
  yield {
408
604
  ...attr,
409
605
  key,
410
- value: new import_html_validate6.DynamicValue(attr.value ? String(attr.value) : ""),
606
+ value: new import_html_validate7.DynamicValue(attr.value ? String(attr.value) : ""),
411
607
  originalAttribute: attr.key
412
608
  };
413
609
  }
414
610
  }
415
611
 
416
612
  // src/hooks/element.ts
417
- var import_html_validate7 = require("html-validate");
613
+ var import_html_validate8 = require("html-validate");
418
614
  function isBound(node) {
419
615
  return node.hasAttribute("v-html");
420
616
  }
@@ -474,7 +670,7 @@ function processElement(node) {
474
670
  node.meta.templateRoot = false;
475
671
  }
476
672
  if (isBound(node) || isSlot(node)) {
477
- node.appendText(new import_html_validate7.DynamicValue(""), node.location);
673
+ node.appendText(new import_html_validate8.DynamicValue(""), node.location);
478
674
  }
479
675
  }
480
676
 
@@ -590,7 +786,7 @@ var transform_default = transformer;
590
786
 
591
787
  // src/index.ts
592
788
  var range = peerDependencies["html-validate"];
593
- (0, import_html_validate8.compatibilityCheck)(name, range);
789
+ (0, import_html_validate9.compatibilityCheck)(name, range);
594
790
  var plugin = {
595
791
  name,
596
792
  configs: configs_default,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/index.ts", "../../package.json", "../../src/elements.ts", "../../src/configs/recommended.ts", "../../src/configs/index.ts", "../../src/rules/available-slots.ts", "../../src/utils/strip-templating.ts", "../../src/utils/slots.ts", "../../src/rules/deprecated-slot.ts", "../../src/rules/prefer-slot-shorthand.ts", "../../src/rules/required-slots.ts", "../../src/rules/index.ts", "../../src/schema.json", "../../src/hooks/attribute.ts", "../../src/hooks/element.ts", "../../src/transform/html.transform.ts", "../../src/transform/js.transform.ts", "../../src/transform/sfc.transform.ts", "../../src/transform/auto.transform.ts", "../../src/transform/index.ts", "../../src/entry-cjs.ts"],
4
- "sourcesContent": ["import { type Plugin, compatibilityCheck } from \"html-validate\";\nimport { name, peerDependencies } from \"../package.json\";\nimport configs from \"./configs\";\nimport rules from \"./rules\";\nimport elementSchema from \"./schema.json\";\nimport transformer from \"./transform\";\n\nconst range = peerDependencies[\"html-validate\"];\ncompatibilityCheck(name, range);\n\nconst plugin: Plugin = {\n\tname,\n\tconfigs,\n\trules,\n\ttransformer,\n\telementSchema,\n};\n\nexport default plugin;\n", "{\n \"name\": \"html-validate-vue\",\n \"version\": \"9.0.0\",\n \"description\": \"vue transform for html-validate\",\n \"keywords\": [\n \"html\",\n \"lint\",\n \"html-validate\",\n \"vue\"\n ],\n \"homepage\": \"https://html-validate.org/frameworks/vue.html\",\n \"bugs\": {\n \"url\": \"https://gitlab.com/html-validate/html-validate-vue/issues/new\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://gitlab.com/html-validate/html-validate-vue.git\"\n },\n \"license\": \"MIT\",\n \"author\": \"David Sveningsson <ext@sidvind.com>\",\n \"exports\": {\n \".\": {\n \"import\": {\n \"types\": \"./dist/esm/index.d.mts\",\n \"default\": \"./dist/esm/index.mjs\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/index.d.cts\",\n \"default\": \"./dist/cjs/index.cjs\"\n }\n }\n },\n \"main\": \"dist/cjs/index.cjs\",\n \"module\": \"dist/esm/index.mjs\",\n \"files\": [\n \"dist\"\n ],\n \"scripts\": {\n \"prebuild\": \"tsc\",\n \"build\": \"run-s build:*\",\n \"build:lib\": \"node build.mjs\",\n \"build:cjs\": \"dts-bundle-generator --no-banner --project tsconfig.cjs.json -o dist/cjs/index.d.cts src/entry-cjs.ts\",\n \"build:esm\": \"dts-bundle-generator --no-banner --project tsconfig.esm.json -o dist/esm/index.d.mts src/entry-esm.ts\",\n \"eslint\": \"eslint --cache .\",\n \"eslint:fix\": \"eslint --cache --fix .\",\n \"prepack\": \"release-prepack package.json --bundle\",\n \"postpack\": \"release-postpack package.json\",\n \"prepare\": \"husky\",\n \"prepublishOnly\": \"release-prepack package.json --bundle\",\n \"prettier:check\": \"prettier --check .\",\n \"prettier:write\": \"prettier --write .\",\n \"postpublish\": \"release-postpack package.json\",\n \"attw\": \"attw --no-emoji --pack .\",\n \"test\": \"jest\"\n },\n \"commitlint\": {\n \"extends\": \"@html-validate\"\n },\n \"prettier\": \"@html-validate/prettier-config\",\n \"release\": {\n \"extends\": \"@html-validate/semantic-release-config\"\n },\n \"jest\": {\n \"preset\": \"@html-validate/jest-config\"\n },\n \"dependencies\": {\n \"@html-validate/plugin-utils\": \"^4.0.0\"\n },\n \"devDependencies\": {\n \"@arethetypeswrong/cli\": \"0.18.2\",\n \"@html-validate/commitlint-config\": \"4.0.1\",\n \"@html-validate/eslint-config\": \"9.1.1\",\n \"@html-validate/eslint-config-jest\": \"9.1.1\",\n \"@html-validate/eslint-config-typescript\": \"9.1.1\",\n \"@html-validate/eslint-config-typescript-typeinfo\": \"9.1.1\",\n \"@html-validate/jest-config\": \"3.18.0\",\n \"@html-validate/prettier-config\": \"4.0.0\",\n \"@html-validate/release-scripts\": \"7.2.0\",\n \"@jest/globals\": \"30.4.1\",\n \"@tsconfig/node22\": \"22.0.5\",\n \"@tsconfig/strictest\": \"2.0.8\",\n \"@types/estree\": \"1.0.9\",\n \"@types/node\": \"22.19.19\",\n \"@types/semver\": \"7.7.1\",\n \"dts-bundle-generator\": \"9.5.1\",\n \"esbuild\": \"0.28.0\",\n \"html-validate\": \"11.1.0\",\n \"husky\": \"9.1.7\",\n \"jest\": \"30.4.2\",\n \"jest-environment-jsdom\": \"30.4.1\",\n \"npm-pkg-lint\": \"5.1.0\",\n \"npm-run-all2\": \"8.0.4\",\n \"semver\": \"7.8.0\",\n \"ts-jest\": \"29.4.9\",\n \"typescript\": \"6.0.3\"\n },\n \"peerDependencies\": {\n \"html-validate\": \"^8.21.0 || ^9.0.0 || ^10.0.0 || ^11.0.0\"\n },\n \"engines\": {\n \"node\": \"^22.16 || >= 24\"\n },\n \"externalDependencies\": [\n \"@html-validate/plugin-utils\"\n ]\n}\n", "import { defineMetadata } from \"html-validate\";\n\nexport default defineMetadata({\n\tcomponent: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tcomponent: \"is\",\n\t\trequiredAttributes: [\"is\"],\n\t},\n\n\t\"keep-alive\": {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t},\n\n\tportal: {\n\t\tdeprecated: {\n\t\t\tsource: \"vue\",\n\t\t\tmessage: \"the <portal> element has been renamed to <teleport>\",\n\t\t\tdocumentation: \"The `<portal>` element has been renamed to `<teleport>`\",\n\t\t},\n\t},\n\n\t\"router-link\": {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t},\n\n\t\"router-view\": {\n\t\tflow: true,\n\t\tslots: [\"default\"],\n\t},\n\n\tslot: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tscriptSupporting: true,\n\t},\n\n\tsuspense: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tslots: [\"default\", \"fallback\"],\n\t},\n\n\tteleport: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t},\n\n\ttransition: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t},\n\n\t\"transition-group\": {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tcomponent: \"tag\",\n\t},\n});\n", "import { type ConfigData } from \"html-validate\";\nimport vueElements from \"../elements\";\n\nexport function createConfig(): ConfigData {\n\tconst config: ConfigData = {\n\t\telements: [vueElements],\n\t\trules: {\n\t\t\t/* vue modifiers often use camelcase so allow by default */\n\t\t\t\"attr-case\": [\"error\", { style: \"camelcase\" }],\n\n\t\t\t/* self closing tags often used in vue code so allow by default*/\n\t\t\t\"void-style\": [\"error\", { style: \"selfclose\" }],\n\t\t\t\"no-self-closing\": \"off\",\n\n\t\t\t/* enable rules from this plugin */\n\t\t\t\"vue/available-slots\": \"error\",\n\t\t\t\"vue/prefer-slot-shorthand\": \"error\",\n\t\t\t\"vue/required-slots\": \"error\",\n\t\t},\n\t};\n\n\treturn config;\n}\n\nexport default createConfig();\n", "import recommended from \"./recommended\";\n\nexport default {\n\trecommended,\n};\n", "import {\n\ttype DOMReadyEvent,\n\ttype HtmlElement,\n\ttype RuleDocumentation,\n\tRule,\n\twalk,\n} from \"html-validate\";\nimport { findUsedSlots } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\tinterface MetaData {\n\t\tslots?: string[];\n\t}\n\tinterface MetaElement {\n\t\tslots?: string[];\n\t}\n}\n\nexport interface RuleContext {\n\telement: string;\n\tslot: string;\n\tavailable: string[];\n}\n\nfunction difference<T>(a: Set<T>, b: Set<T>): Set<T> {\n\tconst result = new Set(a);\n\tfor (const elem of b) {\n\t\tresult.delete(elem);\n\t}\n\treturn result;\n}\n\nexport class AvailableSlots extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tif (context) {\n\t\t\treturn {\n\t\t\t\tdescription: [\n\t\t\t\t\t`The <${context.element}> component does not have a slot named \"${context.slot}\". Only known slots can be specified.`,\n\t\t\t\t\t\"\",\n\t\t\t\t\t\"The following slots are available\",\n\t\t\t\t]\n\t\t\t\t\t.concat(context.available.map((slot) => `- ${slot}`))\n\t\t\t\t\t.join(\"\\n\"),\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tdescription: \"Only known slots can be specified.\",\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"dom:ready\", (event: DOMReadyEvent) => {\n\t\t\tconst doc = event.document;\n\t\t\twalk.depthFirst(doc, (node: HtmlElement) => {\n\t\t\t\t/* ignore rule if element has no meta or meta does not specify available slots */\n\t\t\t\tconst meta = node.meta;\n\t\t\t\tif (!meta?.slots) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.validateSlots(node, meta.slots);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate validateSlots(node: HtmlElement, slots: string[]): void {\n\t\tconst usedSlots = findUsedSlots(node);\n\t\tconst available = new Set(slots);\n\t\tconst used = new Set(usedSlots.keys());\n\t\tconst diff = difference(used, available);\n\n\t\tfor (const missing of diff) {\n\t\t\tconst context: RuleContext = {\n\t\t\t\telement: node.tagName,\n\t\t\t\tslot: missing,\n\t\t\t\tavailable: slots,\n\t\t\t};\n\t\t\tthis.report(\n\t\t\t\tnode,\n\t\t\t\t`<${node.tagName}> component has no slot \"${missing}\"`,\n\t\t\t\tusedSlots.get(missing),\n\t\t\t\tcontext,\n\t\t\t);\n\t\t}\n\t}\n}\n", "/**\n * Strip anything inside `{{ .. }}` in case it contains anything that looks like\n * markup, i.e. it will be ignored\n */\nexport function stripTemplating(str: string): string {\n\t/* eslint-disable-next-line sonarjs/slow-regex -- technical debt, should refactor */\n\treturn str.replaceAll(/{{(.*?)}}/g, (_, m: string) => {\n\t\tconst filler = \" \".repeat(m.length);\n\t\treturn `{{${filler}}}`;\n\t});\n}\n", "import { type HtmlElement, type Location } from \"html-validate\";\n\nconst slotAttr = /(?:v-slot:|#)([^[]+)/;\n\nfunction haveSlot(value: [string, Location] | null): value is [string, Location] {\n\treturn value !== null;\n}\n\n/**\n * Search all children for slots and return both slot names and locations.\n */\nexport function findUsedSlots(node: HtmlElement): Map<string, Location> {\n\tconst template = node.querySelectorAll(\">template, >[slot]\");\n\tconst slots = template.map((child) => findSlotAttribute(child)).filter(haveSlot);\n\tconst initial = new Map<string, Location>();\n\treturn slots.reduce((result: Map<string, Location>, [key, val]) => {\n\t\tresult.set(key, val);\n\t\treturn result;\n\t}, initial);\n}\n\n/**\n * Find the name of the slot and its location used by an element. Searches\n * both v-slot:foo and slot=\"foo\".\n */\nexport function findSlotAttribute(node: HtmlElement): [string, Location] | null {\n\tfor (const attr of node.attributes) {\n\t\t/* find v-slot directive */\n\t\tconst match = slotAttr.exec(attr.key);\n\t\tif (match) {\n\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- if slot matches [1] will exist */\n\t\t\tconst slot = match[1]!;\n\t\t\treturn [slot, attr.keyLocation];\n\t\t}\n\n\t\t/* find deprecated slot attribute */\n\t\tif (attr.key === \"slot\" && typeof attr.value === \"string\") {\n\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- valueLocation will always be set the value is present */\n\t\t\treturn [attr.value, attr.valueLocation!];\n\t\t}\n\t}\n\treturn null;\n}\n", "import {\n\ttype DOMReadyEvent,\n\ttype HtmlElement,\n\ttype RuleDocumentation,\n\tRule,\n\twalk,\n} from \"html-validate\";\nimport { findUsedSlots } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\tinterface MetaData {\n\t\tdeprecatedSlots?: Record<string, boolean | string>;\n\t}\n\tinterface MetaElement {\n\t\trequiredSlots?: string[];\n\t\tdeprecatedSlots?: Record<string, boolean | string>;\n\t}\n}\n\n/** @internal */\nexport interface RuleContext {\n\telement: string;\n\tslot: string;\n\tinfo: string | null;\n}\n\nexport class DeprecatedSlot extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tif (context) {\n\t\t\tconst preamble = `The slot \\`${context.slot}\\` is deprecated and must not be used`;\n\t\t\treturn {\n\t\t\t\tdescription: context.info ? `${preamble}: ${context.info}.` : `${preamble}.`,\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tdescription: \"This slot is deprecated and must not be used.\",\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"dom:ready\", (event: DOMReadyEvent) => {\n\t\t\tconst doc = event.document;\n\t\t\twalk.depthFirst(doc, (node: HtmlElement) => {\n\t\t\t\t/* ignore rule if element has no meta or meta does not specify deprecated slots */\n\t\t\t\tconst deprecatedSlots = node.meta?.deprecatedSlots;\n\t\t\t\tif (!deprecatedSlots) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.validateSlots(node, deprecatedSlots);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate validateSlots(\n\t\tnode: HtmlElement,\n\t\tdeprecatedSlots: Record<string, boolean | string>,\n\t): void {\n\t\tconst slots = findUsedSlots(node);\n\t\tfor (const [slot, location] of slots.entries()) {\n\t\t\tconst deprecated = deprecatedSlots[slot];\n\t\t\tif (!deprecated) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst context: RuleContext = {\n\t\t\t\telement: node.tagName,\n\t\t\t\tslot,\n\t\t\t\tinfo: typeof deprecated === \"string\" ? deprecated : null,\n\t\t\t};\n\t\t\tconst preamble = `slot \"${slot}\" is deprecated`;\n\t\t\tconst message = typeof deprecated === \"string\" ? `${preamble}: ${deprecated}` : preamble;\n\t\t\tthis.report({\n\t\t\t\tnode,\n\t\t\t\tmessage,\n\t\t\t\tlocation,\n\t\t\t\tcontext,\n\t\t\t});\n\t\t}\n\t}\n}\n", "import { type AttributeEvent, type RuleDocumentation, DynamicValue, Rule } from \"html-validate\";\n\nexport interface RuleContext {\n\tslot: string;\n}\n\nconst prefix = \"v-slot:\";\n\nfunction isVSlot(attr: string): string | null {\n\tif (!attr.startsWith(prefix)) {\n\t\treturn null;\n\t}\n\tif (attr.length <= prefix.length) {\n\t\treturn null;\n\t}\n\tconst slot = attr.slice(prefix.length);\n\tif (/^\\[.*]$/.test(slot)) {\n\t\treturn null;\n\t}\n\treturn slot;\n}\n\nfunction isDeprecatedSlot(attr: string, value: null | string | DynamicValue): string | null {\n\tif (attr !== \"slot\") {\n\t\treturn null;\n\t}\n\tif (value instanceof DynamicValue) {\n\t\treturn null;\n\t}\n\tif (value === null || value === \"\") {\n\t\treturn null;\n\t}\n\treturn value;\n}\n\nexport class PreferSlotShorthand extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tconst slot = context?.slot ?? \"my-slot\";\n\t\treturn {\n\t\t\tdescription: [\n\t\t\t\t`Prefer to use \\`#${slot}\\` over \\`v-slot:${slot}\\`.`,\n\t\t\t\t\"\",\n\t\t\t\t\"Vue.js supports a shorthand syntax for slots using `#` instead of `v-slot:` or the deprecated `slot` attribute, e.g. using `#header` instead of `v-slot:header`.\",\n\t\t\t].join(\"\\n\"),\n\t\t};\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"attr\", (event: AttributeEvent) => {\n\t\t\tconst { key: attr, value, target, keyLocation: location } = event;\n\n\t\t\tlet slot: string | null;\n\n\t\t\t/* handle v-slot:xyz */\n\t\t\tslot = isVSlot(attr);\n\t\t\tif (slot) {\n\t\t\t\tconst context: RuleContext = { slot };\n\t\t\t\tconst message = `Prefer to use #${slot} over ${attr}`;\n\t\t\t\tthis.report(target, message, location, context);\n\t\t\t}\n\n\t\t\t/* handle slot=\"xyz\" */\n\t\t\tslot = isDeprecatedSlot(attr, value);\n\t\t\tif (slot) {\n\t\t\t\tconst context: RuleContext = { slot };\n\t\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- value is checked by isDeprecatedSlot */\n\t\t\t\tconst message = `Prefer to use #${slot} over ${attr}=\"${value!.toString()}\"`;\n\t\t\t\tthis.report(target, message, location, context);\n\t\t\t}\n\t\t});\n\t}\n}\n", "import {\n\ttype DOMReadyEvent,\n\ttype HtmlElement,\n\ttype RuleDocumentation,\n\tRule,\n\twalk,\n} from \"html-validate\";\nimport { findUsedSlots } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\tinterface MetaData {\n\t\trequiredSlots?: string[];\n\t}\n\tinterface MetaElement {\n\t\trequiredSlots?: string[];\n\t}\n}\n\nexport interface RuleContext {\n\telement: string;\n\tslot: string;\n\trequired: string[];\n}\n\nfunction difference<T>(a: Set<T>, b: Set<T>): Set<T> {\n\tconst result = new Set(a);\n\tfor (const elem of b) {\n\t\tresult.delete(elem);\n\t}\n\treturn result;\n}\n\nexport class RequiredSlots extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tif (context) {\n\t\t\treturn {\n\t\t\t\tdescription: [\n\t\t\t\t\t`The <${context.element}> component requires slot \"${context.slot}\" to be implemented. Add \\`<template v-slot:${context.slot}>\\``,\n\t\t\t\t\t\"\",\n\t\t\t\t\t\"The following slots are required\",\n\t\t\t\t]\n\t\t\t\t\t.concat(context.required.map((slot) => `- ${slot}`))\n\t\t\t\t\t.join(\"\\n\"),\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tdescription: \"All required slots must be implemented.\",\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"dom:ready\", (event: DOMReadyEvent) => {\n\t\t\tconst doc = event.document;\n\t\t\twalk.depthFirst(doc, (node: HtmlElement) => {\n\t\t\t\t/* ignore rule if element has no meta or meta does not specify available slots */\n\t\t\t\tconst meta = node.meta;\n\t\t\t\tif (!meta?.requiredSlots) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.validateSlots(node, meta.requiredSlots);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate validateSlots(node: HtmlElement, requiredSlots: string[]): void {\n\t\tconst usedSlots = findUsedSlots(node);\n\t\tconst required = new Set(requiredSlots);\n\t\tconst used = new Set(usedSlots.keys());\n\t\tconst diff = difference(required, used);\n\n\t\tfor (const missing of diff) {\n\t\t\tconst context: RuleContext = {\n\t\t\t\telement: node.tagName,\n\t\t\t\tslot: missing,\n\t\t\t\trequired: requiredSlots,\n\t\t\t};\n\t\t\tthis.report(\n\t\t\t\tnode,\n\t\t\t\t`<${node.tagName}> component requires slot \"${missing}\" to be implemented`,\n\t\t\t\tnull,\n\t\t\t\tcontext,\n\t\t\t);\n\t\t}\n\t}\n}\n", "import { AvailableSlots } from \"./available-slots\";\nimport { DeprecatedSlot } from \"./deprecated-slot\";\nimport { PreferSlotShorthand } from \"./prefer-slot-shorthand\";\nimport { RequiredSlots } from \"./required-slots\";\n\nconst rules = {\n\t\"vue/available-slots\": AvailableSlots,\n\t\"vue/deprecated-slot\": DeprecatedSlot,\n\t\"vue/prefer-slot-shorthand\": PreferSlotShorthand,\n\t\"vue/required-slots\": RequiredSlots,\n};\n\nexport default rules;\n", "{\n \"properties\": {\n \"component\": {\n \"type\": \"string\",\n \"copyable\": true\n },\n \"deprecatedSlots\": {\n \"type\": \"object\",\n \"patternProperties\": {\n \".*\": {\n \"anyOf\": [{ \"type\": \"boolean\" }, { \"type\": \"string\" }]\n }\n }\n },\n \"requiredSlots\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"slots\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n }\n}\n", "import { type AttributeData, DynamicValue } from \"html-validate\";\n\nexport function* processAttribute(attr: AttributeData): Iterable<AttributeData> {\n\t/* always yield original attribute */\n\tyield attr;\n\n\t/* setup :foo and v-bind:foo alias */\n\tconst bind = /^(?:v-bind)?:(.*)$/.exec(attr.key);\n\tif (bind) {\n\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- if bind matches [1] will exist */\n\t\tconst key = bind[1]!;\n\t\tyield {\n\t\t\t...attr,\n\t\t\tkey,\n\t\t\tvalue: new DynamicValue(attr.value ? String(attr.value) : \"\"),\n\t\t\toriginalAttribute: attr.key,\n\t\t};\n\t}\n}\n", "import {\n\ttype HtmlElement,\n\ttype MetaElement,\n\ttype ProcessElementContext,\n\tDynamicValue,\n} from \"html-validate\";\nimport { findSlotAttribute } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\texport interface MetaData {\n\t\tcomponent?: string;\n\t}\n}\n\nfunction isBound(node: HtmlElement): boolean {\n\treturn node.hasAttribute(\"v-html\");\n}\n\nfunction isSlot(node: HtmlElement): boolean {\n\treturn node.is(\"slot\");\n}\n\nfunction loadSlotMeta(context: ProcessElementContext, slotname: string, node: HtmlElement): void {\n\tconst parent = node.parent;\n\tif (!parent) {\n\t\treturn;\n\t}\n\n\t/* Generate a new virtual tagname to load meta element from */\n\tconst getMetaFor = (tagName: string): MetaElement | null => {\n\t\tconst meta = context.getMetaFor(tagName);\n\t\treturn meta && meta.tagName !== \"*\" ? meta : null;\n\t};\n\tconst key = `${parent.tagName}#${slotname}`;\n\tconst fallbackKey = `${parent.tagName}:${slotname}`;\n\tconst meta = getMetaFor(key) ?? getMetaFor(fallbackKey);\n\tif (!meta) {\n\t\treturn;\n\t}\n\n\tnode.loadMeta(meta);\n\n\t/* add an annotation so error messages will be more understandable */\n\tnode.setAnnotation(`slot \"${slotname}\" (<${parent.tagName}>)`);\n}\n\n/**\n * Handle <component> or a component with a slot wrapped in it.\n */\nfunction loadComponentMeta(\n\tcontext: ProcessElementContext,\n\tnode: HtmlElement,\n\tcomponent: string,\n): void {\n\tlet src: HtmlElement = node;\n\n\t/* if this is a slot with wrapped in a <component> we fetch attributes from\n\t * the parent element, i.e. the actual component */\n\tif (node.tagName === \"template\" && src.parent) {\n\t\tsrc = src.parent;\n\t}\n\n\t/* try to fetch the attribute containing the element to use */\n\tconst attr = src.getAttribute(component);\n\tif (!attr || attr.isDynamic) {\n\t\treturn;\n\t}\n\n\t/* use the attribute value to lookup new metadata based on the tagname */\n\tconst tagName = attr.value as string;\n\tconst meta = context.getMetaFor(tagName);\n\tif (!meta || meta.tagName === \"*\") {\n\t\treturn;\n\t}\n\n\tnode.loadMeta(meta);\n\n\t/* update or add new annotation so error messages will be more descriptive */\n\tif (node.isSameNode(src)) {\n\t\tnode.setAnnotation(`<${meta.tagName}> (<${node.tagName}>)`);\n\t} else {\n\t\tconst name = node.annotatedName.replace(\"(<\", `(<${meta.tagName}> via <`);\n\t\tnode.setAnnotation(name);\n\t}\n}\n\nexport function processElement(this: ProcessElementContext, node: HtmlElement): void {\n\tconst slot = findSlotAttribute(node);\n\n\t/* If this element is a slot we load new metadata properties onto the element\n\t * to support adding properties directly to slots, e.g. to allow/disallow\n\t * content in the slot. */\n\tif (slot) {\n\t\tconst [slotname] = slot;\n\t\tloadSlotMeta(this, slotname, node);\n\t}\n\n\t/* handle usage of <component>, either directly or inside a component */\n\tif (node.meta?.component) {\n\t\tloadComponentMeta(this, node, node.meta.component);\n\t}\n\n\t/* Since html-validate v9.5.4 `<template>` tags are generally ignored when\n\t * checking descendants but since v9.6.1 the checks are enabled if this flag\n\t * is disabled. This is a needed both for `<template #slot>` and when using\n\t * `<template>` inside a Vue SFC where the element is transparent instead of\n\t * acting as a `HTMLTemplateElement`. */\n\tif (node.is(\"template\") && node.meta) {\n\t\tnode.meta.templateRoot = false;\n\t}\n\n\t/* Mark as having dynamic text if the element either content bound via v-html\n\t * or if it is a slot. This is needed for rules with requires textual content,\n\t * e.g a heading cannot be empty. */\n\tif (isBound(node) || isSlot(node)) {\n\t\tnode.appendText(new DynamicValue(\"\"), node.location);\n\t}\n}\n", "import { type Source } from \"html-validate\";\nimport { processAttribute, processElement } from \"../hooks\";\n\n/**\n * Transform a regular HTML file. In practice this only applies hooks without\n * any extraction.\n */\nexport function* transformHTML(source: Source): Iterable<Source> {\n\tyield {\n\t\t...source,\n\t\thooks: {\n\t\t\tprocessAttribute,\n\t\t\tprocessElement,\n\t\t},\n\t};\n}\n\ntransformHTML.api = 1;\n", "import { TemplateExtractor } from \"@html-validate/plugin-utils\";\nimport { type Source } from \"html-validate\";\nimport { processAttribute, processElement } from \"../hooks\";\n\n/**\n * Match template property in `Vue.component` call\n */\nexport function transformJS(source: Source): Iterable<Source> {\n\tconst te = TemplateExtractor.fromString(source.data, source.filename);\n\treturn Array.from(te.extractObjectProperty(\"template\"), (cur) => {\n\t\tcur.originalData = source.originalData ?? source.data;\n\t\tcur.hooks = {\n\t\t\tprocessAttribute,\n\t\t\tprocessElement,\n\t\t};\n\t\treturn cur;\n\t});\n}\n\ntransformJS.api = 1;\n", "import { type Source } from \"html-validate\";\nimport { processAttribute, processElement } from \"../hooks\";\nimport { stripTemplating } from \"../utils\";\n\nfunction findLocation(source: string, index: number, preamble: number): [number, number] {\n\tlet line = 1;\n\tlet prev = 0;\n\tlet pos = source.indexOf(\"\\n\");\n\twhile (pos !== -1) {\n\t\tif (pos > index) {\n\t\t\treturn [line, index - prev + preamble + 1];\n\t\t}\n\t\tline++;\n\t\tprev = pos;\n\t\tpos = source.indexOf(\"\\n\", pos + 1);\n\t}\n\treturn [line, 1];\n}\n\nfunction computeIndent(text: string): string {\n\tconst lines = text.split(\"\\n\");\n\tconst initial = null as string | null;\n\tconst common = lines.reduce((common, line) => {\n\t\tconst match = /^(\\s*)\\S/.exec(line);\n\t\tif (match) {\n\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- if match matches [1] will exist */\n\t\t\tconst indent = match[1]!;\n\t\t\treturn common === null || indent.length < common.length ? indent : common;\n\t\t} else {\n\t\t\treturn common;\n\t\t}\n\t}, initial);\n\treturn common ?? \"\";\n}\n\n/**\n * Match templates from SFC <template> tag\n */\nexport function* transformSFC(source: Source): Iterable<Source> {\n\tconst indent = computeIndent(source.data);\n\t/* eslint-disable-next-line security/detect-non-literal-regexp -- will only contain whitespace */\n\tconst sfc = new RegExp(`^${indent}(<template([^>]*)>)([^]*?)^${indent}(</template>)`, \"gm\");\n\tlet match: RegExpExecArray | null;\n\twhile ((match = sfc.exec(source.data)) !== null) {\n\t\tconst attr = match[2] ?? \"\";\n\t\tconst data = `${match[1]!}${match[3]!}${match[4]!}`; // eslint-disable-line @typescript-eslint/no-non-null-assertion -- groups exists when regex matches\n\t\tif (!/lang=\".*?\"/.test(attr)) {\n\t\t\tconst [line, column] = findLocation(source.data, match.index, 0);\n\t\t\tyield {\n\t\t\t\tdata: stripTemplating(data),\n\t\t\t\tfilename: source.filename,\n\t\t\t\tline: line + (source.line - 1),\n\t\t\t\tcolumn: column + (source.column - 1),\n\t\t\t\toffset: match.index + source.offset,\n\t\t\t\toriginalData: source.originalData ?? source.data,\n\t\t\t\thooks: {\n\t\t\t\t\tprocessAttribute,\n\t\t\t\t\tprocessElement,\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t}\n}\n\ntransformSFC.api = 1;\n", "import { type Source } from \"html-validate\";\nimport { transformHTML } from \"./html.transform\";\nimport { transformJS } from \"./js.transform\";\nimport { transformSFC } from \"./sfc.transform\";\n\n/**\n * Returns true if the source is considered a SFC component\n */\nfunction isVue(source: Source): boolean {\n\treturn /\\.vue$/i.test(source.filename);\n}\n\n/**\n * Returns true if the source is considered javascript\n */\nfunction isJavascript(source: Source): boolean {\n\treturn /\\.(jsx?|tsx?)$/i.test(source.filename);\n}\n\nexport function* autodetect(source: Source): Iterable<Source> {\n\tif (isVue(source)) {\n\t\tyield* transformSFC(source);\n\t} else if (isJavascript(source)) {\n\t\tyield* transformJS(source);\n\t} else {\n\t\tyield* transformHTML(source);\n\t}\n}\n\nautodetect.api = 1;\n", "import { type Transformer } from \"html-validate\";\nimport { autodetect } from \"./auto.transform\";\nimport { transformHTML } from \"./html.transform\";\nimport { transformJS } from \"./js.transform\";\nimport { transformSFC } from \"./sfc.transform\";\n\nconst transformer: Record<string, Transformer> = {\n\tdefault: autodetect,\n\tauto: autodetect,\n\tjs: transformJS,\n\tsfc: transformSFC,\n\thtml: transformHTML,\n};\n\nexport default transformer;\n", "/* istanbul ignore file */\n\nimport plugin from \"./index\";\n\nexport = plugin;\n"],
5
- "mappings": ";;;AAAA,IAAAA,wBAAgD;;;ACC9C,WAAQ;AA+FR,uBAAoB;AAAA,EAClB,iBAAiB;AACnB;;;AClGF,2BAA+B;AAE/B,IAAO,uBAAQ,qCAAe;AAAA,EAC7B,WAAW;AAAA,IACV,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAAA,IACb,WAAW;AAAA,IACX,oBAAoB,CAAC,IAAI;AAAA,EAC1B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validate", "import_html_validate", "import_html_validate", "difference", "import_html_validate", "import_html_validate", "meta", "name", "common"]
3
+ "sources": ["../../src/index.ts", "../../package.json", "../../src/elements.ts", "../../src/configs/recommended.ts", "../../src/configs/index.ts", "../../src/rules/available-slots.ts", "../../src/utils/strip-templating.ts", "../../src/utils/slots.ts", "../../src/rules/deprecated-slot.ts", "../../src/rules/prefer-boolean-shorthand.ts", "../../src/rules/prefer-slot-shorthand.ts", "../../src/rules/required-slots.ts", "../../src/rules/index.ts", "../../src/schema.json", "../../src/hooks/attribute.ts", "../../src/hooks/element.ts", "../../src/transform/html.transform.ts", "../../src/transform/js.transform.ts", "../../src/transform/sfc.transform.ts", "../../src/transform/auto.transform.ts", "../../src/transform/index.ts", "../../src/entry-cjs.ts"],
4
+ "sourcesContent": ["import { type Plugin, compatibilityCheck } from \"html-validate\";\nimport { name, peerDependencies } from \"../package.json\";\nimport configs from \"./configs\";\nimport rules from \"./rules\";\nimport elementSchema from \"./schema.json\";\nimport transformer from \"./transform\";\n\nconst range = peerDependencies[\"html-validate\"];\ncompatibilityCheck(name, range);\n\nconst plugin: Plugin = {\n\tname,\n\tconfigs,\n\trules,\n\ttransformer,\n\telementSchema,\n};\n\nexport default plugin;\n", "{\n \"name\": \"html-validate-vue\",\n \"version\": \"9.2.0\",\n \"description\": \"vue transform for html-validate\",\n \"keywords\": [\n \"html\",\n \"lint\",\n \"html-validate\",\n \"vue\"\n ],\n \"homepage\": \"https://html-validate.org/frameworks/vue.html\",\n \"bugs\": {\n \"url\": \"https://gitlab.com/html-validate/html-validate-vue/issues/new\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://gitlab.com/html-validate/html-validate-vue.git\"\n },\n \"license\": \"MIT\",\n \"author\": \"David Sveningsson <ext@sidvind.com>\",\n \"exports\": {\n \".\": {\n \"import\": {\n \"types\": \"./dist/esm/index.d.mts\",\n \"default\": \"./dist/esm/index.mjs\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/index.d.cts\",\n \"default\": \"./dist/cjs/index.cjs\"\n }\n }\n },\n \"main\": \"dist/cjs/index.cjs\",\n \"module\": \"dist/esm/index.mjs\",\n \"files\": [\n \"dist\"\n ],\n \"scripts\": {\n \"prebuild\": \"tsc\",\n \"build\": \"run-s build:*\",\n \"build:lib\": \"node build.mjs\",\n \"build:cjs\": \"dts-bundle-generator --no-banner --project tsconfig.cjs.json -o dist/cjs/index.d.cts src/entry-cjs.ts\",\n \"build:esm\": \"dts-bundle-generator --no-banner --project tsconfig.esm.json -o dist/esm/index.d.mts src/entry-esm.ts\",\n \"eslint\": \"eslint --cache .\",\n \"eslint:fix\": \"eslint --cache --fix .\",\n \"prepack\": \"release-prepack package.json --bundle\",\n \"postpack\": \"release-postpack package.json\",\n \"prepare\": \"husky\",\n \"prepublishOnly\": \"release-prepack package.json --bundle\",\n \"prettier:check\": \"prettier --check .\",\n \"prettier:write\": \"prettier --write .\",\n \"postpublish\": \"release-postpack package.json\",\n \"attw\": \"attw --no-emoji --pack .\",\n \"test\": \"jest\"\n },\n \"commitlint\": {\n \"extends\": \"@html-validate\"\n },\n \"prettier\": \"@html-validate/prettier-config\",\n \"release\": {\n \"extends\": \"@html-validate/semantic-release-config\"\n },\n \"jest\": {\n \"preset\": \"@html-validate/jest-config\"\n },\n \"dependencies\": {\n \"@html-validate/plugin-utils\": \"^4.0.0\"\n },\n \"devDependencies\": {\n \"@arethetypeswrong/cli\": \"0.18.2\",\n \"@html-validate/commitlint-config\": \"4.0.1\",\n \"@html-validate/eslint-config\": \"9.2.0\",\n \"@html-validate/eslint-config-jest\": \"9.2.0\",\n \"@html-validate/eslint-config-typescript\": \"9.2.0\",\n \"@html-validate/eslint-config-typescript-typeinfo\": \"9.2.0\",\n \"@html-validate/jest-config\": \"3.18.0\",\n \"@html-validate/prettier-config\": \"4.0.1\",\n \"@html-validate/release-scripts\": \"7.2.3\",\n \"@jest/globals\": \"30.4.1\",\n \"@tsconfig/node22\": \"22.0.5\",\n \"@tsconfig/strictest\": \"2.0.8\",\n \"@types/estree\": \"1.0.9\",\n \"@types/node\": \"22.19.19\",\n \"@types/semver\": \"7.7.1\",\n \"dts-bundle-generator\": \"9.5.1\",\n \"esbuild\": \"0.28.0\",\n \"html-validate\": \"11.3.0\",\n \"husky\": \"9.1.7\",\n \"jest\": \"30.4.2\",\n \"jest-environment-jsdom\": \"30.4.1\",\n \"npm-pkg-lint\": \"5.1.1\",\n \"npm-run-all2\": \"9.0.1\",\n \"semver\": \"7.8.1\",\n \"ts-jest\": \"29.4.11\",\n \"typescript\": \"6.0.3\"\n },\n \"peerDependencies\": {\n \"html-validate\": \"^8.21.0 || ^9.0.0 || ^10.0.0 || ^11.0.0\"\n },\n \"engines\": {\n \"node\": \"^22.16 || >= 24\"\n },\n \"externalDependencies\": [\n \"@html-validate/plugin-utils\"\n ]\n}\n", "import { defineMetadata } from \"html-validate\";\n\nexport default defineMetadata({\n\t\"*\": {\n\t\tattributes: {\n\t\t\t/* https://vuejs.org/api/built-in-special-attributes.html#is */\n\t\t\tis: {},\n\n\t\t\t/* https://vuejs.org/api/built-in-special-attributes.html#key */\n\t\t\tkey: {},\n\n\t\t\t/* https://vuejs.org/api/built-in-special-attributes.html#ref */\n\t\t\tref: {},\n\n\t\t\t/* directives */\n\t\t\t\"v-*\": {},\n\n\t\t\t/* props */\n\t\t\t\":*\": {},\n\n\t\t\t/* event listeners */\n\t\t\t\"@*\": {},\n\t\t},\n\t},\n\n\tcomponent: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tcomponent: \"is\",\n\t\tattributes: {\n\t\t\tis: {\n\t\t\t\trequired: true,\n\t\t\t},\n\t\t},\n\t},\n\n\t\"keep-alive\": {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tattributes: {\n\t\t\tinclude: {},\n\t\t\texclude: {},\n\t\t\tmax: {\n\t\t\t\tenum: [/^\\d+$/],\n\t\t\t},\n\t\t},\n\t},\n\n\tportal: {\n\t\tdeprecated: {\n\t\t\tsource: \"vue\",\n\t\t\tmessage: \"the <portal> element has been renamed to <teleport>\",\n\t\t\tdocumentation: \"The `<portal>` element has been renamed to `<teleport>`\",\n\t\t},\n\t},\n\n\t\"router-link\": {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tattributes: {\n\t\t\t\"active-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"aria-current-value\": {\n\t\t\t\tenum: [\"location\", \"time\", \"true\", \"false\", \"page\", \"step\", \"date\"],\n\t\t\t},\n\t\t\tcustom: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\t\"exact-active-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\treplace: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\tto: {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t\trequired: true,\n\t\t\t},\n\t\t},\n\t},\n\n\t\"router-view\": {\n\t\tflow: true,\n\t\tslots: [\"default\"],\n\t\tattributes: {\n\t\t\tname: {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\troute: {},\n\t\t},\n\t},\n\n\tslot: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tscriptSupporting: true,\n\t\tattributes: {\n\t\t\tname: {},\n\t\t\t/* scoped slot can take arbitrary bindings */\n\t\t\t\"*\": {},\n\t\t},\n\t},\n\n\tsuspense: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tslots: [\"default\", \"fallback\"],\n\t\tattributes: {\n\t\t\ttimeout: {\n\t\t\t\tenum: [/^\\d+$/],\n\t\t\t},\n\t\t\tsuspensible: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t},\n\t},\n\n\tteleport: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\tattributes: {\n\t\t\tdefer: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\tto: {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t},\n\t},\n\n\ttemplate: {\n\t\tattributes: {\n\t\t\t\"#*\": {},\n\t\t},\n\t},\n\n\ttransition: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tattributes: {\n\t\t\tname: {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"enter-from-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"enter-active-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"enter-to-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"leave-from-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"leave-active-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"leave-to-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\ttype: {\n\t\t\t\tenum: [\"transition\", \"animation\"],\n\t\t\t},\n\t\t\tduration: {\n\t\t\t\tenum: [/^\\d+$/],\n\t\t\t},\n\t\t\tcss: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\tappear: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\tmode: {\n\t\t\t\tenum: [\"in-out\", \"out-in\", \"default\"],\n\t\t\t},\n\t\t},\n\t},\n\n\t\"transition-group\": {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tcomponent: \"tag\",\n\t\tattributes: {\n\t\t\tname: {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"enter-from-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"enter-active-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"enter-to-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"leave-from-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"leave-active-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"leave-to-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\ttype: {\n\t\t\t\tenum: [\"transition\", \"animation\"],\n\t\t\t},\n\t\t\tduration: {\n\t\t\t\tenum: [/^\\d+$/],\n\t\t\t},\n\t\t\tcss: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\tappear: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\t\"move-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\ttag: {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t},\n\t},\n});\n", "import { type ConfigData } from \"html-validate\";\nimport vueElements from \"../elements\";\n\nexport function createConfig(): ConfigData {\n\tconst config: ConfigData = {\n\t\telements: [vueElements],\n\t\trules: {\n\t\t\t/* vue modifiers often use camelcase so allow by default */\n\t\t\t\"attr-case\": [\"error\", { style: \"camelcase\" }],\n\n\t\t\t/* self closing tags often used in vue code so allow by default*/\n\t\t\t\"void-style\": [\"error\", { style: \"selfclose\" }],\n\t\t\t\"no-self-closing\": \"off\",\n\n\t\t\t/* enable rules from this plugin */\n\t\t\t\"vue/available-slots\": \"error\",\n\t\t\t\"vue/prefer-boolean-shorthand\": \"error\",\n\t\t\t\"vue/prefer-slot-shorthand\": \"error\",\n\t\t\t\"vue/required-slots\": \"error\",\n\t\t},\n\t};\n\n\treturn config;\n}\n\nexport default createConfig();\n", "import recommended from \"./recommended\";\n\nexport default {\n\trecommended,\n};\n", "import {\n\ttype DOMReadyEvent,\n\ttype HtmlElement,\n\ttype RuleDocumentation,\n\tRule,\n\twalk,\n} from \"html-validate\";\nimport { findUsedSlots } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\tinterface MetaData {\n\t\tslots?: string[];\n\t}\n\tinterface MetaElement {\n\t\tslots?: string[];\n\t}\n}\n\nexport interface RuleContext {\n\telement: string;\n\tslot: string;\n\tavailable: string[];\n}\n\nfunction difference<T>(a: Set<T>, b: Set<T>): Set<T> {\n\tconst result = new Set(a);\n\tfor (const elem of b) {\n\t\tresult.delete(elem);\n\t}\n\treturn result;\n}\n\nexport class AvailableSlots extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tif (context) {\n\t\t\treturn {\n\t\t\t\tdescription: [\n\t\t\t\t\t`The <${context.element}> component does not have a slot named \"${context.slot}\". Only known slots can be specified.`,\n\t\t\t\t\t\"\",\n\t\t\t\t\t\"The following slots are available\",\n\t\t\t\t]\n\t\t\t\t\t.concat(context.available.map((slot) => `- ${slot}`))\n\t\t\t\t\t.join(\"\\n\"),\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tdescription: \"Only known slots can be specified.\",\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"dom:ready\", (event: DOMReadyEvent) => {\n\t\t\tconst doc = event.document;\n\t\t\twalk.depthFirst(doc, (node: HtmlElement) => {\n\t\t\t\t/* ignore rule if element has no meta or meta does not specify available slots */\n\t\t\t\tconst meta = node.meta;\n\t\t\t\tif (!meta?.slots) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.validateSlots(node, meta.slots);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate validateSlots(node: HtmlElement, slots: string[]): void {\n\t\tconst usedSlots = findUsedSlots(node);\n\t\tconst available = new Set(slots);\n\t\tconst used = new Set(usedSlots.keys());\n\t\tconst diff = difference(used, available);\n\n\t\tfor (const missing of diff) {\n\t\t\tconst context: RuleContext = {\n\t\t\t\telement: node.tagName,\n\t\t\t\tslot: missing,\n\t\t\t\tavailable: slots,\n\t\t\t};\n\t\t\tthis.report(\n\t\t\t\tnode,\n\t\t\t\t`<${node.tagName}> component has no slot \"${missing}\"`,\n\t\t\t\tusedSlots.get(missing),\n\t\t\t\tcontext,\n\t\t\t);\n\t\t}\n\t}\n}\n", "/**\n * Strip anything inside `{{ .. }}` in case it contains anything that looks like\n * markup, i.e. it will be ignored\n */\nexport function stripTemplating(str: string): string {\n\t/* eslint-disable-next-line sonarjs/slow-regex -- technical debt, should refactor */\n\treturn str.replaceAll(/{{(.*?)}}/g, (_, m: string) => {\n\t\tconst filler = \" \".repeat(m.length);\n\t\treturn `{{${filler}}}`;\n\t});\n}\n", "import { type HtmlElement, type Location } from \"html-validate\";\n\nconst slotAttr = /(?:v-slot:|#)([^[]+)/;\n\nfunction haveSlot(value: [string, Location] | null): value is [string, Location] {\n\treturn value !== null;\n}\n\n/**\n * Search all children for slots and return both slot names and locations.\n */\nexport function findUsedSlots(node: HtmlElement): Map<string, Location> {\n\tconst template = node.querySelectorAll(\">template, >[slot]\");\n\tconst slots = template.map((child) => findSlotAttribute(child)).filter(haveSlot);\n\tconst initial = new Map<string, Location>();\n\treturn slots.reduce((result: Map<string, Location>, [key, val]) => {\n\t\tresult.set(key, val);\n\t\treturn result;\n\t}, initial);\n}\n\n/**\n * Find the name of the slot and its location used by an element. Searches\n * both v-slot:foo and slot=\"foo\".\n */\nexport function findSlotAttribute(node: HtmlElement): [string, Location] | null {\n\tfor (const attr of node.attributes) {\n\t\t/* find v-slot directive */\n\t\tconst match = slotAttr.exec(attr.key);\n\t\tif (match) {\n\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- if slot matches [1] will exist */\n\t\t\tconst slot = match[1]!;\n\t\t\treturn [slot, attr.keyLocation];\n\t\t}\n\n\t\t/* find deprecated slot attribute */\n\t\tif (attr.key === \"slot\" && typeof attr.value === \"string\") {\n\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- valueLocation will always be set the value is present */\n\t\t\treturn [attr.value, attr.valueLocation!];\n\t\t}\n\t}\n\treturn null;\n}\n", "import {\n\ttype DOMReadyEvent,\n\ttype HtmlElement,\n\ttype RuleDocumentation,\n\tRule,\n\twalk,\n} from \"html-validate\";\nimport { findUsedSlots } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\tinterface MetaData {\n\t\tdeprecatedSlots?: Record<string, boolean | string>;\n\t}\n\tinterface MetaElement {\n\t\trequiredSlots?: string[];\n\t\tdeprecatedSlots?: Record<string, boolean | string>;\n\t}\n}\n\n/** @internal */\nexport interface RuleContext {\n\telement: string;\n\tslot: string;\n\tinfo: string | null;\n}\n\nexport class DeprecatedSlot extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tif (context) {\n\t\t\tconst preamble = `The slot \\`${context.slot}\\` is deprecated and must not be used`;\n\t\t\treturn {\n\t\t\t\tdescription: context.info ? `${preamble}: ${context.info}.` : `${preamble}.`,\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tdescription: \"This slot is deprecated and must not be used.\",\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"dom:ready\", (event: DOMReadyEvent) => {\n\t\t\tconst doc = event.document;\n\t\t\twalk.depthFirst(doc, (node: HtmlElement) => {\n\t\t\t\t/* ignore rule if element has no meta or meta does not specify deprecated slots */\n\t\t\t\tconst deprecatedSlots = node.meta?.deprecatedSlots;\n\t\t\t\tif (!deprecatedSlots) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.validateSlots(node, deprecatedSlots);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate validateSlots(\n\t\tnode: HtmlElement,\n\t\tdeprecatedSlots: Record<string, boolean | string>,\n\t): void {\n\t\tconst slots = findUsedSlots(node);\n\t\tfor (const [slot, location] of slots.entries()) {\n\t\t\tconst deprecated = deprecatedSlots[slot];\n\t\t\tif (!deprecated) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst context: RuleContext = {\n\t\t\t\telement: node.tagName,\n\t\t\t\tslot,\n\t\t\t\tinfo: typeof deprecated === \"string\" ? deprecated : null,\n\t\t\t};\n\t\t\tconst preamble = `slot \"${slot}\" is deprecated`;\n\t\t\tconst message = typeof deprecated === \"string\" ? `${preamble}: ${deprecated}` : preamble;\n\t\t\tthis.report({\n\t\t\t\tnode,\n\t\t\t\tmessage,\n\t\t\t\tlocation,\n\t\t\t\tcontext,\n\t\t\t});\n\t\t}\n\t}\n}\n", "import { type AttributeEvent, type RuleDocumentation, DynamicValue, Rule } from \"html-validate\";\n\nexport interface RuleContext {\n\tprop: string;\n\toriginalAttribute: string;\n}\n\nexport class PreferBooleanShorthand extends Rule<RuleContext> {\n\tpublic override documentation(context: RuleContext): RuleDocumentation {\n\t\tconst { prop, originalAttribute } = context;\n\t\treturn {\n\t\t\tdescription: [\n\t\t\t\t`Use \\`${prop}\\` instead of \\`${originalAttribute}=\"true\"\\`.`,\n\t\t\t\t\"\",\n\t\t\t\t`The \\`${prop}\\` prop is declared as a boolean. Vue.js allows omitting the value for boolean props, so \\`${prop}\\` is equivalent to \\`${originalAttribute}=\"true\"\\`.`,\n\t\t\t].join(\"\\n\"),\n\t\t};\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"attr\", (event: AttributeEvent) => {\n\t\t\tconst { key, value, meta, originalAttribute, target, location } = event;\n\n\t\t\t/* only handle synthesized attributes produced by the processAttribute hook,\n\t\t\t * i.e. the \"prop\" attribute generated from \":prop\" or \"v-bind:prop\" */\n\t\t\tif (!originalAttribute) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/* only report for boolean props */\n\t\t\tif (!meta?.boolean) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/* only report when the bound value is the literal `true` */\n\t\t\tif (!(value instanceof DynamicValue) || value.expr !== \"true\") {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst context: RuleContext = { prop: key, originalAttribute };\n\t\t\tconst message = `Use \"${key}\" instead of \"${originalAttribute}=\"true\"\"`;\n\t\t\tthis.report(target, message, location, context);\n\t\t});\n\t}\n}\n", "import { type AttributeEvent, type RuleDocumentation, DynamicValue, Rule } from \"html-validate\";\n\nexport interface RuleContext {\n\tslot: string;\n}\n\nconst prefix = \"v-slot:\";\n\nfunction isVSlot(attr: string): string | null {\n\tif (!attr.startsWith(prefix)) {\n\t\treturn null;\n\t}\n\tif (attr.length <= prefix.length) {\n\t\treturn null;\n\t}\n\tconst slot = attr.slice(prefix.length);\n\tif (/^\\[.*]$/.test(slot)) {\n\t\treturn null;\n\t}\n\treturn slot;\n}\n\nfunction isDeprecatedSlot(attr: string, value: null | string | DynamicValue): string | null {\n\tif (attr !== \"slot\") {\n\t\treturn null;\n\t}\n\tif (value instanceof DynamicValue) {\n\t\treturn null;\n\t}\n\tif (value === null || value === \"\") {\n\t\treturn null;\n\t}\n\treturn value;\n}\n\nexport class PreferSlotShorthand extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tconst slot = context?.slot ?? \"my-slot\";\n\t\treturn {\n\t\t\tdescription: [\n\t\t\t\t`Prefer to use \\`#${slot}\\` over \\`v-slot:${slot}\\`.`,\n\t\t\t\t\"\",\n\t\t\t\t\"Vue.js supports a shorthand syntax for slots using `#` instead of `v-slot:` or the deprecated `slot` attribute, e.g. using `#header` instead of `v-slot:header`.\",\n\t\t\t].join(\"\\n\"),\n\t\t};\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"attr\", (event: AttributeEvent) => {\n\t\t\tconst { key: attr, value, target, keyLocation: location } = event;\n\n\t\t\tlet slot: string | null;\n\n\t\t\t/* handle v-slot:xyz */\n\t\t\tslot = isVSlot(attr);\n\t\t\tif (slot) {\n\t\t\t\tconst context: RuleContext = { slot };\n\t\t\t\tconst message = `Prefer to use #${slot} over ${attr}`;\n\t\t\t\tthis.report(target, message, location, context);\n\t\t\t}\n\n\t\t\t/* handle slot=\"xyz\" */\n\t\t\tslot = isDeprecatedSlot(attr, value);\n\t\t\tif (slot) {\n\t\t\t\tconst context: RuleContext = { slot };\n\t\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- value is checked by isDeprecatedSlot */\n\t\t\t\tconst message = `Prefer to use #${slot} over ${attr}=\"${value!.toString()}\"`;\n\t\t\t\tthis.report(target, message, location, context);\n\t\t\t}\n\t\t});\n\t}\n}\n", "import {\n\ttype DOMReadyEvent,\n\ttype HtmlElement,\n\ttype RuleDocumentation,\n\tRule,\n\twalk,\n} from \"html-validate\";\nimport { findUsedSlots } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\tinterface MetaData {\n\t\trequiredSlots?: string[];\n\t}\n\tinterface MetaElement {\n\t\trequiredSlots?: string[];\n\t}\n}\n\nexport interface RuleContext {\n\telement: string;\n\tslot: string;\n\trequired: string[];\n}\n\nfunction difference<T>(a: Set<T>, b: Set<T>): Set<T> {\n\tconst result = new Set(a);\n\tfor (const elem of b) {\n\t\tresult.delete(elem);\n\t}\n\treturn result;\n}\n\nexport class RequiredSlots extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tif (context) {\n\t\t\treturn {\n\t\t\t\tdescription: [\n\t\t\t\t\t`The <${context.element}> component requires slot \"${context.slot}\" to be implemented. Add \\`<template v-slot:${context.slot}>\\``,\n\t\t\t\t\t\"\",\n\t\t\t\t\t\"The following slots are required\",\n\t\t\t\t]\n\t\t\t\t\t.concat(context.required.map((slot) => `- ${slot}`))\n\t\t\t\t\t.join(\"\\n\"),\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tdescription: \"All required slots must be implemented.\",\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"dom:ready\", (event: DOMReadyEvent) => {\n\t\t\tconst doc = event.document;\n\t\t\twalk.depthFirst(doc, (node: HtmlElement) => {\n\t\t\t\t/* ignore rule if element has no meta or meta does not specify available slots */\n\t\t\t\tconst meta = node.meta;\n\t\t\t\tif (!meta?.requiredSlots) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.validateSlots(node, meta.requiredSlots);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate validateSlots(node: HtmlElement, requiredSlots: string[]): void {\n\t\tconst usedSlots = findUsedSlots(node);\n\t\tconst required = new Set(requiredSlots);\n\t\tconst used = new Set(usedSlots.keys());\n\t\tconst diff = difference(required, used);\n\n\t\tfor (const missing of diff) {\n\t\t\tconst context: RuleContext = {\n\t\t\t\telement: node.tagName,\n\t\t\t\tslot: missing,\n\t\t\t\trequired: requiredSlots,\n\t\t\t};\n\t\t\tthis.report(\n\t\t\t\tnode,\n\t\t\t\t`<${node.tagName}> component requires slot \"${missing}\" to be implemented`,\n\t\t\t\tnull,\n\t\t\t\tcontext,\n\t\t\t);\n\t\t}\n\t}\n}\n", "import { AvailableSlots } from \"./available-slots\";\nimport { DeprecatedSlot } from \"./deprecated-slot\";\nimport { PreferBooleanShorthand } from \"./prefer-boolean-shorthand\";\nimport { PreferSlotShorthand } from \"./prefer-slot-shorthand\";\nimport { RequiredSlots } from \"./required-slots\";\n\nconst rules = {\n\t\"vue/available-slots\": AvailableSlots,\n\t\"vue/deprecated-slot\": DeprecatedSlot,\n\t\"vue/prefer-boolean-shorthand\": PreferBooleanShorthand,\n\t\"vue/prefer-slot-shorthand\": PreferSlotShorthand,\n\t\"vue/required-slots\": RequiredSlots,\n};\n\nexport default rules;\n", "{\n \"properties\": {\n \"component\": {\n \"type\": \"string\",\n \"copyable\": true\n },\n \"deprecatedSlots\": {\n \"type\": \"object\",\n \"patternProperties\": {\n \".*\": {\n \"anyOf\": [{ \"type\": \"boolean\" }, { \"type\": \"string\" }]\n }\n }\n },\n \"requiredSlots\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"slots\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n }\n}\n", "import { type AttributeData, DynamicValue } from \"html-validate\";\n\nexport function* processAttribute(attr: AttributeData): Iterable<AttributeData> {\n\t/* always yield original attribute */\n\tyield attr;\n\n\t/* setup :foo and v-bind:foo alias */\n\tconst bind = /^(?:v-bind)?:(.*)$/.exec(attr.key);\n\tif (bind) {\n\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- if bind matches [1] will exist */\n\t\tconst key = bind[1]!;\n\t\tyield {\n\t\t\t...attr,\n\t\t\tkey,\n\t\t\tvalue: new DynamicValue(attr.value ? String(attr.value) : \"\"),\n\t\t\toriginalAttribute: attr.key,\n\t\t};\n\t}\n}\n", "import {\n\ttype HtmlElement,\n\ttype MetaElement,\n\ttype ProcessElementContext,\n\tDynamicValue,\n} from \"html-validate\";\nimport { findSlotAttribute } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\texport interface MetaData {\n\t\tcomponent?: string;\n\t}\n}\n\nfunction isBound(node: HtmlElement): boolean {\n\treturn node.hasAttribute(\"v-html\");\n}\n\nfunction isSlot(node: HtmlElement): boolean {\n\treturn node.is(\"slot\");\n}\n\nfunction loadSlotMeta(context: ProcessElementContext, slotname: string, node: HtmlElement): void {\n\tconst parent = node.parent;\n\tif (!parent) {\n\t\treturn;\n\t}\n\n\t/* Generate a new virtual tagname to load meta element from */\n\tconst getMetaFor = (tagName: string): MetaElement | null => {\n\t\tconst meta = context.getMetaFor(tagName);\n\t\treturn meta && meta.tagName !== \"*\" ? meta : null;\n\t};\n\tconst key = `${parent.tagName}#${slotname}`;\n\tconst fallbackKey = `${parent.tagName}:${slotname}`;\n\tconst meta = getMetaFor(key) ?? getMetaFor(fallbackKey);\n\tif (!meta) {\n\t\treturn;\n\t}\n\n\tnode.loadMeta(meta);\n\n\t/* add an annotation so error messages will be more understandable */\n\tnode.setAnnotation(`slot \"${slotname}\" (<${parent.tagName}>)`);\n}\n\n/**\n * Handle <component> or a component with a slot wrapped in it.\n */\nfunction loadComponentMeta(\n\tcontext: ProcessElementContext,\n\tnode: HtmlElement,\n\tcomponent: string,\n): void {\n\tlet src: HtmlElement = node;\n\n\t/* if this is a slot with wrapped in a <component> we fetch attributes from\n\t * the parent element, i.e. the actual component */\n\tif (node.tagName === \"template\" && src.parent) {\n\t\tsrc = src.parent;\n\t}\n\n\t/* try to fetch the attribute containing the element to use */\n\tconst attr = src.getAttribute(component);\n\tif (!attr || attr.isDynamic) {\n\t\treturn;\n\t}\n\n\t/* use the attribute value to lookup new metadata based on the tagname */\n\tconst tagName = attr.value as string;\n\tconst meta = context.getMetaFor(tagName);\n\tif (!meta || meta.tagName === \"*\") {\n\t\treturn;\n\t}\n\n\tnode.loadMeta(meta);\n\n\t/* update or add new annotation so error messages will be more descriptive */\n\tif (node.isSameNode(src)) {\n\t\tnode.setAnnotation(`<${meta.tagName}> (<${node.tagName}>)`);\n\t} else {\n\t\tconst name = node.annotatedName.replace(\"(<\", `(<${meta.tagName}> via <`);\n\t\tnode.setAnnotation(name);\n\t}\n}\n\nexport function processElement(this: ProcessElementContext, node: HtmlElement): void {\n\tconst slot = findSlotAttribute(node);\n\n\t/* If this element is a slot we load new metadata properties onto the element\n\t * to support adding properties directly to slots, e.g. to allow/disallow\n\t * content in the slot. */\n\tif (slot) {\n\t\tconst [slotname] = slot;\n\t\tloadSlotMeta(this, slotname, node);\n\t}\n\n\t/* handle usage of <component>, either directly or inside a component */\n\tif (node.meta?.component) {\n\t\tloadComponentMeta(this, node, node.meta.component);\n\t}\n\n\t/* Since html-validate v9.5.4 `<template>` tags are generally ignored when\n\t * checking descendants but since v9.6.1 the checks are enabled if this flag\n\t * is disabled. This is a needed both for `<template #slot>` and when using\n\t * `<template>` inside a Vue SFC where the element is transparent instead of\n\t * acting as a `HTMLTemplateElement`. */\n\tif (node.is(\"template\") && node.meta) {\n\t\tnode.meta.templateRoot = false;\n\t}\n\n\t/* Mark as having dynamic text if the element either content bound via v-html\n\t * or if it is a slot. This is needed for rules with requires textual content,\n\t * e.g a heading cannot be empty. */\n\tif (isBound(node) || isSlot(node)) {\n\t\tnode.appendText(new DynamicValue(\"\"), node.location);\n\t}\n}\n", "import { type Source } from \"html-validate\";\nimport { processAttribute, processElement } from \"../hooks\";\n\n/**\n * Transform a regular HTML file. In practice this only applies hooks without\n * any extraction.\n */\nexport function* transformHTML(source: Source): Iterable<Source> {\n\tyield {\n\t\t...source,\n\t\thooks: {\n\t\t\tprocessAttribute,\n\t\t\tprocessElement,\n\t\t},\n\t};\n}\n\ntransformHTML.api = 1;\n", "import { TemplateExtractor } from \"@html-validate/plugin-utils\";\nimport { type Source } from \"html-validate\";\nimport { processAttribute, processElement } from \"../hooks\";\n\n/**\n * Match template property in `Vue.component` call\n */\nexport function transformJS(source: Source): Iterable<Source> {\n\tconst te = TemplateExtractor.fromString(source.data, source.filename);\n\treturn Array.from(te.extractObjectProperty(\"template\"), (cur) => {\n\t\tcur.originalData = source.originalData ?? source.data;\n\t\tcur.hooks = {\n\t\t\tprocessAttribute,\n\t\t\tprocessElement,\n\t\t};\n\t\treturn cur;\n\t});\n}\n\ntransformJS.api = 1;\n", "import { type Source } from \"html-validate\";\nimport { processAttribute, processElement } from \"../hooks\";\nimport { stripTemplating } from \"../utils\";\n\nfunction findLocation(source: string, index: number, preamble: number): [number, number] {\n\tlet line = 1;\n\tlet prev = 0;\n\tlet pos = source.indexOf(\"\\n\");\n\twhile (pos !== -1) {\n\t\tif (pos > index) {\n\t\t\treturn [line, index - prev + preamble + 1];\n\t\t}\n\t\tline++;\n\t\tprev = pos;\n\t\tpos = source.indexOf(\"\\n\", pos + 1);\n\t}\n\treturn [line, 1];\n}\n\nfunction computeIndent(text: string): string {\n\tconst lines = text.split(\"\\n\");\n\tconst initial = null as string | null;\n\tconst common = lines.reduce((common, line) => {\n\t\tconst match = /^(\\s*)\\S/.exec(line);\n\t\tif (match) {\n\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- if match matches [1] will exist */\n\t\t\tconst indent = match[1]!;\n\t\t\treturn common === null || indent.length < common.length ? indent : common;\n\t\t} else {\n\t\t\treturn common;\n\t\t}\n\t}, initial);\n\treturn common ?? \"\";\n}\n\n/**\n * Match templates from SFC <template> tag\n */\nexport function* transformSFC(source: Source): Iterable<Source> {\n\tconst indent = computeIndent(source.data);\n\t/* eslint-disable-next-line security/detect-non-literal-regexp -- will only contain whitespace */\n\tconst sfc = new RegExp(`^${indent}(<template([^>]*)>)([^]*?)^${indent}(</template>)`, \"gm\");\n\tlet match: RegExpExecArray | null;\n\twhile ((match = sfc.exec(source.data)) !== null) {\n\t\tconst attr = match[2] ?? \"\";\n\t\tconst data = `${match[1]!}${match[3]!}${match[4]!}`; // eslint-disable-line @typescript-eslint/no-non-null-assertion -- groups exists when regex matches\n\t\tif (!/lang=\".*?\"/.test(attr)) {\n\t\t\tconst [line, column] = findLocation(source.data, match.index, 0);\n\t\t\tyield {\n\t\t\t\tdata: stripTemplating(data),\n\t\t\t\tfilename: source.filename,\n\t\t\t\tline: line + (source.line - 1),\n\t\t\t\tcolumn: column + (source.column - 1),\n\t\t\t\toffset: match.index + source.offset,\n\t\t\t\toriginalData: source.originalData ?? source.data,\n\t\t\t\thooks: {\n\t\t\t\t\tprocessAttribute,\n\t\t\t\t\tprocessElement,\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t}\n}\n\ntransformSFC.api = 1;\n", "import { type Source } from \"html-validate\";\nimport { transformHTML } from \"./html.transform\";\nimport { transformJS } from \"./js.transform\";\nimport { transformSFC } from \"./sfc.transform\";\n\n/**\n * Returns true if the source is considered a SFC component\n */\nfunction isVue(source: Source): boolean {\n\treturn /\\.vue$/i.test(source.filename);\n}\n\n/**\n * Returns true if the source is considered javascript\n */\nfunction isJavascript(source: Source): boolean {\n\treturn /\\.(jsx?|tsx?)$/i.test(source.filename);\n}\n\nexport function* autodetect(source: Source): Iterable<Source> {\n\tif (isVue(source)) {\n\t\tyield* transformSFC(source);\n\t} else if (isJavascript(source)) {\n\t\tyield* transformJS(source);\n\t} else {\n\t\tyield* transformHTML(source);\n\t}\n}\n\nautodetect.api = 1;\n", "import { type Transformer } from \"html-validate\";\nimport { autodetect } from \"./auto.transform\";\nimport { transformHTML } from \"./html.transform\";\nimport { transformJS } from \"./js.transform\";\nimport { transformSFC } from \"./sfc.transform\";\n\nconst transformer: Record<string, Transformer> = {\n\tdefault: autodetect,\n\tauto: autodetect,\n\tjs: transformJS,\n\tsfc: transformSFC,\n\thtml: transformHTML,\n};\n\nexport default transformer;\n", "/* istanbul ignore file */\n\nimport plugin from \"./index\";\n\nexport = plugin;\n"],
5
+ "mappings": ";;;AAAA,IAAAA,wBAAgD;;;ACC9C,WAAQ;AA+FR,uBAAoB;AAAA,EAClB,iBAAiB;AACnB;;;AClGF,2BAA+B;AAE/B,IAAO,uBAAQ,qCAAe;AAAA,EAC7B,KAAK;AAAA,IACJ,YAAY;AAAA;AAAA,MAEX,IAAI,CAAC;AAAA;AAAA,MAGL,KAAK,CAAC;AAAA;AAAA,MAGN,KAAK,CAAC;AAAA;AAAA,MAGN,OAAO,CAAC;AAAA;AAAA,MAGR,MAAM,CAAC;AAAA;AAAA,MAGP,MAAM,CAAC;AAAA,IACR;AAAA,EACD;AAAA,EAEA,WAAW;AAAA,IACV,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAAA,IACb,WAAW;AAAA,IACX,YAAY;AAAA,MACX,IAAI;AAAA,QACH,UAAU;AAAA,MACX;AAAA,IACD;AAAA,EACD;AAAA,EAEA,cAAc;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAAA,IACb,YAAY;AAAA,MACX,SAAS,CAAC;AAAA,MACV,SAAS,CAAC;AAAA,MACV,KAAK;AAAA,QACJ,MAAM,CAAC,OAAO;AAAA,MACf;AAAA,IACD;AAAA,EACD;AAAA,EAEA,QAAQ;AAAA,IACP,YAAY;AAAA,MACX,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,eAAe;AAAA,IAChB;AAAA,EACD;AAAA,EAEA,eAAe;AAAA,IACd,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAA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,WAAW,QAAkC;AAC7D,MAAI,MAAM,MAAM,GAAG;AAClB,WAAO,aAAa,MAAM;AAAA,EAC3B,WAAW,aAAa,MAAM,GAAG;AAChC,WAAO,YAAY,MAAM;AAAA,EAC1B,OAAO;AACN,WAAO,cAAc,MAAM;AAAA,EAC5B;AACD;AAEA,WAAW,MAAM;;;ACvBjB,IAAM,cAA2C;AAAA,EAChD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,MAAM;AACP;AAEA,IAAO,oBAAQ;;;ApBPf,IAAM,QAAQ,iBAAiB,eAAe;AAAA,IAC9C,0CAAmB,MAAM,KAAK;AAE9B,IAAM,SAAiB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEA,IAAO,cAAQ;;;AqBdf,iBAAS;",
6
+ "names": ["import_html_validate", "import_html_validate", "import_html_validate", "import_html_validate", "import_html_validate", "import_html_validate", "difference", "import_html_validate", "import_html_validate", "meta", "name", "common"]
7
7
  }
@@ -10,17 +10,44 @@ var peerDependencies = {
10
10
  // src/elements.ts
11
11
  import { defineMetadata } from "html-validate";
12
12
  var elements_default = defineMetadata({
13
+ "*": {
14
+ attributes: {
15
+ /* https://vuejs.org/api/built-in-special-attributes.html#is */
16
+ is: {},
17
+ /* https://vuejs.org/api/built-in-special-attributes.html#key */
18
+ key: {},
19
+ /* https://vuejs.org/api/built-in-special-attributes.html#ref */
20
+ ref: {},
21
+ /* directives */
22
+ "v-*": {},
23
+ /* props */
24
+ ":*": {},
25
+ /* event listeners */
26
+ "@*": {}
27
+ }
28
+ },
13
29
  component: {
14
30
  flow: true,
15
31
  phrasing: true,
16
32
  transparent: true,
17
33
  component: "is",
18
- requiredAttributes: ["is"]
34
+ attributes: {
35
+ is: {
36
+ required: true
37
+ }
38
+ }
19
39
  },
20
40
  "keep-alive": {
21
41
  flow: true,
22
42
  phrasing: true,
23
- transparent: true
43
+ transparent: true,
44
+ attributes: {
45
+ include: {},
46
+ exclude: {},
47
+ max: {
48
+ enum: [/^\d+$/]
49
+ }
50
+ }
24
51
  },
25
52
  portal: {
26
53
  deprecated: {
@@ -32,38 +59,173 @@ var elements_default = defineMetadata({
32
59
  "router-link": {
33
60
  flow: true,
34
61
  phrasing: true,
35
- transparent: true
62
+ transparent: true,
63
+ attributes: {
64
+ "active-class": {
65
+ enum: ["/.+/"]
66
+ },
67
+ "aria-current-value": {
68
+ enum: ["location", "time", "true", "false", "page", "step", "date"]
69
+ },
70
+ custom: {
71
+ boolean: true
72
+ },
73
+ "exact-active-class": {
74
+ enum: ["/.+/"]
75
+ },
76
+ replace: {
77
+ boolean: true
78
+ },
79
+ to: {
80
+ enum: ["/.+/"],
81
+ required: true
82
+ }
83
+ }
36
84
  },
37
85
  "router-view": {
38
86
  flow: true,
39
- slots: ["default"]
87
+ slots: ["default"],
88
+ attributes: {
89
+ name: {
90
+ enum: ["/.+/"]
91
+ },
92
+ route: {}
93
+ }
40
94
  },
41
95
  slot: {
42
96
  flow: true,
43
97
  phrasing: true,
44
98
  transparent: true,
45
- scriptSupporting: true
99
+ scriptSupporting: true,
100
+ attributes: {
101
+ name: {},
102
+ /* scoped slot can take arbitrary bindings */
103
+ "*": {}
104
+ }
46
105
  },
47
106
  suspense: {
48
107
  flow: true,
49
108
  phrasing: true,
50
109
  transparent: true,
51
- slots: ["default", "fallback"]
110
+ slots: ["default", "fallback"],
111
+ attributes: {
112
+ timeout: {
113
+ enum: [/^\d+$/]
114
+ },
115
+ suspensible: {
116
+ boolean: true
117
+ }
118
+ }
52
119
  },
53
120
  teleport: {
54
121
  flow: true,
55
- phrasing: true
122
+ phrasing: true,
123
+ attributes: {
124
+ defer: {
125
+ boolean: true
126
+ },
127
+ disabled: {
128
+ boolean: true
129
+ },
130
+ to: {
131
+ enum: ["/.+/"]
132
+ }
133
+ }
134
+ },
135
+ template: {
136
+ attributes: {
137
+ "#*": {}
138
+ }
56
139
  },
57
140
  transition: {
58
141
  flow: true,
59
142
  phrasing: true,
60
- transparent: true
143
+ transparent: true,
144
+ attributes: {
145
+ name: {
146
+ enum: ["/.+/"]
147
+ },
148
+ "enter-from-class": {
149
+ enum: ["/.+/"]
150
+ },
151
+ "enter-active-class": {
152
+ enum: ["/.+/"]
153
+ },
154
+ "enter-to-class": {
155
+ enum: ["/.+/"]
156
+ },
157
+ "leave-from-class": {
158
+ enum: ["/.+/"]
159
+ },
160
+ "leave-active-class": {
161
+ enum: ["/.+/"]
162
+ },
163
+ "leave-to-class": {
164
+ enum: ["/.+/"]
165
+ },
166
+ type: {
167
+ enum: ["transition", "animation"]
168
+ },
169
+ duration: {
170
+ enum: [/^\d+$/]
171
+ },
172
+ css: {
173
+ boolean: true
174
+ },
175
+ appear: {
176
+ boolean: true
177
+ },
178
+ mode: {
179
+ enum: ["in-out", "out-in", "default"]
180
+ }
181
+ }
61
182
  },
62
183
  "transition-group": {
63
184
  flow: true,
64
185
  phrasing: true,
65
186
  transparent: true,
66
- component: "tag"
187
+ component: "tag",
188
+ attributes: {
189
+ name: {
190
+ enum: ["/.+/"]
191
+ },
192
+ "enter-from-class": {
193
+ enum: ["/.+/"]
194
+ },
195
+ "enter-active-class": {
196
+ enum: ["/.+/"]
197
+ },
198
+ "enter-to-class": {
199
+ enum: ["/.+/"]
200
+ },
201
+ "leave-from-class": {
202
+ enum: ["/.+/"]
203
+ },
204
+ "leave-active-class": {
205
+ enum: ["/.+/"]
206
+ },
207
+ "leave-to-class": {
208
+ enum: ["/.+/"]
209
+ },
210
+ type: {
211
+ enum: ["transition", "animation"]
212
+ },
213
+ duration: {
214
+ enum: [/^\d+$/]
215
+ },
216
+ css: {
217
+ boolean: true
218
+ },
219
+ appear: {
220
+ boolean: true
221
+ },
222
+ "move-class": {
223
+ enum: ["/.+/"]
224
+ },
225
+ tag: {
226
+ enum: ["/.+/"]
227
+ }
228
+ }
67
229
  }
68
230
  });
69
231
 
@@ -79,6 +241,7 @@ function createConfig() {
79
241
  "no-self-closing": "off",
80
242
  /* enable rules from this plugin */
81
243
  "vue/available-slots": "error",
244
+ "vue/prefer-boolean-shorthand": "error",
82
245
  "vue/prefer-slot-shorthand": "error",
83
246
  "vue/required-slots": "error"
84
247
  }
@@ -245,8 +408,40 @@ var DeprecatedSlot = class extends Rule2 {
245
408
  }
246
409
  };
247
410
 
248
- // src/rules/prefer-slot-shorthand.ts
411
+ // src/rules/prefer-boolean-shorthand.ts
249
412
  import { DynamicValue, Rule as Rule3 } from "html-validate";
413
+ var PreferBooleanShorthand = class extends Rule3 {
414
+ documentation(context) {
415
+ const { prop, originalAttribute } = context;
416
+ return {
417
+ description: [
418
+ `Use \`${prop}\` instead of \`${originalAttribute}="true"\`.`,
419
+ "",
420
+ `The \`${prop}\` prop is declared as a boolean. Vue.js allows omitting the value for boolean props, so \`${prop}\` is equivalent to \`${originalAttribute}="true"\`.`
421
+ ].join("\n")
422
+ };
423
+ }
424
+ setup() {
425
+ this.on("attr", (event) => {
426
+ const { key, value, meta, originalAttribute, target, location } = event;
427
+ if (!originalAttribute) {
428
+ return;
429
+ }
430
+ if (!meta?.boolean) {
431
+ return;
432
+ }
433
+ if (!(value instanceof DynamicValue) || value.expr !== "true") {
434
+ return;
435
+ }
436
+ const context = { prop: key, originalAttribute };
437
+ const message = `Use "${key}" instead of "${originalAttribute}="true""`;
438
+ this.report(target, message, location, context);
439
+ });
440
+ }
441
+ };
442
+
443
+ // src/rules/prefer-slot-shorthand.ts
444
+ import { DynamicValue as DynamicValue2, Rule as Rule4 } from "html-validate";
250
445
  var prefix = "v-slot:";
251
446
  function isVSlot(attr) {
252
447
  if (!attr.startsWith(prefix)) {
@@ -265,7 +460,7 @@ function isDeprecatedSlot(attr, value) {
265
460
  if (attr !== "slot") {
266
461
  return null;
267
462
  }
268
- if (value instanceof DynamicValue) {
463
+ if (value instanceof DynamicValue2) {
269
464
  return null;
270
465
  }
271
466
  if (value === null || value === "") {
@@ -273,7 +468,7 @@ function isDeprecatedSlot(attr, value) {
273
468
  }
274
469
  return value;
275
470
  }
276
- var PreferSlotShorthand = class extends Rule3 {
471
+ var PreferSlotShorthand = class extends Rule4 {
277
472
  documentation(context) {
278
473
  const slot = context?.slot ?? "my-slot";
279
474
  return {
@@ -306,7 +501,7 @@ var PreferSlotShorthand = class extends Rule3 {
306
501
 
307
502
  // src/rules/required-slots.ts
308
503
  import {
309
- Rule as Rule4,
504
+ Rule as Rule5,
310
505
  walk as walk3
311
506
  } from "html-validate";
312
507
  function difference2(a, b) {
@@ -316,7 +511,7 @@ function difference2(a, b) {
316
511
  }
317
512
  return result;
318
513
  }
319
- var RequiredSlots = class extends Rule4 {
514
+ var RequiredSlots = class extends Rule5 {
320
515
  documentation(context) {
321
516
  if (context) {
322
517
  return {
@@ -369,6 +564,7 @@ var RequiredSlots = class extends Rule4 {
369
564
  var rules = {
370
565
  "vue/available-slots": AvailableSlots,
371
566
  "vue/deprecated-slot": DeprecatedSlot,
567
+ "vue/prefer-boolean-shorthand": PreferBooleanShorthand,
372
568
  "vue/prefer-slot-shorthand": PreferSlotShorthand,
373
569
  "vue/required-slots": RequiredSlots
374
570
  };
@@ -405,7 +601,7 @@ var schema_default = {
405
601
  };
406
602
 
407
603
  // src/hooks/attribute.ts
408
- import { DynamicValue as DynamicValue2 } from "html-validate";
604
+ import { DynamicValue as DynamicValue3 } from "html-validate";
409
605
  function* processAttribute(attr) {
410
606
  yield attr;
411
607
  const bind = /^(?:v-bind)?:(.*)$/.exec(attr.key);
@@ -414,7 +610,7 @@ function* processAttribute(attr) {
414
610
  yield {
415
611
  ...attr,
416
612
  key,
417
- value: new DynamicValue2(attr.value ? String(attr.value) : ""),
613
+ value: new DynamicValue3(attr.value ? String(attr.value) : ""),
418
614
  originalAttribute: attr.key
419
615
  };
420
616
  }
@@ -422,7 +618,7 @@ function* processAttribute(attr) {
422
618
 
423
619
  // src/hooks/element.ts
424
620
  import {
425
- DynamicValue as DynamicValue3
621
+ DynamicValue as DynamicValue4
426
622
  } from "html-validate";
427
623
  function isBound(node) {
428
624
  return node.hasAttribute("v-html");
@@ -483,7 +679,7 @@ function processElement(node) {
483
679
  node.meta.templateRoot = false;
484
680
  }
485
681
  if (isBound(node) || isSlot(node)) {
486
- node.appendText(new DynamicValue3(""), node.location);
682
+ node.appendText(new DynamicValue4(""), node.location);
487
683
  }
488
684
  }
489
685
 
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/index.ts", "../../package.json", "../../src/elements.ts", "../../src/configs/recommended.ts", "../../src/configs/index.ts", "../../src/rules/available-slots.ts", "../../src/utils/strip-templating.ts", "../../src/utils/slots.ts", "../../src/rules/deprecated-slot.ts", "../../src/rules/prefer-slot-shorthand.ts", "../../src/rules/required-slots.ts", "../../src/rules/index.ts", "../../src/schema.json", "../../src/hooks/attribute.ts", "../../src/hooks/element.ts", "../../src/transform/html.transform.ts", "../../src/transform/js.transform.ts", "../../src/transform/sfc.transform.ts", "../../src/transform/auto.transform.ts", "../../src/transform/index.ts"],
4
- "sourcesContent": ["import { type Plugin, compatibilityCheck } from \"html-validate\";\nimport { name, peerDependencies } from \"../package.json\";\nimport configs from \"./configs\";\nimport rules from \"./rules\";\nimport elementSchema from \"./schema.json\";\nimport transformer from \"./transform\";\n\nconst range = peerDependencies[\"html-validate\"];\ncompatibilityCheck(name, range);\n\nconst plugin: Plugin = {\n\tname,\n\tconfigs,\n\trules,\n\ttransformer,\n\telementSchema,\n};\n\nexport default plugin;\n", "{\n \"name\": \"html-validate-vue\",\n \"version\": \"9.0.0\",\n \"description\": \"vue transform for html-validate\",\n \"keywords\": [\n \"html\",\n \"lint\",\n \"html-validate\",\n \"vue\"\n ],\n \"homepage\": \"https://html-validate.org/frameworks/vue.html\",\n \"bugs\": {\n \"url\": \"https://gitlab.com/html-validate/html-validate-vue/issues/new\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://gitlab.com/html-validate/html-validate-vue.git\"\n },\n \"license\": \"MIT\",\n \"author\": \"David Sveningsson <ext@sidvind.com>\",\n \"exports\": {\n \".\": {\n \"import\": {\n \"types\": \"./dist/esm/index.d.mts\",\n \"default\": \"./dist/esm/index.mjs\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/index.d.cts\",\n \"default\": \"./dist/cjs/index.cjs\"\n }\n }\n },\n \"main\": \"dist/cjs/index.cjs\",\n \"module\": \"dist/esm/index.mjs\",\n \"files\": [\n \"dist\"\n ],\n \"scripts\": {\n \"prebuild\": \"tsc\",\n \"build\": \"run-s build:*\",\n \"build:lib\": \"node build.mjs\",\n \"build:cjs\": \"dts-bundle-generator --no-banner --project tsconfig.cjs.json -o dist/cjs/index.d.cts src/entry-cjs.ts\",\n \"build:esm\": \"dts-bundle-generator --no-banner --project tsconfig.esm.json -o dist/esm/index.d.mts src/entry-esm.ts\",\n \"eslint\": \"eslint --cache .\",\n \"eslint:fix\": \"eslint --cache --fix .\",\n \"prepack\": \"release-prepack package.json --bundle\",\n \"postpack\": \"release-postpack package.json\",\n \"prepare\": \"husky\",\n \"prepublishOnly\": \"release-prepack package.json --bundle\",\n \"prettier:check\": \"prettier --check .\",\n \"prettier:write\": \"prettier --write .\",\n \"postpublish\": \"release-postpack package.json\",\n \"attw\": \"attw --no-emoji --pack .\",\n \"test\": \"jest\"\n },\n \"commitlint\": {\n \"extends\": \"@html-validate\"\n },\n \"prettier\": \"@html-validate/prettier-config\",\n \"release\": {\n \"extends\": \"@html-validate/semantic-release-config\"\n },\n \"jest\": {\n \"preset\": \"@html-validate/jest-config\"\n },\n \"dependencies\": {\n \"@html-validate/plugin-utils\": \"^4.0.0\"\n },\n \"devDependencies\": {\n \"@arethetypeswrong/cli\": \"0.18.2\",\n \"@html-validate/commitlint-config\": \"4.0.1\",\n \"@html-validate/eslint-config\": \"9.1.1\",\n \"@html-validate/eslint-config-jest\": \"9.1.1\",\n \"@html-validate/eslint-config-typescript\": \"9.1.1\",\n \"@html-validate/eslint-config-typescript-typeinfo\": \"9.1.1\",\n \"@html-validate/jest-config\": \"3.18.0\",\n \"@html-validate/prettier-config\": \"4.0.0\",\n \"@html-validate/release-scripts\": \"7.2.0\",\n \"@jest/globals\": \"30.4.1\",\n \"@tsconfig/node22\": \"22.0.5\",\n \"@tsconfig/strictest\": \"2.0.8\",\n \"@types/estree\": \"1.0.9\",\n \"@types/node\": \"22.19.19\",\n \"@types/semver\": \"7.7.1\",\n \"dts-bundle-generator\": \"9.5.1\",\n \"esbuild\": \"0.28.0\",\n \"html-validate\": \"11.1.0\",\n \"husky\": \"9.1.7\",\n \"jest\": \"30.4.2\",\n \"jest-environment-jsdom\": \"30.4.1\",\n \"npm-pkg-lint\": \"5.1.0\",\n \"npm-run-all2\": \"8.0.4\",\n \"semver\": \"7.8.0\",\n \"ts-jest\": \"29.4.9\",\n \"typescript\": \"6.0.3\"\n },\n \"peerDependencies\": {\n \"html-validate\": \"^8.21.0 || ^9.0.0 || ^10.0.0 || ^11.0.0\"\n },\n \"engines\": {\n \"node\": \"^22.16 || >= 24\"\n },\n \"externalDependencies\": [\n \"@html-validate/plugin-utils\"\n ]\n}\n", "import { defineMetadata } from \"html-validate\";\n\nexport default defineMetadata({\n\tcomponent: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tcomponent: \"is\",\n\t\trequiredAttributes: [\"is\"],\n\t},\n\n\t\"keep-alive\": {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t},\n\n\tportal: {\n\t\tdeprecated: {\n\t\t\tsource: \"vue\",\n\t\t\tmessage: \"the <portal> element has been renamed to <teleport>\",\n\t\t\tdocumentation: \"The `<portal>` element has been renamed to `<teleport>`\",\n\t\t},\n\t},\n\n\t\"router-link\": {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t},\n\n\t\"router-view\": {\n\t\tflow: true,\n\t\tslots: [\"default\"],\n\t},\n\n\tslot: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tscriptSupporting: true,\n\t},\n\n\tsuspense: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tslots: [\"default\", \"fallback\"],\n\t},\n\n\tteleport: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t},\n\n\ttransition: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t},\n\n\t\"transition-group\": {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tcomponent: \"tag\",\n\t},\n});\n", "import { type ConfigData } from \"html-validate\";\nimport vueElements from \"../elements\";\n\nexport function createConfig(): ConfigData {\n\tconst config: ConfigData = {\n\t\telements: [vueElements],\n\t\trules: {\n\t\t\t/* vue modifiers often use camelcase so allow by default */\n\t\t\t\"attr-case\": [\"error\", { style: \"camelcase\" }],\n\n\t\t\t/* self closing tags often used in vue code so allow by default*/\n\t\t\t\"void-style\": [\"error\", { style: \"selfclose\" }],\n\t\t\t\"no-self-closing\": \"off\",\n\n\t\t\t/* enable rules from this plugin */\n\t\t\t\"vue/available-slots\": \"error\",\n\t\t\t\"vue/prefer-slot-shorthand\": \"error\",\n\t\t\t\"vue/required-slots\": \"error\",\n\t\t},\n\t};\n\n\treturn config;\n}\n\nexport default createConfig();\n", "import recommended from \"./recommended\";\n\nexport default {\n\trecommended,\n};\n", "import {\n\ttype DOMReadyEvent,\n\ttype HtmlElement,\n\ttype RuleDocumentation,\n\tRule,\n\twalk,\n} from \"html-validate\";\nimport { findUsedSlots } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\tinterface MetaData {\n\t\tslots?: string[];\n\t}\n\tinterface MetaElement {\n\t\tslots?: string[];\n\t}\n}\n\nexport interface RuleContext {\n\telement: string;\n\tslot: string;\n\tavailable: string[];\n}\n\nfunction difference<T>(a: Set<T>, b: Set<T>): Set<T> {\n\tconst result = new Set(a);\n\tfor (const elem of b) {\n\t\tresult.delete(elem);\n\t}\n\treturn result;\n}\n\nexport class AvailableSlots extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tif (context) {\n\t\t\treturn {\n\t\t\t\tdescription: [\n\t\t\t\t\t`The <${context.element}> component does not have a slot named \"${context.slot}\". Only known slots can be specified.`,\n\t\t\t\t\t\"\",\n\t\t\t\t\t\"The following slots are available\",\n\t\t\t\t]\n\t\t\t\t\t.concat(context.available.map((slot) => `- ${slot}`))\n\t\t\t\t\t.join(\"\\n\"),\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tdescription: \"Only known slots can be specified.\",\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"dom:ready\", (event: DOMReadyEvent) => {\n\t\t\tconst doc = event.document;\n\t\t\twalk.depthFirst(doc, (node: HtmlElement) => {\n\t\t\t\t/* ignore rule if element has no meta or meta does not specify available slots */\n\t\t\t\tconst meta = node.meta;\n\t\t\t\tif (!meta?.slots) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.validateSlots(node, meta.slots);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate validateSlots(node: HtmlElement, slots: string[]): void {\n\t\tconst usedSlots = findUsedSlots(node);\n\t\tconst available = new Set(slots);\n\t\tconst used = new Set(usedSlots.keys());\n\t\tconst diff = difference(used, available);\n\n\t\tfor (const missing of diff) {\n\t\t\tconst context: RuleContext = {\n\t\t\t\telement: node.tagName,\n\t\t\t\tslot: missing,\n\t\t\t\tavailable: slots,\n\t\t\t};\n\t\t\tthis.report(\n\t\t\t\tnode,\n\t\t\t\t`<${node.tagName}> component has no slot \"${missing}\"`,\n\t\t\t\tusedSlots.get(missing),\n\t\t\t\tcontext,\n\t\t\t);\n\t\t}\n\t}\n}\n", "/**\n * Strip anything inside `{{ .. }}` in case it contains anything that looks like\n * markup, i.e. it will be ignored\n */\nexport function stripTemplating(str: string): string {\n\t/* eslint-disable-next-line sonarjs/slow-regex -- technical debt, should refactor */\n\treturn str.replaceAll(/{{(.*?)}}/g, (_, m: string) => {\n\t\tconst filler = \" \".repeat(m.length);\n\t\treturn `{{${filler}}}`;\n\t});\n}\n", "import { type HtmlElement, type Location } from \"html-validate\";\n\nconst slotAttr = /(?:v-slot:|#)([^[]+)/;\n\nfunction haveSlot(value: [string, Location] | null): value is [string, Location] {\n\treturn value !== null;\n}\n\n/**\n * Search all children for slots and return both slot names and locations.\n */\nexport function findUsedSlots(node: HtmlElement): Map<string, Location> {\n\tconst template = node.querySelectorAll(\">template, >[slot]\");\n\tconst slots = template.map((child) => findSlotAttribute(child)).filter(haveSlot);\n\tconst initial = new Map<string, Location>();\n\treturn slots.reduce((result: Map<string, Location>, [key, val]) => {\n\t\tresult.set(key, val);\n\t\treturn result;\n\t}, initial);\n}\n\n/**\n * Find the name of the slot and its location used by an element. Searches\n * both v-slot:foo and slot=\"foo\".\n */\nexport function findSlotAttribute(node: HtmlElement): [string, Location] | null {\n\tfor (const attr of node.attributes) {\n\t\t/* find v-slot directive */\n\t\tconst match = slotAttr.exec(attr.key);\n\t\tif (match) {\n\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- if slot matches [1] will exist */\n\t\t\tconst slot = match[1]!;\n\t\t\treturn [slot, attr.keyLocation];\n\t\t}\n\n\t\t/* find deprecated slot attribute */\n\t\tif (attr.key === \"slot\" && typeof attr.value === \"string\") {\n\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- valueLocation will always be set the value is present */\n\t\t\treturn [attr.value, attr.valueLocation!];\n\t\t}\n\t}\n\treturn null;\n}\n", "import {\n\ttype DOMReadyEvent,\n\ttype HtmlElement,\n\ttype RuleDocumentation,\n\tRule,\n\twalk,\n} from \"html-validate\";\nimport { findUsedSlots } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\tinterface MetaData {\n\t\tdeprecatedSlots?: Record<string, boolean | string>;\n\t}\n\tinterface MetaElement {\n\t\trequiredSlots?: string[];\n\t\tdeprecatedSlots?: Record<string, boolean | string>;\n\t}\n}\n\n/** @internal */\nexport interface RuleContext {\n\telement: string;\n\tslot: string;\n\tinfo: string | null;\n}\n\nexport class DeprecatedSlot extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tif (context) {\n\t\t\tconst preamble = `The slot \\`${context.slot}\\` is deprecated and must not be used`;\n\t\t\treturn {\n\t\t\t\tdescription: context.info ? `${preamble}: ${context.info}.` : `${preamble}.`,\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tdescription: \"This slot is deprecated and must not be used.\",\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"dom:ready\", (event: DOMReadyEvent) => {\n\t\t\tconst doc = event.document;\n\t\t\twalk.depthFirst(doc, (node: HtmlElement) => {\n\t\t\t\t/* ignore rule if element has no meta or meta does not specify deprecated slots */\n\t\t\t\tconst deprecatedSlots = node.meta?.deprecatedSlots;\n\t\t\t\tif (!deprecatedSlots) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.validateSlots(node, deprecatedSlots);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate validateSlots(\n\t\tnode: HtmlElement,\n\t\tdeprecatedSlots: Record<string, boolean | string>,\n\t): void {\n\t\tconst slots = findUsedSlots(node);\n\t\tfor (const [slot, location] of slots.entries()) {\n\t\t\tconst deprecated = deprecatedSlots[slot];\n\t\t\tif (!deprecated) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst context: RuleContext = {\n\t\t\t\telement: node.tagName,\n\t\t\t\tslot,\n\t\t\t\tinfo: typeof deprecated === \"string\" ? deprecated : null,\n\t\t\t};\n\t\t\tconst preamble = `slot \"${slot}\" is deprecated`;\n\t\t\tconst message = typeof deprecated === \"string\" ? `${preamble}: ${deprecated}` : preamble;\n\t\t\tthis.report({\n\t\t\t\tnode,\n\t\t\t\tmessage,\n\t\t\t\tlocation,\n\t\t\t\tcontext,\n\t\t\t});\n\t\t}\n\t}\n}\n", "import { type AttributeEvent, type RuleDocumentation, DynamicValue, Rule } from \"html-validate\";\n\nexport interface RuleContext {\n\tslot: string;\n}\n\nconst prefix = \"v-slot:\";\n\nfunction isVSlot(attr: string): string | null {\n\tif (!attr.startsWith(prefix)) {\n\t\treturn null;\n\t}\n\tif (attr.length <= prefix.length) {\n\t\treturn null;\n\t}\n\tconst slot = attr.slice(prefix.length);\n\tif (/^\\[.*]$/.test(slot)) {\n\t\treturn null;\n\t}\n\treturn slot;\n}\n\nfunction isDeprecatedSlot(attr: string, value: null | string | DynamicValue): string | null {\n\tif (attr !== \"slot\") {\n\t\treturn null;\n\t}\n\tif (value instanceof DynamicValue) {\n\t\treturn null;\n\t}\n\tif (value === null || value === \"\") {\n\t\treturn null;\n\t}\n\treturn value;\n}\n\nexport class PreferSlotShorthand extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tconst slot = context?.slot ?? \"my-slot\";\n\t\treturn {\n\t\t\tdescription: [\n\t\t\t\t`Prefer to use \\`#${slot}\\` over \\`v-slot:${slot}\\`.`,\n\t\t\t\t\"\",\n\t\t\t\t\"Vue.js supports a shorthand syntax for slots using `#` instead of `v-slot:` or the deprecated `slot` attribute, e.g. using `#header` instead of `v-slot:header`.\",\n\t\t\t].join(\"\\n\"),\n\t\t};\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"attr\", (event: AttributeEvent) => {\n\t\t\tconst { key: attr, value, target, keyLocation: location } = event;\n\n\t\t\tlet slot: string | null;\n\n\t\t\t/* handle v-slot:xyz */\n\t\t\tslot = isVSlot(attr);\n\t\t\tif (slot) {\n\t\t\t\tconst context: RuleContext = { slot };\n\t\t\t\tconst message = `Prefer to use #${slot} over ${attr}`;\n\t\t\t\tthis.report(target, message, location, context);\n\t\t\t}\n\n\t\t\t/* handle slot=\"xyz\" */\n\t\t\tslot = isDeprecatedSlot(attr, value);\n\t\t\tif (slot) {\n\t\t\t\tconst context: RuleContext = { slot };\n\t\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- value is checked by isDeprecatedSlot */\n\t\t\t\tconst message = `Prefer to use #${slot} over ${attr}=\"${value!.toString()}\"`;\n\t\t\t\tthis.report(target, message, location, context);\n\t\t\t}\n\t\t});\n\t}\n}\n", "import {\n\ttype DOMReadyEvent,\n\ttype HtmlElement,\n\ttype RuleDocumentation,\n\tRule,\n\twalk,\n} from \"html-validate\";\nimport { findUsedSlots } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\tinterface MetaData {\n\t\trequiredSlots?: string[];\n\t}\n\tinterface MetaElement {\n\t\trequiredSlots?: string[];\n\t}\n}\n\nexport interface RuleContext {\n\telement: string;\n\tslot: string;\n\trequired: string[];\n}\n\nfunction difference<T>(a: Set<T>, b: Set<T>): Set<T> {\n\tconst result = new Set(a);\n\tfor (const elem of b) {\n\t\tresult.delete(elem);\n\t}\n\treturn result;\n}\n\nexport class RequiredSlots extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tif (context) {\n\t\t\treturn {\n\t\t\t\tdescription: [\n\t\t\t\t\t`The <${context.element}> component requires slot \"${context.slot}\" to be implemented. Add \\`<template v-slot:${context.slot}>\\``,\n\t\t\t\t\t\"\",\n\t\t\t\t\t\"The following slots are required\",\n\t\t\t\t]\n\t\t\t\t\t.concat(context.required.map((slot) => `- ${slot}`))\n\t\t\t\t\t.join(\"\\n\"),\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tdescription: \"All required slots must be implemented.\",\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"dom:ready\", (event: DOMReadyEvent) => {\n\t\t\tconst doc = event.document;\n\t\t\twalk.depthFirst(doc, (node: HtmlElement) => {\n\t\t\t\t/* ignore rule if element has no meta or meta does not specify available slots */\n\t\t\t\tconst meta = node.meta;\n\t\t\t\tif (!meta?.requiredSlots) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.validateSlots(node, meta.requiredSlots);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate validateSlots(node: HtmlElement, requiredSlots: string[]): void {\n\t\tconst usedSlots = findUsedSlots(node);\n\t\tconst required = new Set(requiredSlots);\n\t\tconst used = new Set(usedSlots.keys());\n\t\tconst diff = difference(required, used);\n\n\t\tfor (const missing of diff) {\n\t\t\tconst context: RuleContext = {\n\t\t\t\telement: node.tagName,\n\t\t\t\tslot: missing,\n\t\t\t\trequired: requiredSlots,\n\t\t\t};\n\t\t\tthis.report(\n\t\t\t\tnode,\n\t\t\t\t`<${node.tagName}> component requires slot \"${missing}\" to be implemented`,\n\t\t\t\tnull,\n\t\t\t\tcontext,\n\t\t\t);\n\t\t}\n\t}\n}\n", "import { AvailableSlots } from \"./available-slots\";\nimport { DeprecatedSlot } from \"./deprecated-slot\";\nimport { PreferSlotShorthand } from \"./prefer-slot-shorthand\";\nimport { RequiredSlots } from \"./required-slots\";\n\nconst rules = {\n\t\"vue/available-slots\": AvailableSlots,\n\t\"vue/deprecated-slot\": DeprecatedSlot,\n\t\"vue/prefer-slot-shorthand\": PreferSlotShorthand,\n\t\"vue/required-slots\": RequiredSlots,\n};\n\nexport default rules;\n", "{\n \"properties\": {\n \"component\": {\n \"type\": \"string\",\n \"copyable\": true\n },\n \"deprecatedSlots\": {\n \"type\": \"object\",\n \"patternProperties\": {\n \".*\": {\n \"anyOf\": [{ \"type\": \"boolean\" }, { \"type\": \"string\" }]\n }\n }\n },\n \"requiredSlots\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"slots\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n }\n}\n", "import { type AttributeData, DynamicValue } from \"html-validate\";\n\nexport function* processAttribute(attr: AttributeData): Iterable<AttributeData> {\n\t/* always yield original attribute */\n\tyield attr;\n\n\t/* setup :foo and v-bind:foo alias */\n\tconst bind = /^(?:v-bind)?:(.*)$/.exec(attr.key);\n\tif (bind) {\n\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- if bind matches [1] will exist */\n\t\tconst key = bind[1]!;\n\t\tyield {\n\t\t\t...attr,\n\t\t\tkey,\n\t\t\tvalue: new DynamicValue(attr.value ? String(attr.value) : \"\"),\n\t\t\toriginalAttribute: attr.key,\n\t\t};\n\t}\n}\n", "import {\n\ttype HtmlElement,\n\ttype MetaElement,\n\ttype ProcessElementContext,\n\tDynamicValue,\n} from \"html-validate\";\nimport { findSlotAttribute } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\texport interface MetaData {\n\t\tcomponent?: string;\n\t}\n}\n\nfunction isBound(node: HtmlElement): boolean {\n\treturn node.hasAttribute(\"v-html\");\n}\n\nfunction isSlot(node: HtmlElement): boolean {\n\treturn node.is(\"slot\");\n}\n\nfunction loadSlotMeta(context: ProcessElementContext, slotname: string, node: HtmlElement): void {\n\tconst parent = node.parent;\n\tif (!parent) {\n\t\treturn;\n\t}\n\n\t/* Generate a new virtual tagname to load meta element from */\n\tconst getMetaFor = (tagName: string): MetaElement | null => {\n\t\tconst meta = context.getMetaFor(tagName);\n\t\treturn meta && meta.tagName !== \"*\" ? meta : null;\n\t};\n\tconst key = `${parent.tagName}#${slotname}`;\n\tconst fallbackKey = `${parent.tagName}:${slotname}`;\n\tconst meta = getMetaFor(key) ?? getMetaFor(fallbackKey);\n\tif (!meta) {\n\t\treturn;\n\t}\n\n\tnode.loadMeta(meta);\n\n\t/* add an annotation so error messages will be more understandable */\n\tnode.setAnnotation(`slot \"${slotname}\" (<${parent.tagName}>)`);\n}\n\n/**\n * Handle <component> or a component with a slot wrapped in it.\n */\nfunction loadComponentMeta(\n\tcontext: ProcessElementContext,\n\tnode: HtmlElement,\n\tcomponent: string,\n): void {\n\tlet src: HtmlElement = node;\n\n\t/* if this is a slot with wrapped in a <component> we fetch attributes from\n\t * the parent element, i.e. the actual component */\n\tif (node.tagName === \"template\" && src.parent) {\n\t\tsrc = src.parent;\n\t}\n\n\t/* try to fetch the attribute containing the element to use */\n\tconst attr = src.getAttribute(component);\n\tif (!attr || attr.isDynamic) {\n\t\treturn;\n\t}\n\n\t/* use the attribute value to lookup new metadata based on the tagname */\n\tconst tagName = attr.value as string;\n\tconst meta = context.getMetaFor(tagName);\n\tif (!meta || meta.tagName === \"*\") {\n\t\treturn;\n\t}\n\n\tnode.loadMeta(meta);\n\n\t/* update or add new annotation so error messages will be more descriptive */\n\tif (node.isSameNode(src)) {\n\t\tnode.setAnnotation(`<${meta.tagName}> (<${node.tagName}>)`);\n\t} else {\n\t\tconst name = node.annotatedName.replace(\"(<\", `(<${meta.tagName}> via <`);\n\t\tnode.setAnnotation(name);\n\t}\n}\n\nexport function processElement(this: ProcessElementContext, node: HtmlElement): void {\n\tconst slot = findSlotAttribute(node);\n\n\t/* If this element is a slot we load new metadata properties onto the element\n\t * to support adding properties directly to slots, e.g. to allow/disallow\n\t * content in the slot. */\n\tif (slot) {\n\t\tconst [slotname] = slot;\n\t\tloadSlotMeta(this, slotname, node);\n\t}\n\n\t/* handle usage of <component>, either directly or inside a component */\n\tif (node.meta?.component) {\n\t\tloadComponentMeta(this, node, node.meta.component);\n\t}\n\n\t/* Since html-validate v9.5.4 `<template>` tags are generally ignored when\n\t * checking descendants but since v9.6.1 the checks are enabled if this flag\n\t * is disabled. This is a needed both for `<template #slot>` and when using\n\t * `<template>` inside a Vue SFC where the element is transparent instead of\n\t * acting as a `HTMLTemplateElement`. */\n\tif (node.is(\"template\") && node.meta) {\n\t\tnode.meta.templateRoot = false;\n\t}\n\n\t/* Mark as having dynamic text if the element either content bound via v-html\n\t * or if it is a slot. This is needed for rules with requires textual content,\n\t * e.g a heading cannot be empty. */\n\tif (isBound(node) || isSlot(node)) {\n\t\tnode.appendText(new DynamicValue(\"\"), node.location);\n\t}\n}\n", "import { type Source } from \"html-validate\";\nimport { processAttribute, processElement } from \"../hooks\";\n\n/**\n * Transform a regular HTML file. In practice this only applies hooks without\n * any extraction.\n */\nexport function* transformHTML(source: Source): Iterable<Source> {\n\tyield {\n\t\t...source,\n\t\thooks: {\n\t\t\tprocessAttribute,\n\t\t\tprocessElement,\n\t\t},\n\t};\n}\n\ntransformHTML.api = 1;\n", "import { TemplateExtractor } from \"@html-validate/plugin-utils\";\nimport { type Source } from \"html-validate\";\nimport { processAttribute, processElement } from \"../hooks\";\n\n/**\n * Match template property in `Vue.component` call\n */\nexport function transformJS(source: Source): Iterable<Source> {\n\tconst te = TemplateExtractor.fromString(source.data, source.filename);\n\treturn Array.from(te.extractObjectProperty(\"template\"), (cur) => {\n\t\tcur.originalData = source.originalData ?? source.data;\n\t\tcur.hooks = {\n\t\t\tprocessAttribute,\n\t\t\tprocessElement,\n\t\t};\n\t\treturn cur;\n\t});\n}\n\ntransformJS.api = 1;\n", "import { type Source } from \"html-validate\";\nimport { processAttribute, processElement } from \"../hooks\";\nimport { stripTemplating } from \"../utils\";\n\nfunction findLocation(source: string, index: number, preamble: number): [number, number] {\n\tlet line = 1;\n\tlet prev = 0;\n\tlet pos = source.indexOf(\"\\n\");\n\twhile (pos !== -1) {\n\t\tif (pos > index) {\n\t\t\treturn [line, index - prev + preamble + 1];\n\t\t}\n\t\tline++;\n\t\tprev = pos;\n\t\tpos = source.indexOf(\"\\n\", pos + 1);\n\t}\n\treturn [line, 1];\n}\n\nfunction computeIndent(text: string): string {\n\tconst lines = text.split(\"\\n\");\n\tconst initial = null as string | null;\n\tconst common = lines.reduce((common, line) => {\n\t\tconst match = /^(\\s*)\\S/.exec(line);\n\t\tif (match) {\n\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- if match matches [1] will exist */\n\t\t\tconst indent = match[1]!;\n\t\t\treturn common === null || indent.length < common.length ? indent : common;\n\t\t} else {\n\t\t\treturn common;\n\t\t}\n\t}, initial);\n\treturn common ?? \"\";\n}\n\n/**\n * Match templates from SFC <template> tag\n */\nexport function* transformSFC(source: Source): Iterable<Source> {\n\tconst indent = computeIndent(source.data);\n\t/* eslint-disable-next-line security/detect-non-literal-regexp -- will only contain whitespace */\n\tconst sfc = new RegExp(`^${indent}(<template([^>]*)>)([^]*?)^${indent}(</template>)`, \"gm\");\n\tlet match: RegExpExecArray | null;\n\twhile ((match = sfc.exec(source.data)) !== null) {\n\t\tconst attr = match[2] ?? \"\";\n\t\tconst data = `${match[1]!}${match[3]!}${match[4]!}`; // eslint-disable-line @typescript-eslint/no-non-null-assertion -- groups exists when regex matches\n\t\tif (!/lang=\".*?\"/.test(attr)) {\n\t\t\tconst [line, column] = findLocation(source.data, match.index, 0);\n\t\t\tyield {\n\t\t\t\tdata: stripTemplating(data),\n\t\t\t\tfilename: source.filename,\n\t\t\t\tline: line + (source.line - 1),\n\t\t\t\tcolumn: column + (source.column - 1),\n\t\t\t\toffset: match.index + source.offset,\n\t\t\t\toriginalData: source.originalData ?? source.data,\n\t\t\t\thooks: {\n\t\t\t\t\tprocessAttribute,\n\t\t\t\t\tprocessElement,\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t}\n}\n\ntransformSFC.api = 1;\n", "import { type Source } from \"html-validate\";\nimport { transformHTML } from \"./html.transform\";\nimport { transformJS } from \"./js.transform\";\nimport { transformSFC } from \"./sfc.transform\";\n\n/**\n * Returns true if the source is considered a SFC component\n */\nfunction isVue(source: Source): boolean {\n\treturn /\\.vue$/i.test(source.filename);\n}\n\n/**\n * Returns true if the source is considered javascript\n */\nfunction isJavascript(source: Source): boolean {\n\treturn /\\.(jsx?|tsx?)$/i.test(source.filename);\n}\n\nexport function* autodetect(source: Source): Iterable<Source> {\n\tif (isVue(source)) {\n\t\tyield* transformSFC(source);\n\t} else if (isJavascript(source)) {\n\t\tyield* transformJS(source);\n\t} else {\n\t\tyield* transformHTML(source);\n\t}\n}\n\nautodetect.api = 1;\n", "import { type Transformer } from \"html-validate\";\nimport { autodetect } from \"./auto.transform\";\nimport { transformHTML } from \"./html.transform\";\nimport { transformJS } from \"./js.transform\";\nimport { transformSFC } from \"./sfc.transform\";\n\nconst transformer: Record<string, Transformer> = {\n\tdefault: autodetect,\n\tauto: autodetect,\n\tjs: transformJS,\n\tsfc: transformSFC,\n\thtml: transformHTML,\n};\n\nexport default transformer;\n"],
5
- "mappings": ";AAAA,SAAsB,0BAA0B;;;ACC9C,WAAQ;AA+FR,uBAAoB;AAAA,EAClB,iBAAiB;AACnB;;;AClGF,SAAS,sBAAsB;AAE/B,IAAO,mBAAQ,eAAe;AAAA,EAC7B,WAAW;AAAA,IACV,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAAA,IACb,WAAW;AAAA,IACX,oBAAoB,CAAC,IAAI;AAAA,EAC1B;AAAA,EAEA,cAAc;AAAA,IACb,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAAA,EACd;AAAA,EAEA,QAAQ;AAAA,IACP,YAAY;AAAA,MACX,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,eAAe;AAAA,IAChB;AAAA,EACD;AAAA,EAEA,eAAe;AAAA,IACd,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAAA,EACd;AAAA,EAEA,eAAe;AAAA,IACd,MAAM;AAAA,IACN,OAAO,CAAC,SAAS;AAAA,EAClB;AAAA,EAEA,MAAM;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAAA,IACb,kBAAkB;AAAA,EACnB;AAAA,EAEA,UAAU;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAAA,IACb,OAAO,CAAC,WAAW,UAAU;AAAA,EAC9B;AAAA,EAEA,UAAU;AAAA,IACT,MAAM;AAAA,IACN,UAAU;AAAA,EACX;AAAA,EAEA,YAAY;AAAA,IACX,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAAA,EACd;AAAA,EAEA,oBAAoB;AAAA,IACnB,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAAA,IACb,WAAW;AAAA,EACZ;AACD,CAAC;;;AChEM,SAAS,eAA2B;AAC1C,QAAM,SAAqB;A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Aa,MAAM;AAAA,EAC3B,WAAW,aAAa,MAAM,GAAG;AAChC,WAAO,YAAY,MAAM;AAAA,EAC1B,OAAO;AACN,WAAO,cAAc,MAAM;AAAA,EAC5B;AACD;AAEA,WAAW,MAAM;;;ACvBjB,IAAM,cAA2C;AAAA,EAChD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,MAAM;AACP;AAEA,IAAO,oBAAQ;;;AnBPf,IAAM,QAAQ,iBAAiB,eAAe;AAC9C,mBAAmB,MAAM,KAAK;AAE9B,IAAM,SAAiB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEA,IAAO,cAAQ;",
6
- "names": ["Rule", "walk", "Rule", "walk", "Rule", "Rule", "walk", "difference", "Rule", "walk", "DynamicValue", "DynamicValue", "meta", "name", "DynamicValue", "common"]
3
+ "sources": ["../../src/index.ts", "../../package.json", "../../src/elements.ts", "../../src/configs/recommended.ts", "../../src/configs/index.ts", "../../src/rules/available-slots.ts", "../../src/utils/strip-templating.ts", "../../src/utils/slots.ts", "../../src/rules/deprecated-slot.ts", "../../src/rules/prefer-boolean-shorthand.ts", "../../src/rules/prefer-slot-shorthand.ts", "../../src/rules/required-slots.ts", "../../src/rules/index.ts", "../../src/schema.json", "../../src/hooks/attribute.ts", "../../src/hooks/element.ts", "../../src/transform/html.transform.ts", "../../src/transform/js.transform.ts", "../../src/transform/sfc.transform.ts", "../../src/transform/auto.transform.ts", "../../src/transform/index.ts"],
4
+ "sourcesContent": ["import { type Plugin, compatibilityCheck } from \"html-validate\";\nimport { name, peerDependencies } from \"../package.json\";\nimport configs from \"./configs\";\nimport rules from \"./rules\";\nimport elementSchema from \"./schema.json\";\nimport transformer from \"./transform\";\n\nconst range = peerDependencies[\"html-validate\"];\ncompatibilityCheck(name, range);\n\nconst plugin: Plugin = {\n\tname,\n\tconfigs,\n\trules,\n\ttransformer,\n\telementSchema,\n};\n\nexport default plugin;\n", "{\n \"name\": \"html-validate-vue\",\n \"version\": \"9.2.0\",\n \"description\": \"vue transform for html-validate\",\n \"keywords\": [\n \"html\",\n \"lint\",\n \"html-validate\",\n \"vue\"\n ],\n \"homepage\": \"https://html-validate.org/frameworks/vue.html\",\n \"bugs\": {\n \"url\": \"https://gitlab.com/html-validate/html-validate-vue/issues/new\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://gitlab.com/html-validate/html-validate-vue.git\"\n },\n \"license\": \"MIT\",\n \"author\": \"David Sveningsson <ext@sidvind.com>\",\n \"exports\": {\n \".\": {\n \"import\": {\n \"types\": \"./dist/esm/index.d.mts\",\n \"default\": \"./dist/esm/index.mjs\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/index.d.cts\",\n \"default\": \"./dist/cjs/index.cjs\"\n }\n }\n },\n \"main\": \"dist/cjs/index.cjs\",\n \"module\": \"dist/esm/index.mjs\",\n \"files\": [\n \"dist\"\n ],\n \"scripts\": {\n \"prebuild\": \"tsc\",\n \"build\": \"run-s build:*\",\n \"build:lib\": \"node build.mjs\",\n \"build:cjs\": \"dts-bundle-generator --no-banner --project tsconfig.cjs.json -o dist/cjs/index.d.cts src/entry-cjs.ts\",\n \"build:esm\": \"dts-bundle-generator --no-banner --project tsconfig.esm.json -o dist/esm/index.d.mts src/entry-esm.ts\",\n \"eslint\": \"eslint --cache .\",\n \"eslint:fix\": \"eslint --cache --fix .\",\n \"prepack\": \"release-prepack package.json --bundle\",\n \"postpack\": \"release-postpack package.json\",\n \"prepare\": \"husky\",\n \"prepublishOnly\": \"release-prepack package.json --bundle\",\n \"prettier:check\": \"prettier --check .\",\n \"prettier:write\": \"prettier --write .\",\n \"postpublish\": \"release-postpack package.json\",\n \"attw\": \"attw --no-emoji --pack .\",\n \"test\": \"jest\"\n },\n \"commitlint\": {\n \"extends\": \"@html-validate\"\n },\n \"prettier\": \"@html-validate/prettier-config\",\n \"release\": {\n \"extends\": \"@html-validate/semantic-release-config\"\n },\n \"jest\": {\n \"preset\": \"@html-validate/jest-config\"\n },\n \"dependencies\": {\n \"@html-validate/plugin-utils\": \"^4.0.0\"\n },\n \"devDependencies\": {\n \"@arethetypeswrong/cli\": \"0.18.2\",\n \"@html-validate/commitlint-config\": \"4.0.1\",\n \"@html-validate/eslint-config\": \"9.2.0\",\n \"@html-validate/eslint-config-jest\": \"9.2.0\",\n \"@html-validate/eslint-config-typescript\": \"9.2.0\",\n \"@html-validate/eslint-config-typescript-typeinfo\": \"9.2.0\",\n \"@html-validate/jest-config\": \"3.18.0\",\n \"@html-validate/prettier-config\": \"4.0.1\",\n \"@html-validate/release-scripts\": \"7.2.3\",\n \"@jest/globals\": \"30.4.1\",\n \"@tsconfig/node22\": \"22.0.5\",\n \"@tsconfig/strictest\": \"2.0.8\",\n \"@types/estree\": \"1.0.9\",\n \"@types/node\": \"22.19.19\",\n \"@types/semver\": \"7.7.1\",\n \"dts-bundle-generator\": \"9.5.1\",\n \"esbuild\": \"0.28.0\",\n \"html-validate\": \"11.3.0\",\n \"husky\": \"9.1.7\",\n \"jest\": \"30.4.2\",\n \"jest-environment-jsdom\": \"30.4.1\",\n \"npm-pkg-lint\": \"5.1.1\",\n \"npm-run-all2\": \"9.0.1\",\n \"semver\": \"7.8.1\",\n \"ts-jest\": \"29.4.11\",\n \"typescript\": \"6.0.3\"\n },\n \"peerDependencies\": {\n \"html-validate\": \"^8.21.0 || ^9.0.0 || ^10.0.0 || ^11.0.0\"\n },\n \"engines\": {\n \"node\": \"^22.16 || >= 24\"\n },\n \"externalDependencies\": [\n \"@html-validate/plugin-utils\"\n ]\n}\n", "import { defineMetadata } from \"html-validate\";\n\nexport default defineMetadata({\n\t\"*\": {\n\t\tattributes: {\n\t\t\t/* https://vuejs.org/api/built-in-special-attributes.html#is */\n\t\t\tis: {},\n\n\t\t\t/* https://vuejs.org/api/built-in-special-attributes.html#key */\n\t\t\tkey: {},\n\n\t\t\t/* https://vuejs.org/api/built-in-special-attributes.html#ref */\n\t\t\tref: {},\n\n\t\t\t/* directives */\n\t\t\t\"v-*\": {},\n\n\t\t\t/* props */\n\t\t\t\":*\": {},\n\n\t\t\t/* event listeners */\n\t\t\t\"@*\": {},\n\t\t},\n\t},\n\n\tcomponent: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tcomponent: \"is\",\n\t\tattributes: {\n\t\t\tis: {\n\t\t\t\trequired: true,\n\t\t\t},\n\t\t},\n\t},\n\n\t\"keep-alive\": {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tattributes: {\n\t\t\tinclude: {},\n\t\t\texclude: {},\n\t\t\tmax: {\n\t\t\t\tenum: [/^\\d+$/],\n\t\t\t},\n\t\t},\n\t},\n\n\tportal: {\n\t\tdeprecated: {\n\t\t\tsource: \"vue\",\n\t\t\tmessage: \"the <portal> element has been renamed to <teleport>\",\n\t\t\tdocumentation: \"The `<portal>` element has been renamed to `<teleport>`\",\n\t\t},\n\t},\n\n\t\"router-link\": {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tattributes: {\n\t\t\t\"active-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"aria-current-value\": {\n\t\t\t\tenum: [\"location\", \"time\", \"true\", \"false\", \"page\", \"step\", \"date\"],\n\t\t\t},\n\t\t\tcustom: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\t\"exact-active-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\treplace: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\tto: {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t\trequired: true,\n\t\t\t},\n\t\t},\n\t},\n\n\t\"router-view\": {\n\t\tflow: true,\n\t\tslots: [\"default\"],\n\t\tattributes: {\n\t\t\tname: {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\troute: {},\n\t\t},\n\t},\n\n\tslot: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tscriptSupporting: true,\n\t\tattributes: {\n\t\t\tname: {},\n\t\t\t/* scoped slot can take arbitrary bindings */\n\t\t\t\"*\": {},\n\t\t},\n\t},\n\n\tsuspense: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tslots: [\"default\", \"fallback\"],\n\t\tattributes: {\n\t\t\ttimeout: {\n\t\t\t\tenum: [/^\\d+$/],\n\t\t\t},\n\t\t\tsuspensible: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t},\n\t},\n\n\tteleport: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\tattributes: {\n\t\t\tdefer: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\tto: {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t},\n\t},\n\n\ttemplate: {\n\t\tattributes: {\n\t\t\t\"#*\": {},\n\t\t},\n\t},\n\n\ttransition: {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tattributes: {\n\t\t\tname: {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"enter-from-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"enter-active-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"enter-to-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"leave-from-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"leave-active-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"leave-to-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\ttype: {\n\t\t\t\tenum: [\"transition\", \"animation\"],\n\t\t\t},\n\t\t\tduration: {\n\t\t\t\tenum: [/^\\d+$/],\n\t\t\t},\n\t\t\tcss: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\tappear: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\tmode: {\n\t\t\t\tenum: [\"in-out\", \"out-in\", \"default\"],\n\t\t\t},\n\t\t},\n\t},\n\n\t\"transition-group\": {\n\t\tflow: true,\n\t\tphrasing: true,\n\t\ttransparent: true,\n\t\tcomponent: \"tag\",\n\t\tattributes: {\n\t\t\tname: {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"enter-from-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"enter-active-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"enter-to-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"leave-from-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"leave-active-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\t\"leave-to-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\ttype: {\n\t\t\t\tenum: [\"transition\", \"animation\"],\n\t\t\t},\n\t\t\tduration: {\n\t\t\t\tenum: [/^\\d+$/],\n\t\t\t},\n\t\t\tcss: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\tappear: {\n\t\t\t\tboolean: true,\n\t\t\t},\n\t\t\t\"move-class\": {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t\ttag: {\n\t\t\t\tenum: [\"/.+/\"],\n\t\t\t},\n\t\t},\n\t},\n});\n", "import { type ConfigData } from \"html-validate\";\nimport vueElements from \"../elements\";\n\nexport function createConfig(): ConfigData {\n\tconst config: ConfigData = {\n\t\telements: [vueElements],\n\t\trules: {\n\t\t\t/* vue modifiers often use camelcase so allow by default */\n\t\t\t\"attr-case\": [\"error\", { style: \"camelcase\" }],\n\n\t\t\t/* self closing tags often used in vue code so allow by default*/\n\t\t\t\"void-style\": [\"error\", { style: \"selfclose\" }],\n\t\t\t\"no-self-closing\": \"off\",\n\n\t\t\t/* enable rules from this plugin */\n\t\t\t\"vue/available-slots\": \"error\",\n\t\t\t\"vue/prefer-boolean-shorthand\": \"error\",\n\t\t\t\"vue/prefer-slot-shorthand\": \"error\",\n\t\t\t\"vue/required-slots\": \"error\",\n\t\t},\n\t};\n\n\treturn config;\n}\n\nexport default createConfig();\n", "import recommended from \"./recommended\";\n\nexport default {\n\trecommended,\n};\n", "import {\n\ttype DOMReadyEvent,\n\ttype HtmlElement,\n\ttype RuleDocumentation,\n\tRule,\n\twalk,\n} from \"html-validate\";\nimport { findUsedSlots } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\tinterface MetaData {\n\t\tslots?: string[];\n\t}\n\tinterface MetaElement {\n\t\tslots?: string[];\n\t}\n}\n\nexport interface RuleContext {\n\telement: string;\n\tslot: string;\n\tavailable: string[];\n}\n\nfunction difference<T>(a: Set<T>, b: Set<T>): Set<T> {\n\tconst result = new Set(a);\n\tfor (const elem of b) {\n\t\tresult.delete(elem);\n\t}\n\treturn result;\n}\n\nexport class AvailableSlots extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tif (context) {\n\t\t\treturn {\n\t\t\t\tdescription: [\n\t\t\t\t\t`The <${context.element}> component does not have a slot named \"${context.slot}\". Only known slots can be specified.`,\n\t\t\t\t\t\"\",\n\t\t\t\t\t\"The following slots are available\",\n\t\t\t\t]\n\t\t\t\t\t.concat(context.available.map((slot) => `- ${slot}`))\n\t\t\t\t\t.join(\"\\n\"),\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tdescription: \"Only known slots can be specified.\",\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"dom:ready\", (event: DOMReadyEvent) => {\n\t\t\tconst doc = event.document;\n\t\t\twalk.depthFirst(doc, (node: HtmlElement) => {\n\t\t\t\t/* ignore rule if element has no meta or meta does not specify available slots */\n\t\t\t\tconst meta = node.meta;\n\t\t\t\tif (!meta?.slots) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.validateSlots(node, meta.slots);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate validateSlots(node: HtmlElement, slots: string[]): void {\n\t\tconst usedSlots = findUsedSlots(node);\n\t\tconst available = new Set(slots);\n\t\tconst used = new Set(usedSlots.keys());\n\t\tconst diff = difference(used, available);\n\n\t\tfor (const missing of diff) {\n\t\t\tconst context: RuleContext = {\n\t\t\t\telement: node.tagName,\n\t\t\t\tslot: missing,\n\t\t\t\tavailable: slots,\n\t\t\t};\n\t\t\tthis.report(\n\t\t\t\tnode,\n\t\t\t\t`<${node.tagName}> component has no slot \"${missing}\"`,\n\t\t\t\tusedSlots.get(missing),\n\t\t\t\tcontext,\n\t\t\t);\n\t\t}\n\t}\n}\n", "/**\n * Strip anything inside `{{ .. }}` in case it contains anything that looks like\n * markup, i.e. it will be ignored\n */\nexport function stripTemplating(str: string): string {\n\t/* eslint-disable-next-line sonarjs/slow-regex -- technical debt, should refactor */\n\treturn str.replaceAll(/{{(.*?)}}/g, (_, m: string) => {\n\t\tconst filler = \" \".repeat(m.length);\n\t\treturn `{{${filler}}}`;\n\t});\n}\n", "import { type HtmlElement, type Location } from \"html-validate\";\n\nconst slotAttr = /(?:v-slot:|#)([^[]+)/;\n\nfunction haveSlot(value: [string, Location] | null): value is [string, Location] {\n\treturn value !== null;\n}\n\n/**\n * Search all children for slots and return both slot names and locations.\n */\nexport function findUsedSlots(node: HtmlElement): Map<string, Location> {\n\tconst template = node.querySelectorAll(\">template, >[slot]\");\n\tconst slots = template.map((child) => findSlotAttribute(child)).filter(haveSlot);\n\tconst initial = new Map<string, Location>();\n\treturn slots.reduce((result: Map<string, Location>, [key, val]) => {\n\t\tresult.set(key, val);\n\t\treturn result;\n\t}, initial);\n}\n\n/**\n * Find the name of the slot and its location used by an element. Searches\n * both v-slot:foo and slot=\"foo\".\n */\nexport function findSlotAttribute(node: HtmlElement): [string, Location] | null {\n\tfor (const attr of node.attributes) {\n\t\t/* find v-slot directive */\n\t\tconst match = slotAttr.exec(attr.key);\n\t\tif (match) {\n\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- if slot matches [1] will exist */\n\t\t\tconst slot = match[1]!;\n\t\t\treturn [slot, attr.keyLocation];\n\t\t}\n\n\t\t/* find deprecated slot attribute */\n\t\tif (attr.key === \"slot\" && typeof attr.value === \"string\") {\n\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- valueLocation will always be set the value is present */\n\t\t\treturn [attr.value, attr.valueLocation!];\n\t\t}\n\t}\n\treturn null;\n}\n", "import {\n\ttype DOMReadyEvent,\n\ttype HtmlElement,\n\ttype RuleDocumentation,\n\tRule,\n\twalk,\n} from \"html-validate\";\nimport { findUsedSlots } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\tinterface MetaData {\n\t\tdeprecatedSlots?: Record<string, boolean | string>;\n\t}\n\tinterface MetaElement {\n\t\trequiredSlots?: string[];\n\t\tdeprecatedSlots?: Record<string, boolean | string>;\n\t}\n}\n\n/** @internal */\nexport interface RuleContext {\n\telement: string;\n\tslot: string;\n\tinfo: string | null;\n}\n\nexport class DeprecatedSlot extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tif (context) {\n\t\t\tconst preamble = `The slot \\`${context.slot}\\` is deprecated and must not be used`;\n\t\t\treturn {\n\t\t\t\tdescription: context.info ? `${preamble}: ${context.info}.` : `${preamble}.`,\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tdescription: \"This slot is deprecated and must not be used.\",\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"dom:ready\", (event: DOMReadyEvent) => {\n\t\t\tconst doc = event.document;\n\t\t\twalk.depthFirst(doc, (node: HtmlElement) => {\n\t\t\t\t/* ignore rule if element has no meta or meta does not specify deprecated slots */\n\t\t\t\tconst deprecatedSlots = node.meta?.deprecatedSlots;\n\t\t\t\tif (!deprecatedSlots) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.validateSlots(node, deprecatedSlots);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate validateSlots(\n\t\tnode: HtmlElement,\n\t\tdeprecatedSlots: Record<string, boolean | string>,\n\t): void {\n\t\tconst slots = findUsedSlots(node);\n\t\tfor (const [slot, location] of slots.entries()) {\n\t\t\tconst deprecated = deprecatedSlots[slot];\n\t\t\tif (!deprecated) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst context: RuleContext = {\n\t\t\t\telement: node.tagName,\n\t\t\t\tslot,\n\t\t\t\tinfo: typeof deprecated === \"string\" ? deprecated : null,\n\t\t\t};\n\t\t\tconst preamble = `slot \"${slot}\" is deprecated`;\n\t\t\tconst message = typeof deprecated === \"string\" ? `${preamble}: ${deprecated}` : preamble;\n\t\t\tthis.report({\n\t\t\t\tnode,\n\t\t\t\tmessage,\n\t\t\t\tlocation,\n\t\t\t\tcontext,\n\t\t\t});\n\t\t}\n\t}\n}\n", "import { type AttributeEvent, type RuleDocumentation, DynamicValue, Rule } from \"html-validate\";\n\nexport interface RuleContext {\n\tprop: string;\n\toriginalAttribute: string;\n}\n\nexport class PreferBooleanShorthand extends Rule<RuleContext> {\n\tpublic override documentation(context: RuleContext): RuleDocumentation {\n\t\tconst { prop, originalAttribute } = context;\n\t\treturn {\n\t\t\tdescription: [\n\t\t\t\t`Use \\`${prop}\\` instead of \\`${originalAttribute}=\"true\"\\`.`,\n\t\t\t\t\"\",\n\t\t\t\t`The \\`${prop}\\` prop is declared as a boolean. Vue.js allows omitting the value for boolean props, so \\`${prop}\\` is equivalent to \\`${originalAttribute}=\"true\"\\`.`,\n\t\t\t].join(\"\\n\"),\n\t\t};\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"attr\", (event: AttributeEvent) => {\n\t\t\tconst { key, value, meta, originalAttribute, target, location } = event;\n\n\t\t\t/* only handle synthesized attributes produced by the processAttribute hook,\n\t\t\t * i.e. the \"prop\" attribute generated from \":prop\" or \"v-bind:prop\" */\n\t\t\tif (!originalAttribute) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/* only report for boolean props */\n\t\t\tif (!meta?.boolean) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t/* only report when the bound value is the literal `true` */\n\t\t\tif (!(value instanceof DynamicValue) || value.expr !== \"true\") {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst context: RuleContext = { prop: key, originalAttribute };\n\t\t\tconst message = `Use \"${key}\" instead of \"${originalAttribute}=\"true\"\"`;\n\t\t\tthis.report(target, message, location, context);\n\t\t});\n\t}\n}\n", "import { type AttributeEvent, type RuleDocumentation, DynamicValue, Rule } from \"html-validate\";\n\nexport interface RuleContext {\n\tslot: string;\n}\n\nconst prefix = \"v-slot:\";\n\nfunction isVSlot(attr: string): string | null {\n\tif (!attr.startsWith(prefix)) {\n\t\treturn null;\n\t}\n\tif (attr.length <= prefix.length) {\n\t\treturn null;\n\t}\n\tconst slot = attr.slice(prefix.length);\n\tif (/^\\[.*]$/.test(slot)) {\n\t\treturn null;\n\t}\n\treturn slot;\n}\n\nfunction isDeprecatedSlot(attr: string, value: null | string | DynamicValue): string | null {\n\tif (attr !== \"slot\") {\n\t\treturn null;\n\t}\n\tif (value instanceof DynamicValue) {\n\t\treturn null;\n\t}\n\tif (value === null || value === \"\") {\n\t\treturn null;\n\t}\n\treturn value;\n}\n\nexport class PreferSlotShorthand extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tconst slot = context?.slot ?? \"my-slot\";\n\t\treturn {\n\t\t\tdescription: [\n\t\t\t\t`Prefer to use \\`#${slot}\\` over \\`v-slot:${slot}\\`.`,\n\t\t\t\t\"\",\n\t\t\t\t\"Vue.js supports a shorthand syntax for slots using `#` instead of `v-slot:` or the deprecated `slot` attribute, e.g. using `#header` instead of `v-slot:header`.\",\n\t\t\t].join(\"\\n\"),\n\t\t};\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"attr\", (event: AttributeEvent) => {\n\t\t\tconst { key: attr, value, target, keyLocation: location } = event;\n\n\t\t\tlet slot: string | null;\n\n\t\t\t/* handle v-slot:xyz */\n\t\t\tslot = isVSlot(attr);\n\t\t\tif (slot) {\n\t\t\t\tconst context: RuleContext = { slot };\n\t\t\t\tconst message = `Prefer to use #${slot} over ${attr}`;\n\t\t\t\tthis.report(target, message, location, context);\n\t\t\t}\n\n\t\t\t/* handle slot=\"xyz\" */\n\t\t\tslot = isDeprecatedSlot(attr, value);\n\t\t\tif (slot) {\n\t\t\t\tconst context: RuleContext = { slot };\n\t\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- value is checked by isDeprecatedSlot */\n\t\t\t\tconst message = `Prefer to use #${slot} over ${attr}=\"${value!.toString()}\"`;\n\t\t\t\tthis.report(target, message, location, context);\n\t\t\t}\n\t\t});\n\t}\n}\n", "import {\n\ttype DOMReadyEvent,\n\ttype HtmlElement,\n\ttype RuleDocumentation,\n\tRule,\n\twalk,\n} from \"html-validate\";\nimport { findUsedSlots } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\tinterface MetaData {\n\t\trequiredSlots?: string[];\n\t}\n\tinterface MetaElement {\n\t\trequiredSlots?: string[];\n\t}\n}\n\nexport interface RuleContext {\n\telement: string;\n\tslot: string;\n\trequired: string[];\n}\n\nfunction difference<T>(a: Set<T>, b: Set<T>): Set<T> {\n\tconst result = new Set(a);\n\tfor (const elem of b) {\n\t\tresult.delete(elem);\n\t}\n\treturn result;\n}\n\nexport class RequiredSlots extends Rule<RuleContext> {\n\tpublic override documentation(context?: RuleContext): RuleDocumentation {\n\t\tif (context) {\n\t\t\treturn {\n\t\t\t\tdescription: [\n\t\t\t\t\t`The <${context.element}> component requires slot \"${context.slot}\" to be implemented. Add \\`<template v-slot:${context.slot}>\\``,\n\t\t\t\t\t\"\",\n\t\t\t\t\t\"The following slots are required\",\n\t\t\t\t]\n\t\t\t\t\t.concat(context.required.map((slot) => `- ${slot}`))\n\t\t\t\t\t.join(\"\\n\"),\n\t\t\t};\n\t\t} else {\n\t\t\treturn {\n\t\t\t\tdescription: \"All required slots must be implemented.\",\n\t\t\t};\n\t\t}\n\t}\n\n\tpublic setup(): void {\n\t\tthis.on(\"dom:ready\", (event: DOMReadyEvent) => {\n\t\t\tconst doc = event.document;\n\t\t\twalk.depthFirst(doc, (node: HtmlElement) => {\n\t\t\t\t/* ignore rule if element has no meta or meta does not specify available slots */\n\t\t\t\tconst meta = node.meta;\n\t\t\t\tif (!meta?.requiredSlots) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tthis.validateSlots(node, meta.requiredSlots);\n\t\t\t});\n\t\t});\n\t}\n\n\tprivate validateSlots(node: HtmlElement, requiredSlots: string[]): void {\n\t\tconst usedSlots = findUsedSlots(node);\n\t\tconst required = new Set(requiredSlots);\n\t\tconst used = new Set(usedSlots.keys());\n\t\tconst diff = difference(required, used);\n\n\t\tfor (const missing of diff) {\n\t\t\tconst context: RuleContext = {\n\t\t\t\telement: node.tagName,\n\t\t\t\tslot: missing,\n\t\t\t\trequired: requiredSlots,\n\t\t\t};\n\t\t\tthis.report(\n\t\t\t\tnode,\n\t\t\t\t`<${node.tagName}> component requires slot \"${missing}\" to be implemented`,\n\t\t\t\tnull,\n\t\t\t\tcontext,\n\t\t\t);\n\t\t}\n\t}\n}\n", "import { AvailableSlots } from \"./available-slots\";\nimport { DeprecatedSlot } from \"./deprecated-slot\";\nimport { PreferBooleanShorthand } from \"./prefer-boolean-shorthand\";\nimport { PreferSlotShorthand } from \"./prefer-slot-shorthand\";\nimport { RequiredSlots } from \"./required-slots\";\n\nconst rules = {\n\t\"vue/available-slots\": AvailableSlots,\n\t\"vue/deprecated-slot\": DeprecatedSlot,\n\t\"vue/prefer-boolean-shorthand\": PreferBooleanShorthand,\n\t\"vue/prefer-slot-shorthand\": PreferSlotShorthand,\n\t\"vue/required-slots\": RequiredSlots,\n};\n\nexport default rules;\n", "{\n \"properties\": {\n \"component\": {\n \"type\": \"string\",\n \"copyable\": true\n },\n \"deprecatedSlots\": {\n \"type\": \"object\",\n \"patternProperties\": {\n \".*\": {\n \"anyOf\": [{ \"type\": \"boolean\" }, { \"type\": \"string\" }]\n }\n }\n },\n \"requiredSlots\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n },\n \"slots\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n }\n }\n }\n}\n", "import { type AttributeData, DynamicValue } from \"html-validate\";\n\nexport function* processAttribute(attr: AttributeData): Iterable<AttributeData> {\n\t/* always yield original attribute */\n\tyield attr;\n\n\t/* setup :foo and v-bind:foo alias */\n\tconst bind = /^(?:v-bind)?:(.*)$/.exec(attr.key);\n\tif (bind) {\n\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- if bind matches [1] will exist */\n\t\tconst key = bind[1]!;\n\t\tyield {\n\t\t\t...attr,\n\t\t\tkey,\n\t\t\tvalue: new DynamicValue(attr.value ? String(attr.value) : \"\"),\n\t\t\toriginalAttribute: attr.key,\n\t\t};\n\t}\n}\n", "import {\n\ttype HtmlElement,\n\ttype MetaElement,\n\ttype ProcessElementContext,\n\tDynamicValue,\n} from \"html-validate\";\nimport { findSlotAttribute } from \"../utils\";\n\ndeclare module \"html-validate\" {\n\texport interface MetaData {\n\t\tcomponent?: string;\n\t}\n}\n\nfunction isBound(node: HtmlElement): boolean {\n\treturn node.hasAttribute(\"v-html\");\n}\n\nfunction isSlot(node: HtmlElement): boolean {\n\treturn node.is(\"slot\");\n}\n\nfunction loadSlotMeta(context: ProcessElementContext, slotname: string, node: HtmlElement): void {\n\tconst parent = node.parent;\n\tif (!parent) {\n\t\treturn;\n\t}\n\n\t/* Generate a new virtual tagname to load meta element from */\n\tconst getMetaFor = (tagName: string): MetaElement | null => {\n\t\tconst meta = context.getMetaFor(tagName);\n\t\treturn meta && meta.tagName !== \"*\" ? meta : null;\n\t};\n\tconst key = `${parent.tagName}#${slotname}`;\n\tconst fallbackKey = `${parent.tagName}:${slotname}`;\n\tconst meta = getMetaFor(key) ?? getMetaFor(fallbackKey);\n\tif (!meta) {\n\t\treturn;\n\t}\n\n\tnode.loadMeta(meta);\n\n\t/* add an annotation so error messages will be more understandable */\n\tnode.setAnnotation(`slot \"${slotname}\" (<${parent.tagName}>)`);\n}\n\n/**\n * Handle <component> or a component with a slot wrapped in it.\n */\nfunction loadComponentMeta(\n\tcontext: ProcessElementContext,\n\tnode: HtmlElement,\n\tcomponent: string,\n): void {\n\tlet src: HtmlElement = node;\n\n\t/* if this is a slot with wrapped in a <component> we fetch attributes from\n\t * the parent element, i.e. the actual component */\n\tif (node.tagName === \"template\" && src.parent) {\n\t\tsrc = src.parent;\n\t}\n\n\t/* try to fetch the attribute containing the element to use */\n\tconst attr = src.getAttribute(component);\n\tif (!attr || attr.isDynamic) {\n\t\treturn;\n\t}\n\n\t/* use the attribute value to lookup new metadata based on the tagname */\n\tconst tagName = attr.value as string;\n\tconst meta = context.getMetaFor(tagName);\n\tif (!meta || meta.tagName === \"*\") {\n\t\treturn;\n\t}\n\n\tnode.loadMeta(meta);\n\n\t/* update or add new annotation so error messages will be more descriptive */\n\tif (node.isSameNode(src)) {\n\t\tnode.setAnnotation(`<${meta.tagName}> (<${node.tagName}>)`);\n\t} else {\n\t\tconst name = node.annotatedName.replace(\"(<\", `(<${meta.tagName}> via <`);\n\t\tnode.setAnnotation(name);\n\t}\n}\n\nexport function processElement(this: ProcessElementContext, node: HtmlElement): void {\n\tconst slot = findSlotAttribute(node);\n\n\t/* If this element is a slot we load new metadata properties onto the element\n\t * to support adding properties directly to slots, e.g. to allow/disallow\n\t * content in the slot. */\n\tif (slot) {\n\t\tconst [slotname] = slot;\n\t\tloadSlotMeta(this, slotname, node);\n\t}\n\n\t/* handle usage of <component>, either directly or inside a component */\n\tif (node.meta?.component) {\n\t\tloadComponentMeta(this, node, node.meta.component);\n\t}\n\n\t/* Since html-validate v9.5.4 `<template>` tags are generally ignored when\n\t * checking descendants but since v9.6.1 the checks are enabled if this flag\n\t * is disabled. This is a needed both for `<template #slot>` and when using\n\t * `<template>` inside a Vue SFC where the element is transparent instead of\n\t * acting as a `HTMLTemplateElement`. */\n\tif (node.is(\"template\") && node.meta) {\n\t\tnode.meta.templateRoot = false;\n\t}\n\n\t/* Mark as having dynamic text if the element either content bound via v-html\n\t * or if it is a slot. This is needed for rules with requires textual content,\n\t * e.g a heading cannot be empty. */\n\tif (isBound(node) || isSlot(node)) {\n\t\tnode.appendText(new DynamicValue(\"\"), node.location);\n\t}\n}\n", "import { type Source } from \"html-validate\";\nimport { processAttribute, processElement } from \"../hooks\";\n\n/**\n * Transform a regular HTML file. In practice this only applies hooks without\n * any extraction.\n */\nexport function* transformHTML(source: Source): Iterable<Source> {\n\tyield {\n\t\t...source,\n\t\thooks: {\n\t\t\tprocessAttribute,\n\t\t\tprocessElement,\n\t\t},\n\t};\n}\n\ntransformHTML.api = 1;\n", "import { TemplateExtractor } from \"@html-validate/plugin-utils\";\nimport { type Source } from \"html-validate\";\nimport { processAttribute, processElement } from \"../hooks\";\n\n/**\n * Match template property in `Vue.component` call\n */\nexport function transformJS(source: Source): Iterable<Source> {\n\tconst te = TemplateExtractor.fromString(source.data, source.filename);\n\treturn Array.from(te.extractObjectProperty(\"template\"), (cur) => {\n\t\tcur.originalData = source.originalData ?? source.data;\n\t\tcur.hooks = {\n\t\t\tprocessAttribute,\n\t\t\tprocessElement,\n\t\t};\n\t\treturn cur;\n\t});\n}\n\ntransformJS.api = 1;\n", "import { type Source } from \"html-validate\";\nimport { processAttribute, processElement } from \"../hooks\";\nimport { stripTemplating } from \"../utils\";\n\nfunction findLocation(source: string, index: number, preamble: number): [number, number] {\n\tlet line = 1;\n\tlet prev = 0;\n\tlet pos = source.indexOf(\"\\n\");\n\twhile (pos !== -1) {\n\t\tif (pos > index) {\n\t\t\treturn [line, index - prev + preamble + 1];\n\t\t}\n\t\tline++;\n\t\tprev = pos;\n\t\tpos = source.indexOf(\"\\n\", pos + 1);\n\t}\n\treturn [line, 1];\n}\n\nfunction computeIndent(text: string): string {\n\tconst lines = text.split(\"\\n\");\n\tconst initial = null as string | null;\n\tconst common = lines.reduce((common, line) => {\n\t\tconst match = /^(\\s*)\\S/.exec(line);\n\t\tif (match) {\n\t\t\t/* eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- if match matches [1] will exist */\n\t\t\tconst indent = match[1]!;\n\t\t\treturn common === null || indent.length < common.length ? indent : common;\n\t\t} else {\n\t\t\treturn common;\n\t\t}\n\t}, initial);\n\treturn common ?? \"\";\n}\n\n/**\n * Match templates from SFC <template> tag\n */\nexport function* transformSFC(source: Source): Iterable<Source> {\n\tconst indent = computeIndent(source.data);\n\t/* eslint-disable-next-line security/detect-non-literal-regexp -- will only contain whitespace */\n\tconst sfc = new RegExp(`^${indent}(<template([^>]*)>)([^]*?)^${indent}(</template>)`, \"gm\");\n\tlet match: RegExpExecArray | null;\n\twhile ((match = sfc.exec(source.data)) !== null) {\n\t\tconst attr = match[2] ?? \"\";\n\t\tconst data = `${match[1]!}${match[3]!}${match[4]!}`; // eslint-disable-line @typescript-eslint/no-non-null-assertion -- groups exists when regex matches\n\t\tif (!/lang=\".*?\"/.test(attr)) {\n\t\t\tconst [line, column] = findLocation(source.data, match.index, 0);\n\t\t\tyield {\n\t\t\t\tdata: stripTemplating(data),\n\t\t\t\tfilename: source.filename,\n\t\t\t\tline: line + (source.line - 1),\n\t\t\t\tcolumn: column + (source.column - 1),\n\t\t\t\toffset: match.index + source.offset,\n\t\t\t\toriginalData: source.originalData ?? source.data,\n\t\t\t\thooks: {\n\t\t\t\t\tprocessAttribute,\n\t\t\t\t\tprocessElement,\n\t\t\t\t},\n\t\t\t};\n\t\t}\n\t}\n}\n\ntransformSFC.api = 1;\n", "import { type Source } from \"html-validate\";\nimport { transformHTML } from \"./html.transform\";\nimport { transformJS } from \"./js.transform\";\nimport { transformSFC } from \"./sfc.transform\";\n\n/**\n * Returns true if the source is considered a SFC component\n */\nfunction isVue(source: Source): boolean {\n\treturn /\\.vue$/i.test(source.filename);\n}\n\n/**\n * Returns true if the source is considered javascript\n */\nfunction isJavascript(source: Source): boolean {\n\treturn /\\.(jsx?|tsx?)$/i.test(source.filename);\n}\n\nexport function* autodetect(source: Source): Iterable<Source> {\n\tif (isVue(source)) {\n\t\tyield* transformSFC(source);\n\t} else if (isJavascript(source)) {\n\t\tyield* transformJS(source);\n\t} else {\n\t\tyield* transformHTML(source);\n\t}\n}\n\nautodetect.api = 1;\n", "import { type Transformer } from \"html-validate\";\nimport { autodetect } from \"./auto.transform\";\nimport { transformHTML } from \"./html.transform\";\nimport { transformJS } from \"./js.transform\";\nimport { transformSFC } from \"./sfc.transform\";\n\nconst transformer: Record<string, Transformer> = {\n\tdefault: autodetect,\n\tauto: autodetect,\n\tjs: transformJS,\n\tsfc: transformSFC,\n\thtml: transformHTML,\n};\n\nexport default transformer;\n"],
5
+ "mappings": ";AAAA,SAAsB,0BAA0B;;;ACC9C,WAAQ;AA+FR,uBAAoB;AAAA,EAClB,iBAAiB;AACnB;;;AClGF,SAAS,sBAAsB;AAE/B,IAAO,mBAAQ,eAAe;AAAA,EAC7B,KAAK;AAAA,IACJ,YAAY;AAAA;AAAA,MAEX,IAAI,CAAC;AAAA;AAAA,MAGL,KAAK,CAAC;AAAA;AAAA,MAGN,KAAK,CAAC;AAAA;AAAA,MAGN,OAAO,CAAC;AAAA;AAAA,MAGR,MAAM,CAAC;AAAA;AAAA,MAGP,MAAM,CAAC;AAAA,IACR;AAAA,EACD;AAAA,EAEA,WAAW;AAAA,IACV,MAAM;AAAA,IACN,UAAU;AAAA,IACV,aAAa;AAAA,IACb,WAAW;AAAA,IACX,YAAY;AAAA,MACX,IAAI;AAAA,QACH,U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C,aAAa,KAAK,IAAI,GAAG;AAC7B,YAAM,CAAC,MAAM,MAAM,IAAI,aAAa,OAAO,MAAM,MAAM,OAAO,CAAC;AAC/D,YAAM;AAAA,QACL,MAAM,gBAAgB,IAAI;AAAA,QAC1B,UAAU,OAAO;AAAA,QACjB,MAAM,QAAQ,OAAO,OAAO;AAAA,QAC5B,QAAQ,UAAU,OAAO,SAAS;AAAA,QAClC,QAAQ,MAAM,QAAQ,OAAO;AAAA,QAC7B,cAAc,OAAO,gBAAgB,OAAO;AAAA,QAC5C,OAAO;AAAA,UACN;AAAA,UACA;AAAA,QACD;AAAA,MACD;AAAA,IACD;AAAA,EACD;AACD;AAEA,aAAa,MAAM;;;ACxDnB,SAAS,MAAM,QAAyB;AACvC,SAAO,UAAU,KAAK,OAAO,QAAQ;AACtC;AAKA,SAAS,aAAa,QAAyB;AAC9C,SAAO,kBAAkB,KAAK,OAAO,QAAQ;AAC9C;AAEO,UAAU,WAAW,QAAkC;AAC7D,MAAI,MAAM,MAAM,GAAG;AAClB,WAAO,aAAa,MAAM;AAAA,EAC3B,WAAW,aAAa,MAAM,GAAG;AAChC,WAAO,YAAY,MAAM;AAAA,EAC1B,OAAO;AACN,WAAO,cAAc,MAAM;AAAA,EAC5B;AACD;AAEA,WAAW,MAAM;;;ACvBjB,IAAM,cAA2C;AAAA,EAChD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,MAAM;AACP;AAEA,IAAO,oBAAQ;;;ApBPf,IAAM,QAAQ,iBAAiB,eAAe;AAC9C,mBAAmB,MAAM,KAAK;AAE9B,IAAM,SAAiB;AAAA,EACtB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD;AAEA,IAAO,cAAQ;",
6
+ "names": ["Rule", "walk", "Rule", "walk", "Rule", "DynamicValue", "Rule", "Rule", "walk", "difference", "Rule", "walk", "DynamicValue", "DynamicValue", "meta", "name", "DynamicValue", "common"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-validate-vue",
3
- "version": "9.1.0",
3
+ "version": "9.3.0",
4
4
  "description": "vue transform for html-validate",
5
5
  "keywords": [
6
6
  "html",