Skip to content

Linter Rules ​

This page contains documentation for all Herb Linter rules.

Available Rules ​

Accessibility ​

Action View ​

ERB ​

Herb ​

HTML ​

Parser ​

Source ​

SVG ​

Turbo ​

UJS ​

Contributing ​

To add a new linter rule:

  1. Create the rule class implementing the Rule interface
  2. Add comprehensive tests in test/rules/
  3. Add documentation in docs/rules/
  4. Update the main linter to include the rule by default (if appropriate)

See html-tag-name-lowercase.ts for an example implementation.

Released under the MIT License.