ESLint Docs Components

Components used across this site.

Rule list

The rule list is a macro defined in components/rule-list.macro.html. The macro accepts a list of rule names and renders comma-separated links.

Usage

<!-- import the macro -->
{% from 'components/rule-list.macro.html' import ruleList %}

<!-- use the macro -->
{{ ruleList({ rules: ['accessor-pairs', 'no-undef'] }) }}

Examples

accessor-pairsno-undef