@markuplint/config-presets 5.1.1 → 5.3.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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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
+ # [5.3.0](https://github.com/markuplint/markuplint/compare/v5.2.0...v5.3.0) (2026-10-21)
7
+
8
+ ### Bug Fixes
9
+
10
+ * supersede no-input-file-value with no-disallowed-attr ([2450fa1](https://github.com/markuplint/markuplint/commit/2450fa11c6cd0c32271ccfaed237fbd3b4b31953))
11
+
12
+
13
+ # [5.2.0](https://github.com/markuplint/markuplint/compare/v5.1.1...v5.2.0) (2026-10-13)
14
+
15
+ **Note:** Version bump only for package @markuplint/config-presets
16
+
6
17
  ## [5.1.1](https://github.com/markuplint/markuplint/compare/v5.1.0...v5.1.1) (2026-10-09)
7
18
 
8
19
  **Note:** Version bump only for package @markuplint/config-presets
package/README.md CHANGED
@@ -87,7 +87,6 @@ Specify required attr| |✅|✅|✅|✅|✅|❌|❌|❌|✅|❌|❌|❌|
87
87
  [Require a distinguishing `media` or `type` on a `<source>` with a following srcset-bearing sibling](https://html.spec.whatwg.org/multipage/embedded-content.html#the-source-element)| |✅|✅|✅|✅|✅|❌|❌|❌|✅|❌|❌|❌|
88
88
  [Validate link type keywords](https://html.spec.whatwg.org/multipage/links.html#linkTypes)|Validates that `rel` attribute keywords are allowed on the given element and context (e.g., body-ok for `<link>` inside `<body>`).|✅|✅|✅|✅|✅|❌|❌|❌|✅|❌|❌|❌|
89
89
  [Form-associated `form` attribute must reference a form element](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fae-form)| |✅|✅|✅|✅|✅|❌|❌|❌|✅|❌|❌|❌|
90
- [`<input type="file">` value must be empty when specified](https://html.spec.whatwg.org/multipage/input.html#file-upload-state-(type=file))| |✅|✅|✅|✅|✅|❌|❌|❌|✅|❌|❌|❌|
91
90
  [`<input list>` must reference a `<datalist>` element by ID](https://html.spec.whatwg.org/multipage/input.html#the-list-attribute)| |✅|✅|✅|✅|✅|❌|❌|❌|✅|❌|❌|❌|
92
91
  [`<label for>` must reference a labelable element by ID](https://html.spec.whatwg.org/multipage/forms.html#attr-label-for)| |✅|✅|✅|✅|✅|❌|❌|❌|✅|❌|❌|❌|
93
92
  [`<label>` descendant-control constraints (at most one form-control descendant; none when `for` targets an external labelable element)](https://html.spec.whatwg.org/multipage/forms.html#the-label-element)| |✅|✅|✅|✅|✅|❌|❌|❌|✅|❌|❌|❌|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/config-presets",
3
- "version": "5.1.1",
3
+ "version": "5.3.0",
4
4
  "description": "markuplint config presets",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,10 +20,10 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@isaacs/brace-expansion": "5.0.1",
23
- "@markuplint/rules": "5.1.1",
23
+ "@markuplint/rules": "5.3.0",
24
24
  "glob": "13.0.6",
25
25
  "jsonc-parser": "3.3.1",
26
26
  "mustache": "4.2.0"
27
27
  },
28
- "gitHead": "a940c8526e971d590d97395ce924910221208820"
28
+ "gitHead": "f587cf0206c8426e57369a48d6d5fb22306eafde"
29
29
  }
@@ -1 +1 @@
1
- {"rules":{"html-standard/attr-duplication":{"specConformance":"normative","rules":{"no-duplicate-attr":true}},"html-standard/deprecated-attr":{"specConformance":"normative","rules":{"no-obsolete-attr":true}},"html-standard/no-deprecated-attr":{"specConformance":"non-normative","rules":{"no-deprecated-attr":true}},"html-standard/deprecated-element":{"specConformance":"normative","rules":{"no-obsolete-element":true}},"html-standard/no-deprecated-element":{"specConformance":"non-normative","rules":{"no-deprecated-element":true}},"html-standard/doctype":{"specConformance":"normative","rules":{"require-doctype":true}},"html-standard/no-obsolete-doctype":{"specConformance":"normative","rules":{"no-obsolete-doctype":true}},"html-standard/heading-levels":{"specConformance":"non-normative","rules":{"no-skipped-heading-level":true}},"html-standard/id-duplication":{"specConformance":"normative","rules":{"no-duplicate-id":true}},"html-standard/no-duplicate-autofocus":{"specConformance":"normative","rules":{"no-duplicate-autofocus":true}},"html-standard/no-duplicate-visible-main":{"specConformance":"normative","rules":{"no-duplicate-visible-main":true}},"no-unknown-attr":true,"no-disallowed-attr":true,"no-invalid-attr-value":true,"html-standard/no-refer-to-non-existent-id":{"specConformance":"normative","rules":{"no-refer-to-non-existent-id":true}},"html-standard/no-orphaned-end-tag":{"specConformance":"normative","rules":{"no-orphaned-end-tag":true}},"html-standard/no-stray-head-or-body-tag":{"specConformance":"normative","rules":{"no-stray-head-or-body-tag":true}},"html-standard/no-content-after-body":{"specConformance":"normative","rules":{"no-content-after-body":true}},"html-standard/no-unclosed-element-at-eof":{"specConformance":"normative","rules":{"no-unclosed-element-at-eof":true}},"html-standard/meta-charset-position":{"specConformance":"normative","rules":{"meta-charset-position":true}},"html-standard/permitted-contents":{"specConformance":"normative","rules":{"permitted-contents":true}},"html-standard/no-disallowed-ancestor":{"specConformance":"normative","rules":{"no-disallowed-ancestor":true}},"html-standard/require-ancestor":{"specConformance":"normative","rules":{"require-ancestor":true}},"html-standard/no-duplicate-sibling-attr":{"specConformance":"normative","rules":{"no-duplicate-sibling-attr":true}},"html-standard/placeholder-label-option":{"specConformance":"normative","rules":{"placeholder-label-option":true}},"html-standard/require-datetime":{"specConformance":"normative","rules":{"require-datetime":true}},"html-standard/required-attr":{"specConformance":"normative","rules":{"require-attr":true}},"html-standard/script-content":{"specConformance":"normative","rules":{"valid-importmap":true}},"html-standard/valid-speculation-rules":{"specConformance":"normative","rules":{"valid-speculation-rules":true}},"html-standard/srcset-sizes-constraint":{"specConformance":"normative","rules":{"no-unpaired-srcset-sizes":true}},"html-standard/no-mixed-srcset-descriptors":{"specConformance":"normative","rules":{"no-mixed-srcset-descriptors":true}},"html-standard/sizes-auto-requires-lazy-loading":{"specConformance":"normative","rules":{"sizes-auto-requires-lazy-loading":true}},"html-standard/no-always-matching-source":{"specConformance":"normative","rules":{"no-always-matching-source":true}},"html-standard/link-types":{"specConformance":"normative","rules":{"link-types":true}},"html-standard/form-attr-references-form":{"specConformance":"normative","rules":{"form-attr-references-form":true}},"html-standard/input-file-empty-value":{"specConformance":"normative","rules":{"no-input-file-value":true}},"html-standard/input-list-references-datalist":{"specConformance":"normative","rules":{"input-list-references-datalist":true}},"html-standard/label-for-references-labelable":{"specConformance":"normative","rules":{"label-for-references-labelable":true}},"html-standard/label-no-multiple-controls":{"specConformance":"normative","rules":{"label-no-multiple-controls":true}},"html-standard/map-id-name-match":{"specConformance":"normative","rules":{"map-id-name-match":true}},"html-standard/usemap-references-map":{"specConformance":"normative","rules":{"usemap-references-map":true}},"html-standard/meter-value-bounds":{"specConformance":"normative","rules":{"meter-value-bounds":true}},"html-standard/progress-value-bounds":{"specConformance":"normative","rules":{"progress-value-bounds":true}},"html-standard/no-extra-selected-options":{"specConformance":"normative","rules":{"no-extra-selected-options":true}},"html-standard/itemprop-requires-itemscope":{"specConformance":"normative","rules":{"itemprop-requires-itemscope":true}}},"nodeRules":[{"name":"html-standard/head-charset-utf8","specConformance":"normative","selector":":where(head)","rules":{"require-element":["meta[charset=\"UTF-8\" i]"]}},{"name":"html-standard/no-duplicate-charset","specConformance":"normative","selector":":where(head)","rules":{"no-restricted-element":{"value":["meta[charset] ~ meta[charset]"],"reason":"There must not be more than one meta element with a charset attribute per document. https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-charset","reasonOnly":true}}},{"name":"html-standard/no-duplicate-description","specConformance":"normative","selector":":where(head)","rules":{"no-restricted-element":{"value":["meta[name=\"description\" i] ~ meta[name=\"description\" i]"],"reason":"There must not be more than one meta element where the name attribute value is an ASCII case-insensitive match for \"description\" per document. https://html.spec.whatwg.org/multipage/semantics.html#standard-metadata-names","reasonOnly":true}}},{"name":"html-standard/no-charset-http-equiv-coexist","specConformance":"normative","selector":":where(head)","rules":{"no-restricted-element":{"value":["meta[charset] ~ meta[http-equiv=\"content-type\" i]","meta[http-equiv=\"content-type\" i] ~ meta[charset]"],"reason":"A document must not contain both a meta element with an http-equiv attribute in the Encoding declaration state and a meta element with the charset attribute. https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-charset","reasonOnly":true}}},{"name":"html-standard/no-base-after-link-or-script","specConformance":"normative","selector":":where(head)","rules":{"no-restricted-element":{"value":[":is(link, script) ~ base"],"reason":"A base element must come before any other elements in the tree that have attributes defined as taking URLs, except the html element. https://html.spec.whatwg.org/multipage/semantics.html#the-base-element","reasonOnly":true}}},{"name":"html-standard/no-small-in-heading","specConformance":"normative","selector":"h1, h2, h3, h4, h5, h6","rules":{"no-restricted-element":{"value":["small"],"reason":"The small element must not be used for subheadings. https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-small-element"}}},{"name":"html-standard/figure-no-caption","specConformance":"non-normative","selector":":where(figcaption ~ table, table:has(~ figcaption))","rules":{"no-restricted-element":{"value":["caption"],"reason":"When a table element is the only content in a figure element other than the figcaption, the caption element should be omitted in favor of the figcaption. (https://html.spec.whatwg.org/multipage/tables.html#the-caption-element)"},"require-accessible-name":false}},{"name":"html-standard/input-pattern-title","specConformance":"non-normative","selector":":where(input[pattern])","rules":{"require-attr":{"value":[{"name":"title"}]}}},{"name":"html-standard/no-nested-details-name","specConformance":"normative","regexSelector":{"nodeName":"details","attrName":"name","attrValue":"^(?<value>.+)$","combination":{"combinator":" ","nodeName":"details"}},"rules":{"no-restricted-attr":{"options":{"disallowAttrs":[{"name":"name","value":{"pattern":"{{ value }}"}}]},"reason":"A document must not contain a details element that is a descendant of another details element in the same details name group."}}},{"name":"html-standard/no-shortcut-icon","specConformance":"non-normative","selector":"link","rules":{"no-restricted-attr":{"options":{"disallowAttrs":[{"name":"rel","value":{"pattern":"/\\bshortcut\\b/i"}}]},"reason":"The \"shortcut\" keyword is unnecessary. Use rel=\"icon\" instead. https://html.spec.whatwg.org/multipage/links.html#rel-shortcut-icon"}}}]}
1
+ {"rules":{"html-standard/attr-duplication":{"specConformance":"normative","rules":{"no-duplicate-attr":true}},"html-standard/deprecated-attr":{"specConformance":"normative","rules":{"no-obsolete-attr":true}},"html-standard/no-deprecated-attr":{"specConformance":"non-normative","rules":{"no-deprecated-attr":true}},"html-standard/deprecated-element":{"specConformance":"normative","rules":{"no-obsolete-element":true}},"html-standard/no-deprecated-element":{"specConformance":"non-normative","rules":{"no-deprecated-element":true}},"html-standard/doctype":{"specConformance":"normative","rules":{"require-doctype":true}},"html-standard/no-obsolete-doctype":{"specConformance":"normative","rules":{"no-obsolete-doctype":true}},"html-standard/heading-levels":{"specConformance":"non-normative","rules":{"no-skipped-heading-level":true}},"html-standard/id-duplication":{"specConformance":"normative","rules":{"no-duplicate-id":true}},"html-standard/no-duplicate-autofocus":{"specConformance":"normative","rules":{"no-duplicate-autofocus":true}},"html-standard/no-duplicate-visible-main":{"specConformance":"normative","rules":{"no-duplicate-visible-main":true}},"no-unknown-attr":true,"no-disallowed-attr":true,"no-invalid-attr-value":true,"html-standard/no-refer-to-non-existent-id":{"specConformance":"normative","rules":{"no-refer-to-non-existent-id":true}},"html-standard/no-orphaned-end-tag":{"specConformance":"normative","rules":{"no-orphaned-end-tag":true}},"html-standard/no-stray-head-or-body-tag":{"specConformance":"normative","rules":{"no-stray-head-or-body-tag":true}},"html-standard/no-content-after-body":{"specConformance":"normative","rules":{"no-content-after-body":true}},"html-standard/no-unclosed-element-at-eof":{"specConformance":"normative","rules":{"no-unclosed-element-at-eof":true}},"html-standard/meta-charset-position":{"specConformance":"normative","rules":{"meta-charset-position":true}},"html-standard/permitted-contents":{"specConformance":"normative","rules":{"permitted-contents":true}},"html-standard/no-disallowed-ancestor":{"specConformance":"normative","rules":{"no-disallowed-ancestor":true}},"html-standard/require-ancestor":{"specConformance":"normative","rules":{"require-ancestor":true}},"html-standard/no-duplicate-sibling-attr":{"specConformance":"normative","rules":{"no-duplicate-sibling-attr":true}},"html-standard/placeholder-label-option":{"specConformance":"normative","rules":{"placeholder-label-option":true}},"html-standard/require-datetime":{"specConformance":"normative","rules":{"require-datetime":true}},"html-standard/required-attr":{"specConformance":"normative","rules":{"require-attr":true}},"html-standard/script-content":{"specConformance":"normative","rules":{"valid-importmap":true}},"html-standard/valid-speculation-rules":{"specConformance":"normative","rules":{"valid-speculation-rules":true}},"html-standard/srcset-sizes-constraint":{"specConformance":"normative","rules":{"no-unpaired-srcset-sizes":true}},"html-standard/no-mixed-srcset-descriptors":{"specConformance":"normative","rules":{"no-mixed-srcset-descriptors":true}},"html-standard/sizes-auto-requires-lazy-loading":{"specConformance":"normative","rules":{"sizes-auto-requires-lazy-loading":true}},"html-standard/no-always-matching-source":{"specConformance":"normative","rules":{"no-always-matching-source":true}},"html-standard/link-types":{"specConformance":"normative","rules":{"link-types":true}},"html-standard/form-attr-references-form":{"specConformance":"normative","rules":{"form-attr-references-form":true}},"html-standard/input-list-references-datalist":{"specConformance":"normative","rules":{"input-list-references-datalist":true}},"html-standard/label-for-references-labelable":{"specConformance":"normative","rules":{"label-for-references-labelable":true}},"html-standard/label-no-multiple-controls":{"specConformance":"normative","rules":{"label-no-multiple-controls":true}},"html-standard/map-id-name-match":{"specConformance":"normative","rules":{"map-id-name-match":true}},"html-standard/usemap-references-map":{"specConformance":"normative","rules":{"usemap-references-map":true}},"html-standard/meter-value-bounds":{"specConformance":"normative","rules":{"meter-value-bounds":true}},"html-standard/progress-value-bounds":{"specConformance":"normative","rules":{"progress-value-bounds":true}},"html-standard/no-extra-selected-options":{"specConformance":"normative","rules":{"no-extra-selected-options":true}},"html-standard/itemprop-requires-itemscope":{"specConformance":"normative","rules":{"itemprop-requires-itemscope":true}}},"nodeRules":[{"name":"html-standard/head-charset-utf8","specConformance":"normative","selector":":where(head)","rules":{"require-element":["meta[charset=\"UTF-8\" i]"]}},{"name":"html-standard/no-duplicate-charset","specConformance":"normative","selector":":where(head)","rules":{"no-restricted-element":{"value":["meta[charset] ~ meta[charset]"],"reason":"There must not be more than one meta element with a charset attribute per document. https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-charset","reasonOnly":true}}},{"name":"html-standard/no-duplicate-description","specConformance":"normative","selector":":where(head)","rules":{"no-restricted-element":{"value":["meta[name=\"description\" i] ~ meta[name=\"description\" i]"],"reason":"There must not be more than one meta element where the name attribute value is an ASCII case-insensitive match for \"description\" per document. https://html.spec.whatwg.org/multipage/semantics.html#standard-metadata-names","reasonOnly":true}}},{"name":"html-standard/no-charset-http-equiv-coexist","specConformance":"normative","selector":":where(head)","rules":{"no-restricted-element":{"value":["meta[charset] ~ meta[http-equiv=\"content-type\" i]","meta[http-equiv=\"content-type\" i] ~ meta[charset]"],"reason":"A document must not contain both a meta element with an http-equiv attribute in the Encoding declaration state and a meta element with the charset attribute. https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-charset","reasonOnly":true}}},{"name":"html-standard/no-base-after-link-or-script","specConformance":"normative","selector":":where(head)","rules":{"no-restricted-element":{"value":[":is(link, script) ~ base"],"reason":"A base element must come before any other elements in the tree that have attributes defined as taking URLs, except the html element. https://html.spec.whatwg.org/multipage/semantics.html#the-base-element","reasonOnly":true}}},{"name":"html-standard/no-small-in-heading","specConformance":"normative","selector":"h1, h2, h3, h4, h5, h6","rules":{"no-restricted-element":{"value":["small"],"reason":"The small element must not be used for subheadings. https://html.spec.whatwg.org/multipage/text-level-semantics.html#the-small-element"}}},{"name":"html-standard/figure-no-caption","specConformance":"non-normative","selector":":where(figcaption ~ table, table:has(~ figcaption))","rules":{"no-restricted-element":{"value":["caption"],"reason":"When a table element is the only content in a figure element other than the figcaption, the caption element should be omitted in favor of the figcaption. (https://html.spec.whatwg.org/multipage/tables.html#the-caption-element)"},"require-accessible-name":false}},{"name":"html-standard/input-pattern-title","specConformance":"non-normative","selector":":where(input[pattern])","rules":{"require-attr":{"value":[{"name":"title"}]}}},{"name":"html-standard/no-nested-details-name","specConformance":"normative","regexSelector":{"nodeName":"details","attrName":"name","attrValue":"^(?<value>.+)$","combination":{"combinator":" ","nodeName":"details"}},"rules":{"no-restricted-attr":{"options":{"disallowAttrs":[{"name":"name","value":{"pattern":"{{ value }}"}}]},"reason":"A document must not contain a details element that is a descendant of another details element in the same details name group."}}},{"name":"html-standard/no-shortcut-icon","specConformance":"non-normative","selector":"link","rules":{"no-restricted-attr":{"options":{"disallowAttrs":[{"name":"rel","value":{"pattern":"/\\bshortcut\\b/i"}}]},"reason":"The \"shortcut\" keyword is unnecessary. Use rel=\"icon\" instead. https://html.spec.whatwg.org/multipage/links.html#rel-shortcut-icon"}}}]}