Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Update: remove meta.docs.category in core rules (#848)
Browse files Browse the repository at this point in the history
* Chore: update rule cats

* chore: revert _data/rules.yaml as it was auto-gened.

Co-authored-by: Bryan Mishkin <698306+bmish@users.noreply.github.com>
  • Loading branch information
aladdin-add and bmish committed Oct 9, 2021
1 parent 5b5e2c6 commit 09a6ea1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/rules/index.liquid
Expand Up @@ -4,13 +4,13 @@ layout: doc
---

<h1>Rules</h1>
<p>Rules in ESLint are grouped by category to help you understand their purpose. Each rule has emojis denoting:</p>
<p>Rules in ESLint are grouped by type to help you understand their purpose. Each rule has emojis denoting:</p>
<p>(recommended) if the <code>"extends": "eslint:recommended"</code> property in a <a href="../user-guide/configuring#extending-configuration-files">configuration file</a> enables the rule</p>
<p>(fixable) if some problems reported by the rule are automatically fixable by the <code>--fix</code> <a href="../user-guide/command-line-interface#--fix">command line</a> option</p>
<p>(hasSuggestions) if some problems reported by the rule are manually fixable by editor <a href="../developer-guide/working-with-rules#providing-suggestions">suggestions</a></p>
{% for category in rules.categories %}
<h2>{{ category.name }}</h2>
{{ category.description }}
{% for type in rules.types %}
<h2>{{ type.displayName }}</h2>
{{ type.description }}
<table class="rule-list table table-striped">
<colgroup>
<col class="recommended" />
Expand All @@ -20,7 +20,7 @@ layout: doc
<col class="description" />
</colgroup>
<tbody>
{% for rule in category.rules %}
{% for rule in type.rules %}
<tr>
<td>{% if rule.recommended %}(recommended){% endif %}</td>
<td>{% if rule.fixable %}(fixable){% endif %}</td>
Expand Down

0 comments on commit 09a6ea1

Please sign in to comment.