/
rule-categories.macro.html
56 lines (52 loc) · 2.44 KB
/
rule-categories.macro.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{%- macro ruleCategories(params) -%}
<div class="{% if params.index %}rule-categories{% endif %}" aria-label="Rule Categories">
{%- if params.recommended == true -%}
<div class="rule-category">
<span class="rule-category__icon">✅ <span class="visually-hidden">Recommended</span></span>
<p class="rule-category__description">
The <code>"extends": "eslint:recommended"</code> property in a <a href="../user-guide/configuring/configuration-files#extending-configuration-files">configuration file</a> enables this rule
</p>
</div>
{%- endif -%}
{%- if params.fixable -%}
<div class="rule-category">
<span class="rule-category__icon">🔧 <span class="visually-hidden">Fixable</span></span>
<p class="rule-category__description">
Some problems reported by this rule are automatically fixable by the <code>--fix</code> <a href="../user-guide/command-line-interface#--fix">command line</a> option
</p>
</div>
{%- endif -%}
{%- if params.hasSuggestions == true -%}
<div class="rule-category">
<span class="rule-category__icon">💡 <span class="visually-hidden">hasSuggestions</span></span>
<p class="rule-category__description">
Some problems reported by this rule are manually fixable by editor <a href="../developer-guide/working-with-rules#providing-suggestions">suggestions</a>
</p>
</div>
{%- endif -%}
</div>
{%- endmacro -%}
{%- macro recommended() -%}
<div class="rule-category">
<span class="rule-category__icon">✅ <span class="visually-hidden">Recommended</span></span>
<p class="rule-category__description">
if the <code>"extends": "eslint:recommended"</code> property in a configuration file enables the rule.
</p>
</div>
{%- endmacro -%}
{%- macro fixable() -%}
<div class="rule-category">
<span class="rule-category__icon">🔧 <span class="visually-hidden">Fixable</span></span>
<p class="rule-category__description">
if some problems reported by the rule are automatically fixable by the <code>--fix</code> command line option
</p>
</div>
{%- endmacro -%}
{%- macro hasSuggestions() -%}
<div class="rule-category">
<span class="rule-category__icon">💡 <span class="visually-hidden">hasSuggestions</span></span>
<p class="rule-category__description">
if some problems reported by the rule are manually fixable by editor suggestions
</p>
</div>
{%- endmacro -%}