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
Copy file name to clipboardExpand all lines: README.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -120,17 +120,17 @@ There's also an optional path argument if you need to point the CLI to an ESLint
120
120
121
121
| Name | Description |
122
122
| :-- | :-- |
123
-
|`--check`| Whether to check for and fail if there is a diff. No output will be written. Typically used during CI. |
123
+
|`--check`| Whether to check for and fail if there is a diff. No output will be written. Typically used during CI. Default: `false`. |
124
124
|`--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. |
125
125
|`--ignore-config`| Config to ignore from being displayed. Often used for an `all` config. Option can be repeated. |
126
-
|`--ignore-deprecated-rules`| Whether to ignore deprecated rules from being checked, displayed, or updated (default: `false`). |
127
-
|`--init-rule-docs`| Whether to create rule doc files if they don't yet exist (default: `false`). |
128
-
|`--path-rule-doc`| Path to markdown file for each rule doc. Use `{name}` placeholder for the rule name (default: `docs/rules/{name}.md`). |
126
+
|`--ignore-deprecated-rules`| Whether to ignore deprecated rules from being checked, displayed, or updated. Default: `false`. |
127
+
|`--init-rule-docs`| Whether to create rule doc files if they don't yet exist. Default: `false`. |
128
+
|`--path-rule-doc`| Path to markdown file for each rule doc. Use `{name}` placeholder for the rule name. Default: `docs/rules/{name}.md`. |
129
129
|`--path-rule-list`| Path to markdown file where the rules table list should live. Default: `README.md`. Option can be repeated. |
130
130
|`--rule-doc-notices`| Ordered, comma-separated list of notices to display in rule doc. Non-applicable notices will be hidden. Choices: `configs`, `deprecated`, `fixable` (off by default), `fixableAndHasSuggestions`, `hasSuggestions` (off by default), `options` (off by default), `requiresTypeChecking`, `type` (off by default). Default: `deprecated,configs,fixableAndHasSuggestions,requiresTypeChecking`. |
131
131
|`--rule-doc-section-exclude`| Disallowed section in each rule doc. Exit with failure if present. Option can be repeated. |
132
132
|`--rule-doc-section-include`| Required section in each rule doc. Exit with failure if missing. Option can be repeated. |
133
-
|`--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`). |
133
+
|`--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`. |
134
134
|`--rule-doc-title-format`| The format to use for rule doc titles. Defaults to `desc-parens-prefix-name`. See choices in below [table](#--rule-doc-title-format). |
135
135
|`--rule-list-columns`| Ordered, comma-separated list of columns to display in rule list. Empty columns will be hidden. Choices: `configsError`, `configsOff`, `configsWarn`, `deprecated`, `description`, `fixable`, `fixableAndHasSuggestions` (off by default), `hasSuggestions`, `name`, `options` (off by default), `requiresTypeChecking`, `type` (off by default). Default: `name,description,configsError,configsWarn,configsOff,fixable,hasSuggestions,requiresTypeChecking,deprecated`. |
136
136
|`--split-by`| Rule property to split the rules list by. A separate list and header will be created for each value. Example: `meta.type`. |
@@ -156,9 +156,9 @@ There are a few ways to create a config file:
156
156
- An object exported by `.eslint-doc-generatorrc.js`, `.eslint-doc-generatorrc.json`, or any other config file format/name supported by [cosmiconfig](https://github.com/davidtheclark/cosmiconfig#searchplaces)
157
157
- An object under the `eslint-doc-generator` key in `package.json`
158
158
159
-
Config files support all the [CLI options](#configuration-options) but in camelCase. CLI options take precedence over config file options.
159
+
Config files support all the [CLI options](#configuration-options) but in camelCase.
160
160
161
-
Using a JavaScript-based config also allows you to provide a `postprocess` function which gets called with the generated content and path to each file as they're processed, to make it easy to apply any custom transformations such as formatting - this is useful if you are using formatting tools such as[`prettier`](#prettier).
161
+
Using a JavaScript-based config file also allows you to provide a `postprocess` function to be called with the generated content and file path for each processed file. Useful for applying custom transformations such as formatting with tools like[`prettier`](#prettier).
0 commit comments