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

Commit

Permalink
chore: use displayname
Browse files Browse the repository at this point in the history
  • Loading branch information
aladdin-add committed Jun 29, 2021
1 parent 08744ed commit ca45380
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions _data/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ removed:
ruleTypes:
- &ref_0
description: Warns about a potential error.
displayName: Possible Problems
name: problem
rules:
- description: enforce `return` statements in callbacks of array methods
Expand Down Expand Up @@ -362,6 +363,7 @@ ruleTypes:
recommended: true
- &ref_1
description: Suggests an alternate way of doing something.
displayName: Suggestions
name: suggestion
rules:
- description: enforce getter and setter pairs in objects and classes
Expand Down Expand Up @@ -972,6 +974,7 @@ ruleTypes:
recommended: false
- &ref_2
description: Enforces code style.
displayName: Layout & Formatting
name: layout
rules:
- description: enforce linebreaks after opening and before closing array brackets
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/index.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ layout: doc
<p>No rules are enabled by default. The <code>"extends": "eslint:recommended"</code> property in a <a href="../user-guide/configuring#extending-configuration-files">configuration file</a> enables rules that report common problems, which have a check mark (recommended) below.</p>
<p>The <code>--fix</code> option on the <a href="../user-guide/command-line-interface#fix">command line</a> automatically fixes problems (currently mostly whitespace) reported by rules which have a wrench (fixable) below.</p>
{% for type in rules.types %}
<h2>{{ type.name }}</h2>
<h2>{{ type.displayName }}</h2>
{{ type.description }}
<table class="rule-list table table-striped">
<colgroup>
Expand Down

0 comments on commit ca45380

Please sign in to comment.