From 09a6ea12fbfaa64d787a69f61560145a70551806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=9A=E8=B0=94=E7=9A=84=E7=8C=AB?= Date: Sun, 10 Oct 2021 04:47:28 +0800 Subject: [PATCH] Update: remove meta.docs.category in core rules (#848) * 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> --- docs/rules/index.liquid | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/rules/index.liquid b/docs/rules/index.liquid index 3bbf0eb20a..9e4c1cf1cd 100644 --- a/docs/rules/index.liquid +++ b/docs/rules/index.liquid @@ -4,13 +4,13 @@ layout: doc ---

Rules

-

Rules in ESLint are grouped by category to help you understand their purpose. Each rule has emojis denoting:

+

Rules in ESLint are grouped by type to help you understand their purpose. Each rule has emojis denoting:

(recommended) if the "extends": "eslint:recommended" property in a configuration file enables the rule

(fixable) if some problems reported by the rule are automatically fixable by the --fix command line option

(hasSuggestions) if some problems reported by the rule are manually fixable by editor suggestions

-{% for category in rules.categories %} -

{{ category.name }}

- {{ category.description }} +{% for type in rules.types %} +

{{ type.displayName }}

+ {{ type.description }} @@ -20,7 +20,7 @@ layout: doc - {% for rule in category.rules %} + {% for rule in type.rules %}
{% if rule.recommended %}(recommended){% endif %} {% if rule.fixable %}(fixable){% endif %}