@html-validate/plugin-template 1.1.19 → 1.1.20
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/files/CHANGELOG.md +6 -0
- package/files/package.json +5 -5
- package/files/src/elements.spec.ts +10 -4
- package/package.json +1 -1
package/files/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @html-validate/plugin-template changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.20 (2026-09-06)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
- **deps:** update dependency @html-validate/release-scripts to v7.6.11 ([7c89aa3](https://gitlab.com/html-validate/plugin-template/commit/7c89aa3d9bd476326f672c7c7a73e6de8fa8a6ae))
|
|
8
|
+
|
|
3
9
|
## 1.1.19 (2026-09-05)
|
|
4
10
|
|
|
5
11
|
### Bug Fixes
|
package/files/package.json
CHANGED
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@arethetypeswrong/cli": "0.18.5",
|
|
51
51
|
"@html-validate/commitlint-config": "4.3.3",
|
|
52
|
-
"@html-validate/eslint-config": "9.19.
|
|
53
|
-
"@html-validate/eslint-config-jest": "9.19.
|
|
52
|
+
"@html-validate/eslint-config": "9.19.4",
|
|
53
|
+
"@html-validate/eslint-config-jest": "9.19.3",
|
|
54
54
|
"@html-validate/eslint-config-typescript": "9.19.2",
|
|
55
55
|
"@html-validate/eslint-config-typescript-typeinfo": "9.19.2",
|
|
56
56
|
"@html-validate/jest-config": "3.18.2",
|
|
57
|
-
"@html-validate/plugin-template": "1.1.
|
|
57
|
+
"@html-validate/plugin-template": "1.1.20",
|
|
58
58
|
"@html-validate/prettier-config": "4.1.12",
|
|
59
|
-
"@html-validate/release-scripts": "7.6.
|
|
59
|
+
"@html-validate/release-scripts": "7.6.11",
|
|
60
60
|
"@jest/globals": "30.5.1",
|
|
61
61
|
"@tsconfig/node22": "22.0.6",
|
|
62
62
|
"@tsconfig/strictest": "2.0.8",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"cloneman": "1.23.0",
|
|
68
68
|
"dts-bundle-generator": "9.5.1",
|
|
69
69
|
"esbuild": "0.28.2",
|
|
70
|
-
"html-validate": "11.
|
|
70
|
+
"html-validate": "11.14.0",
|
|
71
71
|
"husky": "9.1.7",
|
|
72
72
|
"jest": "30.5.1",
|
|
73
73
|
"jest-environment-jsdom": "30.5.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
2
|
import { describe, expect, it } from "@jest/globals";
|
|
3
|
-
import { type
|
|
3
|
+
import { type Result, HtmlValidate } from "html-validate";
|
|
4
4
|
import metadata from "./elements";
|
|
5
5
|
import Plugin from "./index";
|
|
6
6
|
|
|
@@ -19,9 +19,15 @@ const htmlvalidate = new HtmlValidate({
|
|
|
19
19
|
},
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
function
|
|
22
|
+
function normalizeReport(report: {
|
|
23
|
+
results: Array<Partial<Result> & Pick<Result, "filePath">>;
|
|
24
|
+
}): void {
|
|
23
25
|
for (const result of report.results) {
|
|
24
26
|
result.filePath = path.relative(rootDir, result.filePath);
|
|
27
|
+
|
|
28
|
+
/* these are not available until html-validate v11.14.0 */
|
|
29
|
+
delete result.fixableErrorCount;
|
|
30
|
+
delete result.fixableWarningCount;
|
|
25
31
|
}
|
|
26
32
|
}
|
|
27
33
|
|
|
@@ -34,14 +40,14 @@ describe("HTML elements", () => {
|
|
|
34
40
|
it("valid markup", async () => {
|
|
35
41
|
expect.assertions(1);
|
|
36
42
|
const report = await htmlvalidate.validateFile(filename("valid"));
|
|
37
|
-
|
|
43
|
+
normalizeReport(report);
|
|
38
44
|
expect(report.results).toMatchSnapshot();
|
|
39
45
|
});
|
|
40
46
|
|
|
41
47
|
it("invalid markup", async () => {
|
|
42
48
|
expect.assertions(1);
|
|
43
49
|
const report = await htmlvalidate.validateFile(filename("invalid"));
|
|
44
|
-
|
|
50
|
+
normalizeReport(report);
|
|
45
51
|
expect(report.results).toMatchSnapshot();
|
|
46
52
|
});
|
|
47
53
|
});
|