ESLint Docs Components

Components used across this site.

Replacement Rule list

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

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

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

Examples

global-require in @eslint-comunnity/eslint-plugin-n