Skip to content

Commit 4dd8f0d

Browse files
committed
refactor(base): simplify extension rule existence check
1 parent 2eb0993 commit 4dd8f0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/base.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ const config: TSESLint.FlatConfig.Config[] = [
165165
const tseslintRule = `@typescript-eslint/${rule}`;
166166
return [
167167
[rule, entry],
168-
...((tseslintRules as Linter.RulesRecord)[tseslintRule] != null
168+
...(tseslintRule in tseslintRules
169169
? [[tseslintRule, entry] as const]
170170
: []),
171171
];

0 commit comments

Comments
 (0)