@markuplint/rules 5.0.0-rc.6 → 5.0.0-rc.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.0.0-rc.7](https://github.com/markuplint/markuplint/compare/v5.0.0-rc.6...v5.0.0-rc.7) (2026-08-31)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **rules:** exempt no-unclosed-element-at-eof for never-close-tag parsers ([4f426d9](https://github.com/markuplint/markuplint/commit/4f426d9dd7e29fc28b14873674069dcbd7424970)), closes [#4022](https://github.com/markuplint/markuplint/issues/4022)
11
+
6
12
  # [5.0.0-rc.6](https://github.com/markuplint/markuplint/compare/v5.0.0-rc.5...v5.0.0-rc.6) (2026-08-30)
7
13
 
8
14
  ### Bug Fixes
@@ -61,6 +61,16 @@ function deepEndOffset(node) {
61
61
  export default createRule({
62
62
  meta: meta,
63
63
  async verify({ document, report, t }) {
64
+ /**
65
+ * A parser with `endTagType: 'never'` (e.g. `@markuplint/pug-parser`)
66
+ * structurally never records a close tag for any element, so
67
+ * `el.closeTag == null` carries no signal about whether the source is
68
+ * actually malformed — see `require-end-tag`'s identical guard for the
69
+ * same rationale.
70
+ */
71
+ if (document.endTag === 'never') {
72
+ return;
73
+ }
64
74
  const eof = document.raw.length;
65
75
  await document.walkOn('Element', el => {
66
76
  if (el.isOmitted)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/rules",
3
- "version": "5.0.0-rc.6",
3
+ "version": "5.0.0-rc.7",
4
4
  "description": "Built-in rules of markuplint",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,13 +31,13 @@
31
31
  "./lib/permitted-contents/debug.js": "./lib/permitted-contents/debug.browser.js"
32
32
  },
33
33
  "dependencies": {
34
- "@markuplint/html-spec": "5.0.0-rc.6",
35
- "@markuplint/ml-config": "5.0.0-rc.6",
36
- "@markuplint/ml-core": "5.0.0-rc.6",
37
- "@markuplint/ml-spec": "5.0.0-rc.6",
38
- "@markuplint/selector": "5.0.0-rc.6",
39
- "@markuplint/shared": "5.0.0-rc.6",
40
- "@markuplint/types": "5.0.0-rc.6",
34
+ "@markuplint/html-spec": "5.0.0-rc.7",
35
+ "@markuplint/ml-config": "5.0.0-rc.7",
36
+ "@markuplint/ml-core": "5.0.0-rc.7",
37
+ "@markuplint/ml-spec": "5.0.0-rc.7",
38
+ "@markuplint/selector": "5.0.0-rc.7",
39
+ "@markuplint/shared": "5.0.0-rc.7",
40
+ "@markuplint/types": "5.0.0-rc.7",
41
41
  "@mdn/browser-compat-data": "^7.3.2",
42
42
  "@types/debug": "4.1.13",
43
43
  "ansi-colors": "4.1.3",
@@ -47,5 +47,5 @@
47
47
  "image-size": "^2.0.2",
48
48
  "type-fest": "5.6.0"
49
49
  },
50
- "gitHead": "c02c3a0783eac6b2fb4707be2dc00b88f6219641"
50
+ "gitHead": "8d7a3b801e0f5f88438c003e7eee2bd45e6aedd0"
51
51
  }