@markuplint/config-presets 3.3.0 → 3.5.0

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 CHANGED
@@ -41,6 +41,7 @@ Require `<video muted>`| |✅|✅|✅|✅|✅|✅|❌|❌|❌|❌|❌|
41
41
  No merge cells| |✅|✅|✅|✅|✅|✅|❌|❌|❌|❌|❌|
42
42
  [`<summary>` no contains interactive contents](https://github.com/whatwg/html/issues/2272#issuecomment-1242415594)|There is a case where an assistive technology can't access contents, or contents don't propagate a mouse event to `<summary>`.|✅|✅|✅|✅|✅|✅|❌|❌|❌|❌|❌|
43
43
  [Disallow `autofocus` attr to except in the dialog scope](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus#accessibility_considerations)|Don't take away a focus to forced. However, the `dialog` element and its descendants allow it.|✅|✅|✅|✅|✅|✅|❌|❌|❌|❌|❌|
44
+ [`<search>` requires `search` role](https://github.com/markuplint/markuplint/issues/762#issuecomment-1483113405)|It requires the role of an interim measure because some browsers or ATs are not supporting it yet.|✅|✅|✅|✅|✅|✅|❌|❌|❌|❌|❌|
44
45
  [No duplicate attr](https://html.spec.whatwg.org/multipage/parsing.html#parse-error-duplicate-attribute)|The parser ignores all such duplicate occurrences of the attribute.|✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|
45
46
  Use **character reference**| |✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|
46
47
  No use deprecated attr|You should not use deprecated attributes from the viewpoint of compatibility.|✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|
@@ -62,7 +63,6 @@ Require loading `<iframe>` lazily|Require `loading=lazy` with `<iframe>` to avoi
62
63
  Allow `property` attr with `<meta>`|Be able to use **Open-Graph** etc.|✅|✅|✅|✅|✅|❌|❌|❌|❌|✅|❌|
63
64
  No hard coding **ID**|The component that hard-coded ID cannot mount to an app duplicated because the IDs must be unique in a document. Recommend to specify dynamic IDs to avoid doing that.|❌|✅|✅|❌|✅|❌|❌|❌|❌|❌|❌|
64
65
  No omit **end-tag**|Recommend to write an end-tag always because it is too difficult for a human decide an element is end-tag omittable.|❌|❌|❌|✅|❌|❌|❌|❌|❌|❌|❌|
65
- Require `noreferrer` with `target=_blank`|Require `rel=noreferrer` with an element that has `target=_blank` to prevent leaking referrer information and to block operating referrer documents.|✅|✅|✅|✅|✅|❌|❌|❌|❌|❌|✅|
66
66
 
67
67
  ## Install
68
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/config-presets",
3
- "version": "3.3.0",
3
+ "version": "3.5.0",
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": "791fb22a4df7acb985ced3808923fba0cd95c28a"
20
+ "gitHead": "715dd53d3b1064a9bcf616c1533921cad9e3b187"
21
21
  }
package/preset.a11y.json CHANGED
@@ -1 +1 @@
1
- {"rules":{"id-duplication":true,"invalid-attr":{"options":{"attrs":{"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)"]}},{"selector":":where(:not(dialog, dialog *))","rules":{"invalid-attr":{"options":{"attrs":{"autofocus":{"disallowed":true}}}}}}]}
1
+ {"rules":{"id-duplication":true,"invalid-attr":{"options":{"attrs":{"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)"]}},{"selector":":where(:not(dialog, dialog *))","rules":{"invalid-attr":{"options":{"attrs":{"autofocus":{"disallowed":true}}}}}},{"selector":":where(search)","rules":{"required-attr":{"value":[{"name":"role"}]},"wai-aria":{"options":{"disallowSetImplicitRole":false}}}}]}
@@ -1 +1 @@
1
- {"rules":{}}
1
+ {}
@@ -1 +1 @@
1
- {"nodeRules":[{"selector":":where(a[target=_blank], area[target=_blank])","rules":{"required-attr":{"value":[{"name":"rel","value":"/(?<![^\\s]+)noreferrer(?![^\\s]+)/"}],"reason":"The \"rel\" attribute should be required with \"noreferrer\" if the \"a\" element has the \"target=_blank\""}}}]}
1
+ {}