Skip to content

Commit c9a9f10

Browse files
committed
Docs: Move preset list into table in README
1 parent b58b35a commit c9a9f10

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,17 @@ Name | ✔️ | 🛠 | 💡 | Description
7575

7676
## Supported Presets
7777

78+
| | Name | Description |
79+
|:--|:-----|:------------|
80+
| ✔️ | `recommended` | enables all recommended rules in this plugin |
81+
| | `rules-recommended` | enables all recommended rules that are aimed at linting ESLint rule files |
82+
| | `tests-recommended` | enables all recommended rules that are aimed at linting ESLint test files |
83+
| | `all` | enables all rules in this plugin |
84+
| | `rules` | enables all rules that are aimed at linting ESLint rule files |
85+
| | `tests` | enables all rules that are aimed at linting ESLint test files |
86+
87+
The list of recommended rules will only change in a major release of this plugin. However, new non-recommended rules might be added in a minor release of this plugin. Therefore, the using the `all`, `rules`, and `tests` presets is **not recommended for production use**, because the addition of new rules in a minor release could break your build.
88+
7889
Presets are enabled by adding a line to the `extends` list in your config file. For example, to enable the `recommended` preset, use:
7990

8091
```json
@@ -84,13 +95,3 @@ Presets are enabled by adding a line to the `extends` list in your config file.
8495
]
8596
}
8697
```
87-
88-
* `recommended` enables all recommended rules from this plugin.
89-
* `rules-recommended` enables all recommended rules that are aimed at linting ESLint rule files.
90-
* `tests-recommended` enables all recommended rules that are aimed at linting ESLint test files.
91-
92-
* `all` enables all rules in this plugin.
93-
* `rules` enables all rules that are aimed at linting ESLint rule files.
94-
* `tests` enables all rules that are aimed at linting ESLint test files.
95-
96-
The list of recommended rules will only change in a major release of this plugin. However, new non-recommended rules might be added in a minor release of this plugin. Therefore, the using the `all`, `rules`, and `tests` presets is **not recommended for production use**, because the addition of new rules in a minor release could break your build.

0 commit comments

Comments
 (0)