Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@markuplint/config-presets

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/config-presets - npm Package Compare versions

Comparing version 3.0.0-dev.96 to 3.0.0-dev.176

6

package.json
{
"name": "@markuplint/config-presets",
"version": "3.0.0-dev.96+3b9f1720",
"version": "3.0.0-dev.176+f6ad62e9",
"description": "markuplint config presets",

@@ -16,7 +16,7 @@ "repository": "git@github.com:markuplint/markuplint.git",

"devDependencies": {
"glob": "^8.0.3",
"glob": "^10.2.2",
"jsonc-parser": "^3.2.0",
"mustache": "^4.2.0"
},
"gitHead": "3b9f17205d7754b29edf790bdbbf5e4931ba27a2"
"gitHead": "f6ad62e992e1569be4067f1e90d2d6017a658f57"
}

@@ -1,1 +0,1 @@

{"rules":{"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)"]}}]}
{"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,1 +0,1 @@

{"rules":{}}
{}

@@ -1,1 +0,1 @@

{"nodeRules":[{"selector":":where(meta[property])","rules":{"invalid-attr":{"options":{"attrs":{"property":{"type":"NoEmptyAny"},"content":{"type":"NoEmptyAny"}}}},"required-attr":false}}]}
{"nodeRules":[{"selector":":where(meta[property])","rules":{"invalid-attr":{"options":{"allowAttrs":[{"name":"property","value":{"type":"NoEmptyAny"}},{"name":"content","value":{"type":"NoEmptyAny"}}]}},"required-attr":false}}]}

@@ -1,1 +0,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\""}}}]}
{}

@@ -44,2 +44,3 @@ # @markuplint/config-presets

[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.|✅|✅|✅|✅|✅|✅|❌|❌|❌|❌|❌|
[`<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.|✅|✅|✅|✅|✅|✅|❌|❌|❌|❌|❌|
[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.|✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|

@@ -66,3 +67,2 @@ Use **character reference**| |✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|

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.|❌|❌|❌|✅|❌|❌|❌|❌|❌|❌|❌|
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.|✅|✅|✅|✅|✅|❌|❌|❌|❌|❌|✅|

@@ -69,0 +69,0 @@ ## Install

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc