@markuplint/rules 4.10.9 → 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 +6 -0
- package/lib/__foo/index.d.ts +2 -0
- package/lib/__foo/index.js +31 -0
- package/lib/__foo/meta.d.ts +4 -0
- package/lib/__foo/meta.js +3 -0
- package/lib/permitted-contents/utils.d.ts +1 -1
- package/package.json +8 -8
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
|
+
## [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
|
+
|
|
6
12
|
## [4.10.9](https://github.com/markuplint/markuplint/compare/@markuplint/rules@4.10.8...@markuplint/rules@4.10.9) (2025-02-11)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @markuplint/rules
|
|
@@ -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
|
+
});
|
|
@@ -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[]
|
|
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.
|
|
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.
|
|
29
|
-
"@markuplint/ml-core": "4.12.
|
|
30
|
-
"@markuplint/ml-spec": "4.9.
|
|
31
|
-
"@markuplint/selector": "4.7.
|
|
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.
|
|
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.
|
|
39
|
+
"type-fest": "4.35.0"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "1b71e44a0a372662abca460ef77888053b66a78d"
|
|
42
42
|
}
|