Skip to content

Commit

Permalink
lil more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed May 8, 2024
1 parent 261af1f commit b60b726
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/typescript-eslint/tests/configs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import plugin from '../src/index';

const RULE_NAME_PREFIX = '@typescript-eslint/';
const EXTENSION_RULES = Object.entries(rules)
.filter(([, rule]) => rule.meta.docs?.extendsBaseRule)
.filter(([, rule]) => rule.meta.docs.extendsBaseRule)
.map(
([ruleName, rule]) =>
[
`${RULE_NAME_PREFIX}${ruleName}`,
typeof rule.meta.docs?.extendsBaseRule === 'string'
typeof rule.meta.docs.extendsBaseRule === 'string'
? rule.meta.docs.extendsBaseRule
: ruleName,
] as const,
Expand Down

0 comments on commit b60b726

Please sign in to comment.