Skip to content

Commit 2fd0061

Browse files
authored
Merge pull request #147 from bmish/legend-hide-ignored-config
2 parents 455878b + 2effb47 commit 2fd0061

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/legend.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const LEGENDS: {
6666
legends.push(`${EMOJI_CONFIG} ${configsLinkOrWord} enabled in.`);
6767
}
6868
legends.push(
69-
...configNames.flatMap((configName) => {
69+
...configNamesWithoutIgnored.flatMap((configName) => {
7070
const emoji = configEmojis.find(
7171
(configEmoji) => configEmoji.config === configName
7272
)?.emoji;

test/lib/generator-test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2432,6 +2432,7 @@ describe('generator', function () {
24322432
it('hides the ignored config', async function () {
24332433
await generate('.', {
24342434
ignoreConfig: ['configToIgnore'],
2435+
configEmoji: ['configToIgnore,😋'], // Ensure this config has an emoji that would normally display in the legend.
24352436
});
24362437
expect(readFileSync('README.md', 'utf8')).toMatchSnapshot();
24372438
expect(readFileSync('docs/rules/no-foo.md', 'utf8')).toMatchSnapshot();

0 commit comments

Comments
 (0)