@markuplint/config-presets 4.3.0 → 4.4.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
@@ -50,6 +50,7 @@ No use deprecated element|You should not use deprecated elements from the viewpo
50
50
  Must not skip heading levels| |✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|
51
51
  No use ineffective attr| |✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|
52
52
  [No duplicate names in `<dl>`](https://html.spec.whatwg.org/multipage/grouping-content.html#the-dl-element:~:text=Within%20a%20single%20dl%20element%2C%20there%20should%20not%20be%20more%20than%20one%20dt%20element%20for%20each%20name)|Within a single dl element, there should not be more than one dt element for each name.|✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|
53
+ No use **orphaned end tag**| |✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|
53
54
  Allow only **permitted contents**| |✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|
54
55
  Need **placeholder label option**| |✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|
55
56
  Require the `datetime` attribute if the content of the `time` element is invalid| |✅|✅|✅|✅|✅|❌|❌|✅|❌|❌|❌|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/config-presets",
3
- "version": "4.3.0",
3
+ "version": "4.4.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.1",
18
18
  "mustache": "4.2.0"
19
19
  },
20
- "gitHead": "ad3db077e96bea0666c9105b250f895263907a87"
20
+ "gitHead": "d5c8786b0dbbd82cdd89018dd57941d62bbe8d06"
21
21
  }
@@ -1 +1 @@
1
- {"rules":{"attr-duplication":true,"deprecated-attr":true,"deprecated-element":true,"doctype":true,"heading-levels":true,"id-duplication":true,"ineffective-attr":true,"no-duplicate-dt":true,"no-refer-to-non-existent-id":true,"permitted-contents":true,"placeholder-label-option":true,"require-datetime":true,"required-attr":true},"nodeRules":[{"selector":":where(head)","rules":{"required-element":["meta[charset=\"UTF-8\" i]"]}},{"selector":"h1, h2, h3, h4, h5, h6","rules":{"disallowed-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"}}},{"selector":":where(figcaption ~ table, table:has(~ figcaption))","rules":{"disallowed-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}},{"selector":":where(input[pattern])","rules":{"required-attr":{"value":[{"name":"title"}]}}},{"regexSelector":{"nodeName":"details","attrName":"name","attrValue":"^(?<value>.+)$","combination":{"combinator":" ","nodeName":"details"}},"rules":{"invalid-attr":{"options":{"disallowAttrs":{"name":{"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."}}}]}
1
+ {"rules":{"attr-duplication":true,"deprecated-attr":true,"deprecated-element":true,"doctype":true,"heading-levels":true,"id-duplication":true,"ineffective-attr":true,"no-duplicate-dt":true,"no-refer-to-non-existent-id":true,"no-orphaned-end-tag":true,"permitted-contents":true,"placeholder-label-option":true,"require-datetime":true,"required-attr":true},"nodeRules":[{"selector":":where(head)","rules":{"required-element":["meta[charset=\"UTF-8\" i]"]}},{"selector":"h1, h2, h3, h4, h5, h6","rules":{"disallowed-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"}}},{"selector":":where(figcaption ~ table, table:has(~ figcaption))","rules":{"disallowed-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}},{"selector":":where(input[pattern])","rules":{"required-attr":{"value":[{"name":"title"}]}}},{"regexSelector":{"nodeName":"details","attrName":"name","attrValue":"^(?<value>.+)$","combination":{"combinator":" ","nodeName":"details"}},"rules":{"invalid-attr":{"options":{"disallowAttrs":{"name":{"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."}}}]}