You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: javascript/packages/linter/docs/rules/README.md
+19-17Lines changed: 19 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,24 @@ This page contains documentation for all Herb Linter rules.
4
4
5
5
## Available Rules
6
6
7
+
-[`a11y-anchor-require-href`](./a11y-anchor-require-href.md) - Requires an href attribute on anchor tags
8
+
-[`a11y-aria-attribute-must-be-valid`](./a11y-aria-attribute-must-be-valid.md) - Disallow invalid or unknown `aria-*` attributes.
9
+
-[`a11y-aria-label-is-well-formatted`](./a11y-aria-label-is-well-formatted.md) - `aria-label` must be well-formatted
10
+
-[`a11y-aria-level-must-be-valid`](./a11y-aria-level-must-be-valid.md) - `aria-level` must be between 1 and 6
11
+
-[`a11y-aria-role-heading-requires-level`](./a11y-aria-role-heading-requires-level.md) - Requires `aria-level` when supplying a `role`
12
+
-[`a11y-aria-role-must-be-valid`](./a11y-aria-role-must-be-valid.md) - The `role` attribute must have a valid WAI-ARIA Role.
13
+
-[`a11y-avoid-both-disabled-and-aria-disabled`](./a11y-avoid-both-disabled-and-aria-disabled.md) - Avoid using both `disabled` and `aria-disabled` attributes
14
+
-[`a11y-iframe-has-title`](./a11y-iframe-has-title.md) - `iframe` elements must have a `title` attribute
15
+
-[`a11y-img-require-alt`](./a11y-img-require-alt.md) - Requires `alt` attributes on `<img>` tags
16
+
-[`a11y-input-require-autocomplete`](./a11y-input-require-autocomplete.md) - Require `autocomplete` attributes on `<input>` tags.
17
+
-[`a11y-navigation-has-label`](./a11y-navigation-has-label.md) - Navigation landmarks must have accessible labels
18
+
-[`a11y-no-abstract-roles`](./a11y-no-abstract-roles.md) - No abstract ARIA roles
19
+
-[`a11y-no-aria-hidden-on-body`](./a11y-no-aria-hidden-on-body.md) - No `aria-hidden` on `<body>`
20
+
-[`a11y-no-aria-hidden-on-focusable`](./a11y-no-aria-hidden-on-focusable.md) - Focusable elements should not have `aria-hidden="true"`
21
+
-[`a11y-no-empty-headings`](./a11y-no-empty-headings.md) - Headings must not be empty
-[`herb-disable-comment-valid-rule-name`](./herb-disable-comment-valid-rule-name.md) - Validate rule names in `herb:disable` comments.
45
63
-[`html-allowed-script-type`](./html-allowed-script-type.md) - Restrict allowed `type` attributes for `<script>` tags
46
-
-[`html-anchor-require-href`](./html-anchor-require-href.md) - Requires an href attribute on anchor tags
47
-
-[`html-aria-attribute-must-be-valid`](./html-aria-attribute-must-be-valid.md) - Disallow invalid or unknown `aria-*` attributes.
48
-
-[`html-aria-label-is-well-formatted`](./html-aria-label-is-well-formatted.md) - `aria-label` must be well-formatted
49
-
-[`html-aria-level-must-be-valid`](./html-aria-level-must-be-valid.md) - `aria-level` must be between 1 and 6
50
-
-[`html-aria-role-heading-requires-level`](./html-aria-role-heading-requires-level.md) - Requires `aria-level` when supplying a `role`
51
-
-[`html-aria-role-must-be-valid`](./html-aria-role-must-be-valid.md) - The `role` attribute must have a valid WAI-ARIA Role.
52
64
-[`html-attribute-double-quotes`](./html-attribute-double-quotes.md) - Enforces double quotes for attribute values
53
65
-[`html-attribute-equals-spacing`](./html-attribute-equals-spacing.md) - No whitespace around `=` in HTML attributes
54
66
-[`html-attribute-values-require-quotes`](./html-attribute-values-require-quotes.md) - Requires quotes around attribute values
55
-
-[`html-avoid-both-disabled-and-aria-disabled`](./html-avoid-both-disabled-and-aria-disabled.md) - Avoid using both `disabled` and `aria-disabled` attributes
56
67
-[`html-body-only-elements`](./html-body-only-elements.md) - Require content elements inside `<body>`.
57
68
-[`html-boolean-attributes-no-value`](./html-boolean-attributes-no-value.md) - Prevents values on boolean attributes
58
69
-[`html-details-has-summary`](./html-details-has-summary.md) - Require `<summary>` in `<details>` elements
59
70
-[`html-head-only-elements`](./html-head-only-elements.md) - Require head-scoped elements inside `<head>`.
60
-
-[`html-iframe-has-title`](./html-iframe-has-title.md) - `iframe` elements must have a `title` attribute
61
-
-[`html-img-require-alt`](./html-img-require-alt.md) - Requires `alt` attributes on `<img>` tags
62
-
-[`html-input-require-autocomplete`](./html-input-require-autocomplete.md) - Require `autocomplete` attributes on `<input>` tags.
63
-
-[`html-navigation-has-label`](./html-navigation-has-label.md) - Navigation landmarks must have accessible labels
64
-
-[`html-no-abstract-roles`](./html-no-abstract-roles.md) - No abstract ARIA roles
65
-
-[`html-no-aria-hidden-on-body`](./html-no-aria-hidden-on-body.md) - No `aria-hidden` on `<body>`
66
-
-[`html-no-aria-hidden-on-focusable`](./html-no-aria-hidden-on-focusable.md) - Focusable elements should not have `aria-hidden="true"`
67
71
-[`html-no-block-inside-inline`](./html-no-block-inside-inline.md) - Prevents block-level elements inside inline elements
68
72
-[`html-no-duplicate-attributes`](./html-no-duplicate-attributes.md) - Prevents duplicate attributes on HTML elements
69
73
-[`html-no-duplicate-ids`](./html-no-duplicate-ids.md) - Prevents duplicate IDs within a document
70
74
-[`html-no-duplicate-meta-names`](./html-no-duplicate-meta-names.md) - Duplicate `<meta>` name attributes are not allowed.
71
75
-[`html-no-empty-attributes`](./html-no-empty-attributes.md) - Attributes must not have empty values
0 commit comments