Back to Eslint

Replacement Rule list

docs/src/library/rule-list.md

10.3.0734 B
Original Source

The rule list is a macro defined in components/rule-list.macro.html. The macro accepts a list of ReplacedByInfo and renders them as or-separated links.

Usage

{% raw %}

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

<!-- use the macro -->
{{ replacementRuleList({ specifiers: [{ rule: { name: 'global-require', url:
'...' }, plugin: { name: '@eslint-community/eslint-plugin-n', url: '...' } }] })
}}

{% endraw %}

Examples

{% from 'components/rule-list.macro.html' import replacementRuleList %}

{{ replacementRuleList({ specifiers: [{ rule: { name: 'global-require', url: '...' }, plugin: { name: '@eslint-community/eslint-plugin-n', url: '...' } }] }) }}