@markuplint/config-presets 3.0.0-alpha.6 → 3.0.0-dev.38
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/README.md +7 -6
- package/package.json +2 -2
- package/preset.a11y.json +1 -1
- package/preset.rdfa.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# @markuplint/config-presets
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@markuplint/config-presets)
|
|
4
|
-
[](https://travis-ci.org/markuplint/markuplint)
|
|
5
|
-
[](https://coveralls.io/github/markuplint/markuplint?branch=main)
|
|
6
4
|
|
|
7
5
|
## Usage
|
|
8
6
|
|
|
@@ -22,7 +20,7 @@ You can choose some presets appropriately for your preference.
|
|
|
22
20
|
}
|
|
23
21
|
```
|
|
24
22
|
|
|
25
|
-
##
|
|
23
|
+
## Ruleset Mapping
|
|
26
24
|
|
|
27
25
|
Ruleset|Description|`recommended`|`recommended-vue`|`recommended-svelte`|`recommended-static-html`|`recommended-react`|`a11y`|`code-styles`|`html-standard`|`performance`|`rdfa`|`security`|
|
|
28
26
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -66,12 +64,15 @@ Require `noreferrer` with `target=_blank`|Require `rel=noreferrer` with an eleme
|
|
|
66
64
|
|
|
67
65
|
## Install
|
|
68
66
|
|
|
69
|
-
`markuplint` package includes this package.
|
|
67
|
+
[`markuplint`](https://www.npmjs.com/package/markuplint) package includes this package.
|
|
70
68
|
|
|
71
|
-
|
|
69
|
+
<details>
|
|
70
|
+
<summary>If you are installing purposely, how below:</summary>
|
|
72
71
|
|
|
73
|
-
```
|
|
72
|
+
```shell
|
|
74
73
|
$ npm install @markuplint/config-presets
|
|
75
74
|
|
|
76
75
|
$ yarn add @markuplint/config-presets
|
|
77
76
|
```
|
|
77
|
+
|
|
78
|
+
</details>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/config-presets",
|
|
3
|
-
"version": "3.0.0-
|
|
3
|
+
"version": "3.0.0-dev.38+b959e06f",
|
|
4
4
|
"description": "markuplint config presets",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"jsonc-parser": "^3.2.0",
|
|
18
18
|
"mustache": "^4.2.0"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "b959e06f4838b3e6798c990427e22422efe8e699"
|
|
21
21
|
}
|
package/preset.a11y.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"rules":{"disallowed-element":["hgroup"],"id-duplication":true,"invalid-attr":{"
|
|
1
|
+
{"rules":{"disallowed-element":["hgroup"],"id-duplication":true,"invalid-attr":{"options":{"attrs":{"autofocus":{"disallowed":true},"accesskey":{"disallowed":true},"tabindex":{"enum":["-1","0"]}}}},"label-has-control":true,"landmark-roles":true,"no-refer-to-non-existent-id":true,"require-accessible-name":true,"required-h1":true,"use-list":true,"wai-aria":true},"nodeRules":[{"selector":":where(html)","rules":{"required-attr":["lang"]}},{"selector":":where(abbr)","rules":{"required-attr":["title"]}},{"selector":":where(video, audio)","rules":{"required-element":["track"]}},{"selector":":where(video[autoplay])","rules":{"required-attr":["muted"]}},{"selector":":where(th, td)","rules":{"invalid-attr":{"options":{"attrs":{"colspan":{"disallowed":true},"rowspan":{"disallowed":true}}}}}},{"selector":":where(summary)","rules":{"disallowed-element":[":model(interactive)"]}}]}
|
package/preset.rdfa.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"nodeRules":[{"selector":":where(meta[property])","rules":{"invalid-attr":{"
|
|
1
|
+
{"nodeRules":[{"selector":":where(meta[property])","rules":{"invalid-attr":{"options":{"attrs":{"property":{"type":"NoEmptyAny"},"content":{"type":"NoEmptyAny"}}}},"required-attr":false}}]}
|