You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add scripts to `package.json` (both a lint script to ensure everything is up-to-date in CI and an update script) (add any config options in the `update:eslint-docs` script):
38
+
Add scripts to `package.json`:
39
+
40
+
- Both a lint script to ensure everything is up-to-date in CI and an update script for contributors to run locally
41
+
- Add any [config options](#configuration-options) in the `update:eslint-docs` script only
38
42
39
43
```json
40
44
{
@@ -143,7 +147,7 @@ The table will hide columns that don't apply to any rules, and the legend will i
143
147
144
148
## Badge
145
149
146
-
For any configs without emojis (see [`--config-emoji`](#configuration-options)), you'll need to define badges for them at the bottom of your `README.md`.
150
+
While config emojis are recommended (see [`--config-emoji`](#configuration-options)), you can alternatively define badges for configs at the bottom of your `README.md`.
147
151
148
152
Here's a badge for a custom `fun` config that displays in blue:
149
153
@@ -165,7 +169,7 @@ And how it looks:
165
169
|`--config-emoji`| Custom emoji to use for a config. Format is `config-name,emoji`. Default emojis are provided for [common configs](./lib/emojis.ts). To remove a default emoji and rely on a [badge](#badge) instead, provide the config name without an emoji. Option can be repeated. |
166
170
|`--ignore-config`| Config to ignore from being displayed. Often used for an `all` config. Option can be repeated. |
167
171
|`--ignore-deprecated-rules`| Whether to ignore deprecated rules from being checked, displayed, or updated (default: `false`). |
168
-
|`--rule-doc-notices`| Ordered, comma-separated list of notices to display in rule doc. Non-applicable notices will be hidden. Choices: `configs`, `deprecated`, `fixable`, `fixableAndHasSuggestions`, `hasSuggestions`, `requiresTypeChecking`, `type` (off by default). Default: `deprecated,configs,fixable,fixableAndHasSuggestions,hasSuggestions,requiresTypeChecking`. |
172
+
|`--rule-doc-notices`| Ordered, comma-separated list of notices to display in rule doc. Non-applicable notices will be hidden. Choices: `configs`, `deprecated`, `fixable`, `fixableAndHasSuggestions`, `hasSuggestions`, `requiresTypeChecking`, `type` (off by default). A consolidated notice called `fixableAndHasSuggestions` automatically replaces `fixable` and `hasSuggestions` when applicable. Default: `deprecated,configs,fixable,fixableAndHasSuggestions,hasSuggestions,requiresTypeChecking`. |
169
173
|`--rule-doc-section-exclude`| Disallowed section in each rule doc. Exit with failure if present. Option can be repeated. |
170
174
|`--rule-doc-section-include`| Required section in each rule doc. Exit with failure if missing. Option can be repeated. |
171
175
|`--rule-doc-section-options`| Whether to require an "Options" or "Config" rule doc section and mention of any named options for rules with options (default: `true`). |
Copy file name to clipboardExpand all lines: lib/cli.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ export function run() {
62
62
)
63
63
.option(
64
64
'--rule-doc-notices <notices>',
65
-
`(optional) Ordered, comma-separated list of notices to display in rule doc. Non-applicable notices will be hidden. (choices: "${Object.values(
65
+
`(optional) Ordered, comma-separated list of notices to display in rule doc. Non-applicable notices will be hidden. A consolidated notice called \`fixableAndHasSuggestions\` automatically replaces \`fixable\` and \`hasSuggestions\` when applicable. (choices: "${Object.values(
0 commit comments