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
+18-7
Original file line number
Diff line number
Diff line change
@@ -177,7 +177,7 @@ There's also a `postprocess` option that's only available via a [config file](#c
177
177
| Name | Description | Default |
178
178
| :-- | :-- | :-- |
179
179
|`--check`| Whether to check for and fail if there is a diff. Any diff will be displayed but no output will be written to files. Typically used during CI. |`false`|
180
-
|`--config-emoji`| Custom emoji to use for a config. Format is `config-name,emoji`. Option can be repeated. | Default emojis are provided for [common configs](./lib/emojis.ts). To remove a default emoji and rely on a [badge](#badges)instead, provide the config name without an emoji. |
180
+
|`--config-emoji`| Custom emoji to use for a config. Format is `config-name,emoji`. Option can be repeated. | Default emojis are provided for [common configs](./lib/emojis.ts). See [Badges](#badges)for an alternative to emojis. |
181
181
|`--config-format`| The format to use for config names. See choices in below [table](#--config-format). |`name`|
182
182
|`--ignore-config`| Config to ignore from being displayed. Often used for an `all` config. Option can be repeated. ||
183
183
|`--ignore-deprecated-rules`| Whether to ignore deprecated rules from being checked, displayed, or updated. |`false`|
@@ -305,19 +305,30 @@ module.exports = config;
305
305
306
306
### Badges
307
307
308
-
While config emojis are the recommended representations of configs that a rule belongs to (see [`--config-emoji`](#configuration-options)), you can alternatively define badges for configs at the bottom of your `README.md`.
308
+
While emojis are the recommended representations of configs that a rule belongs to, you can alternatively use a text/image/icon badge for configs by supplying the following markdown for the emoji using the [`--config-emoji`](#configuration-options) option.
309
309
310
-
Here's a badge for a custom `fun` config that displays in blue:
310
+
For example, here's the markdown for a text badge representing a custom `fun` config that displays in blue (note that the markdown includes alt text followed by the image URL):
Copy file name to clipboardexpand all lines: lib/cli.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -192,7 +192,7 @@ export async function run(
192
192
)
193
193
.option(
194
194
'--config-emoji <config-emoji>',
195
-
'(optional) Custom emoji to use for a config. Format is `config-name,emoji`. Default emojis are provided for common configs. To remove a default emoji and rely on a badge instead, provide the config name without an emoji. Option can be repeated.',
195
+
'(optional) Custom emoji to use for a config. Format is `config-name,emoji`. Default emojis are provided for common configs. To use a text/image/icon badge instead of an emoji, supply the corresponding markdown as the emoji. Option can be repeated.',
0 commit comments