@markuplint/config-presets 3.9.0 → 4.0.0-alpha.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2017-2019 Yusuke Hirao
3
+ Copyright (c) 2017-2024 Yusuke Hirao
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -41,7 +41,6 @@ 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.|✅|✅|✅|✅|✅|✅|❌|❌|❌|❌|❌|
45
44
  [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.|✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|
46
45
  Use **character reference**| |✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|
47
46
  No use deprecated attr|You should not use deprecated attributes from the viewpoint of compatibility.|✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/config-presets",
3
- "version": "3.9.0",
3
+ "version": "4.0.0-alpha.10",
4
4
  "description": "markuplint config presets",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -13,9 +13,9 @@
13
13
  "build": "node build.mjs"
14
14
  },
15
15
  "devDependencies": {
16
- "glob": "^10.3.10",
17
- "jsonc-parser": "^3.2.0",
16
+ "glob": "^10.3.6",
17
+ "jsonc-parser": "^3.2.1",
18
18
  "mustache": "^4.2.0"
19
19
  },
20
- "gitHead": "e2adbe92c74631af9c98cb816286287f9f983053"
20
+ "gitHead": "b41153ea665aa8f091daf6114a06047f4ccb8350"
21
21
  }
package/preset.a11y.json CHANGED
@@ -1 +1 @@
1
- {"rules":{"id-duplication":true,"invalid-attr":{"options":{"disallowAttrs":["disallowed"],"allowAttrs":[{"name":"tabindex","value":{"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":{"disallowAttrs":["colspan","rowspan"]}}}},{"selector":":where(summary)","rules":{"disallowed-element":[":model(interactive)"]}},{"selector":":where(:not(dialog, dialog *))","rules":{"invalid-attr":{"options":{"disallowAttrs":["autofocus"]}}}},{"selector":":where(search)","rules":{"required-attr":{"value":[{"name":"role"}]},"wai-aria":{"options":{"disallowSetImplicitRole":false}}}}]}
1
+ {"rules":{"id-duplication":true,"invalid-attr":{"options":{"disallowAttrs":["disallowed"],"allowAttrs":[{"name":"tabindex","value":{"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":{"disallowAttrs":["colspan","rowspan"]}}}},{"selector":":where(summary)","rules":{"disallowed-element":[":model(interactive)"]}},{"selector":":where(:not(dialog, dialog *))","rules":{"invalid-attr":{"options":{"disallowAttrs":["autofocus"]}}}}]}