@markuplint/rules 4.12.0 → 4.18.1

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,18 @@
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.18.1](https://github.com/markuplint/markuplint/compare/v4.18.0...v4.18.1) (2026-04-24)
7
+
8
+ **Note:** Version bump only for package @markuplint/rules
9
+
10
+ # [4.18.0](https://github.com/markuplint/markuplint/compare/v4.14.1...v4.18.0) (2026-04-22)
11
+
12
+ **Note:** Version bump only for package @markuplint/rules
13
+
14
+ ## [4.12.1](https://github.com/markuplint/markuplint/compare/@markuplint/rules@4.12.0...@markuplint/rules@4.12.1) (2026-04-21)
15
+
16
+ **Note:** Version bump only for package @markuplint/rules
17
+
6
18
  # [4.12.0](https://github.com/markuplint/markuplint/compare/@markuplint/rules@4.11.2...@markuplint/rules@4.12.0) (2026-02-10)
7
19
 
8
20
  ### Features
package/lib/index.d.ts CHANGED
@@ -30,35 +30,35 @@ declare const rules: {
30
30
  readonly 'invalid-attr': Readonly<import("@markuplint/ml-core").RuleSeed<boolean, {
31
31
  allowAttrs?: (string | {
32
32
  name: string;
33
- value: import("packages/@markuplint/ml-spec/lib/index.js").AttributeType | ({
33
+ value: import("@markuplint/ml-spec").AttributeType | ({
34
34
  enum: [string, ...string[]];
35
35
  } | {
36
36
  pattern: string;
37
37
  } | {
38
- type: import("packages/@markuplint/ml-spec/lib/index.js").AttributeType;
38
+ type: import("@markuplint/ml-spec").AttributeType;
39
39
  });
40
40
  })[] | Record<string, {
41
41
  enum: [string, ...string[]];
42
42
  } | {
43
43
  pattern: string;
44
44
  } | {
45
- type: import("packages/@markuplint/ml-spec/lib/index.js").AttributeType;
45
+ type: import("@markuplint/ml-spec").AttributeType;
46
46
  }>;
47
47
  disallowAttrs?: (string | {
48
48
  name: string;
49
- value: import("packages/@markuplint/ml-spec/lib/index.js").AttributeType | ({
49
+ value: import("@markuplint/ml-spec").AttributeType | ({
50
50
  enum: [string, ...string[]];
51
51
  } | {
52
52
  pattern: string;
53
53
  } | {
54
- type: import("packages/@markuplint/ml-spec/lib/index.js").AttributeType;
54
+ type: import("@markuplint/ml-spec").AttributeType;
55
55
  });
56
56
  })[] | Record<string, {
57
57
  enum: [string, ...string[]];
58
58
  } | {
59
59
  pattern: string;
60
60
  } | {
61
- type: import("packages/@markuplint/ml-spec/lib/index.js").AttributeType;
61
+ type: import("@markuplint/ml-spec").AttributeType;
62
62
  }>;
63
63
  ignoreAttrNamePrefix?: string | string[];
64
64
  allowToAddPropertiesForPretender?: boolean;
@@ -67,14 +67,14 @@ declare const rules: {
67
67
  } | {
68
68
  pattern: string;
69
69
  } | {
70
- type: import("packages/@markuplint/ml-spec/lib/index.js").AttributeType;
70
+ type: import("@markuplint/ml-spec").AttributeType;
71
71
  }) | {
72
72
  disallowed: true;
73
73
  }>;
74
74
  }>>;
75
75
  readonly 'label-has-control': Readonly<import("@markuplint/ml-core").RuleSeed<import("@markuplint/ml-core").RuleConfigValue, undefined>>;
76
76
  readonly 'landmark-roles': Readonly<import("@markuplint/ml-core").RuleSeed<boolean, {
77
- ignoreRoles: (("banner" | "main" | "complementary" | "contentinfo") | "form" | "navigation" | "region")[];
77
+ ignoreRoles: ("form" | ("main" | "banner" | "complementary" | "contentinfo") | "navigation" | "region")[];
78
78
  labelEachArea: boolean;
79
79
  }>>;
80
80
  readonly 'neighbor-popovers': Readonly<import("@markuplint/ml-core").RuleSeed<import("@markuplint/ml-core").RuleConfigValue, undefined>>;
@@ -90,7 +90,7 @@ declare const rules: {
90
90
  readonly 'no-hard-code-id': Readonly<import("@markuplint/ml-core").RuleSeed<import("@markuplint/ml-core").RuleConfigValue, undefined>>;
91
91
  readonly 'no-orphaned-end-tag': Readonly<import("@markuplint/ml-core").RuleSeed<boolean, null>>;
92
92
  readonly 'no-refer-to-non-existent-id': Readonly<import("@markuplint/ml-core").RuleSeed<import("@markuplint/ml-core").RuleConfigValue, {
93
- ariaVersion: import("packages/@markuplint/ml-spec/lib/index.js").ARIAVersion;
93
+ ariaVersion: import("@markuplint/ml-spec").ARIAVersion;
94
94
  fragmentRefersNameAttr: boolean;
95
95
  }>>;
96
96
  readonly 'no-use-event-handler-attr': Readonly<import("@markuplint/ml-core").RuleSeed<boolean, {
@@ -99,7 +99,7 @@ declare const rules: {
99
99
  readonly 'permitted-contents': Readonly<import("@markuplint/ml-core").RuleSeed<import("./permitted-contents/types.js").TagRule[], import("./permitted-contents/types.js").Options>>;
100
100
  readonly 'placeholder-label-option': Readonly<import("@markuplint/ml-core").RuleSeed<boolean, undefined>>;
101
101
  readonly 'require-accessible-name': Readonly<import("@markuplint/ml-core").RuleSeed<boolean, {
102
- ariaVersion: import("packages/@markuplint/ml-spec/lib/index.js").ARIAVersion;
102
+ ariaVersion: import("@markuplint/ml-spec").ARIAVersion;
103
103
  }>>;
104
104
  readonly 'require-datetime': Readonly<import("@markuplint/ml-core").RuleSeed<boolean, {
105
105
  langs?: import("./require-datetime/types.js").Lang[];
@@ -85,7 +85,7 @@ export declare function isTransparent(content: ReadonlyDeep<PermittedContentPatt
85
85
  * @returns An object with `model`, `min`, `max`, `repeat` sign, and optional `missingType`.
86
86
  */
87
87
  export declare function normalizeModel(pattern: ReadonlyDeep<PermittedContentRequire> | ReadonlyDeep<PermittedContentOptional> | ReadonlyDeep<PermittedContentOneOrMore> | ReadonlyDeep<PermittedContentZeroOrMore>): {
88
- model: ReadonlyDeep<Model | PermittedContentPattern[]>;
88
+ model: ReadonlyDeep<PermittedContentPattern[] | Model>;
89
89
  min: number;
90
90
  max: number;
91
91
  repeat: RepeatSign;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/rules",
3
- "version": "4.12.0",
3
+ "version": "4.18.1",
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>",
@@ -24,18 +24,18 @@
24
24
  "./lib/permitted-contents/debug.js": "./lib/permitted-contents/debug.browser.js"
25
25
  },
26
26
  "dependencies": {
27
- "@markuplint/html-spec": "4.17.0",
28
- "@markuplint/ml-core": "4.13.3",
29
- "@markuplint/ml-spec": "4.10.2",
30
- "@markuplint/selector": "4.7.8",
31
- "@markuplint/shared": "4.4.13",
32
- "@markuplint/types": "4.8.2",
33
- "@types/debug": "4.1.12",
27
+ "@markuplint/html-spec": "4.18.0",
28
+ "@markuplint/ml-core": "4.18.1",
29
+ "@markuplint/ml-spec": "4.18.0",
30
+ "@markuplint/selector": "4.18.1",
31
+ "@markuplint/shared": "4.18.0",
32
+ "@markuplint/types": "4.18.0",
33
+ "@types/debug": "4.1.13",
34
34
  "@ungap/structured-clone": "1.3.0",
35
35
  "ansi-colors": "4.1.3",
36
36
  "chrono-node": "2.9.0",
37
37
  "debug": "4.4.3",
38
- "type-fest": "4.41.0"
38
+ "type-fest": "5.6.0"
39
39
  },
40
- "gitHead": "193ee7c1262bbed95424e38efdf1a8e56ff049f4"
40
+ "gitHead": "68194864bf358ff4763ee8edc578f7a137e60365"
41
41
  }