@markuplint/rules 4.10.8 → 4.10.10

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,16 @@
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
+ ## [4.10.10](https://github.com/markuplint/markuplint/compare/@markuplint/rules@4.10.9...@markuplint/rules@4.10.10) (2025-02-27)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **html-spec:** fix required attrs and conditional attrs of the `picture` element ([60f9089](https://github.com/markuplint/markuplint/commit/60f908979238d98950a7141cf74b6925f829283e))
11
+
12
+ ## [4.10.9](https://github.com/markuplint/markuplint/compare/@markuplint/rules@4.10.8...@markuplint/rules@4.10.9) (2025-02-11)
13
+
14
+ **Note:** Version bump only for package @markuplint/rules
15
+
6
16
  ## [4.10.8](https://github.com/markuplint/markuplint/compare/@markuplint/rules@4.10.7...@markuplint/rules@4.10.8) (2025-02-04)
7
17
 
8
18
  ### Bug Fixes
@@ -0,0 +1,2 @@
1
+ declare const _default: Readonly<import("@markuplint/ml-core").RuleSeed<boolean, null>>;
2
+ export default _default;
@@ -0,0 +1,31 @@
1
+ import { createRule } from "@markuplint/ml-core";
2
+ import meta from "./meta.js";
3
+ export default createRule({
4
+ meta: meta,
5
+ defaultValue: true,
6
+ defaultOptions: null,
7
+ async verify({ document, report, t }) {
8
+ // Element
9
+ await document.walkOn("Element", (el) => {
10
+ const raw = el.raw.trim();
11
+ if (/./.test(raw)) {
12
+ report({
13
+ scope: el,
14
+ message: t("It is {0}", "issue"),
15
+ });
16
+ }
17
+ });
18
+ // Attribute
19
+ await document.walkOn("Attr", (attr) => {
20
+ if (/./.test(attr.name)) {
21
+ report({
22
+ scope: attr,
23
+ line: attr.nameNode?.startLine,
24
+ col: attr.nameNode?.startCol,
25
+ raw: attr.nameNode?.raw,
26
+ message: t("It is {0}", "issue"),
27
+ });
28
+ }
29
+ });
30
+ },
31
+ });
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ readonly category: "validation";
3
+ };
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export default {
2
+ category: "validation",
3
+ };
@@ -16,7 +16,7 @@ export declare function isZeroOrMore(content: ReadonlyDeep<PermittedContentPatte
16
16
  export declare function isChoice(content: ReadonlyDeep<PermittedContentPattern>): content is ReadonlyDeep<PermittedContentChoice>;
17
17
  export declare function isTransparent(content: ReadonlyDeep<PermittedContentPattern>): content is ReadonlyDeep<PermittedContentTransparent>;
18
18
  export declare function normalizeModel(pattern: ReadonlyDeep<PermittedContentRequire> | ReadonlyDeep<PermittedContentOptional> | ReadonlyDeep<PermittedContentOneOrMore> | ReadonlyDeep<PermittedContentZeroOrMore>): {
19
- model: ReadonlyDeep<PermittedContentPattern[] | Model>;
19
+ model: ReadonlyDeep<Model | PermittedContentPattern[]>;
20
20
  min: number;
21
21
  max: number;
22
22
  repeat: RepeatSign;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/rules",
3
- "version": "4.10.8",
3
+ "version": "4.10.10",
4
4
  "description": "Built-in rules of markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -25,18 +25,18 @@
25
25
  "./lib/permitted-contents/debug.js": "./lib/permitted-contents/debug.browser.js"
26
26
  },
27
27
  "dependencies": {
28
- "@markuplint/html-spec": "4.12.0",
29
- "@markuplint/ml-core": "4.12.0",
30
- "@markuplint/ml-spec": "4.9.2",
31
- "@markuplint/selector": "4.7.0",
28
+ "@markuplint/html-spec": "4.14.0",
29
+ "@markuplint/ml-core": "4.12.2",
30
+ "@markuplint/ml-spec": "4.9.4",
31
+ "@markuplint/selector": "4.7.2",
32
32
  "@markuplint/shared": "4.4.10",
33
- "@markuplint/types": "4.7.2",
33
+ "@markuplint/types": "4.7.4",
34
34
  "@types/debug": "4.1.12",
35
35
  "@ungap/structured-clone": "1.3.0",
36
36
  "ansi-colors": "4.1.3",
37
37
  "chrono-node": "2.7.8",
38
38
  "debug": "4.4.0",
39
- "type-fest": "4.33.0"
39
+ "type-fest": "4.35.0"
40
40
  },
41
- "gitHead": "687a84e00546b8f1f2ed88125fe507239723c8d8"
41
+ "gitHead": "1b71e44a0a372662abca460ef77888053b66a78d"
42
42
  }