html-eslint rules in Sudsy
Every rule and setting of html-eslint in the parity catalog, with the Sudsy equivalent. The lint share is the part of html-eslint’s default set (in scope) whose findings Sudsy also reports on real-world code, with the preset that mirrors it. Where the tool has a page for an entry, the id links to it.
Status: covered; partial (the note says what differs); not yet (planned); deferred; not planned; SDK (a .NET SDK diagnostic does it).
| Id | Sudsy | Status | Note |
|---|---|---|---|
attrs-newline |
formatter | partial | max_attributes_per_line (the preset sets 2) |
class-spacing |
- | not yet | |
css-no-empty-blocks |
- | not yet | |
element-newline |
formatter | partial | the formatter owns layout; an element after another on a line (inline elements and text, with the default whitespace_sensitivity) stays |
head-order |
- | not yet | |
id-naming-convention |
id-pattern |
partial | the convention is the pattern option (a regex), not named styles |
indent |
formatter | partial | the formatter owns layout; the > that starts the text of an inline element (>Home</a) is Prettier’s whitespace-sensitive layout and stays |
lowercase |
element-case |
partial | the case of attribute names is attr-case |
max-element-depth |
- | not yet | |
no-abstract-roles |
no-abstract-role |
covered | |
no-accesskey-attrs |
- | not yet | |
no-aria-hidden-body |
aria-hidden-body |
covered | |
no-aria-hidden-on-focusable |
- | not yet | |
no-duplicate-attrs |
no-duplicate-keys |
covered | |
no-duplicate-class |
no-duplicate-class |
covered | |
no-duplicate-id |
no-duplicate-id |
covered | |
no-duplicate-in-head |
- | not yet | |
no-empty-headings |
empty-heading |
covered | |
no-extra-spacing-attrs |
- | not yet | |
no-extra-spacing-tags |
formatter | partial | self_closing_space (the preset sets off) |
no-extra-spacing-text |
- | not yet | |
no-heading-inside-button |
- | not yet | |
no-ineffective-attrs |
- | not yet | |
no-inline-styles |
no-inline-style |
partial | a style that sets only display is allowed |
no-invalid-attr-value |
attribute-allowed-values |
partial | the values html-validate lists for an attribute; id and other pattern values are not checked |
no-invalid-entity |
unrecognized-char-ref |
partial | named references in text only |
no-invalid-role |
- | not yet | |
no-multiple-empty-lines |
- | not yet | |
no-multiple-h1 |
heading-level |
partial | also reports the other heading rules of heading-level |
no-nested-interactive |
- | not yet | |
no-non-scalable-viewport |
- | not yet | |
no-obsolete-attrs |
no-deprecated-attr |
covered | |
no-obsolete-tags |
deprecated |
covered | |
no-positive-tabindex |
- | not yet | |
no-redundant-role |
no-redundant-role |
covered | |
no-restricted-attr-values |
- | not yet | |
no-restricted-attrs |
- | not yet | |
no-restricted-tags |
- | not yet | |
no-script-style-type |
- | not yet | |
no-skip-heading-levels |
heading-level |
partial | also reports a first heading that is not an h1 and a second h1 |
no-target-blank |
no-target-blank |
partial | requires noopener as well as noreferrer (eslint-plugin-vue and -svelte do), html-eslint only noreferrer |
no-trailing-spaces |
no-trailing-whitespace |
covered | |
no-whitespace-only-children |
- | not yet | |
prefer-https |
- | not yet | |
quotes |
attr-quotes |
partial | a single-quoted value that holds a double quote is allowed; unquoted values are reported |
require-attrs |
- | not yet | |
require-button-type |
no-implicit-button-type |
covered | |
require-closing-tags |
formatter | partial | the formatter writes the end tags that were implied and void elements as void_element_style says (the preset writes <br>) |
require-content |
- | not yet | |
require-details-summary |
- | not yet | |
require-doctype |
missing-doctype |
covered | |
require-explicit-size |
- | not yet | |
require-form-method |
- | not yet | |
require-frame-title |
element-required-attributes |
partial | reports <embed> as well as frames |
require-img-alt |
img-alt |
covered | |
require-input-label |
input-missing-label |
covered | |
require-lang |
element-required-attributes |
partial | also requires the attributes of other elements that html-validate requires (src of <img>) |
require-li-container |
require-li-container |
covered | |
require-meta-charset |
- | not yet | |
require-meta-description |
- | not yet | |
require-meta-viewport |
- | not yet | |
require-open-graph-protocol |
- | not yet | |
require-title |
element-required-content |
partial | also requires the other children it lists (<summary> in <details>) |
sort-attrs |
- | not yet | |
svg-require-viewbox |
- | not yet | |
use-baseline |
use-baseline |
partial | not the sms: links (a value prefix) |