Skip to content

Commit 3647a1c

Browse files
feat(eslint-plugin): [naming-convention] improve performance by removing unnecessary selectors (#6376)
* feat(eslint-plugin): [naming-convention] improve performance by removing unnecessary selectors * Non-nullable validators * Undo yarn.lock changes --------- Co-authored-by: Josh Goldberg <[email protected]>
1 parent f366b6f commit 3647a1c

File tree

2 files changed

+311
-270
lines changed

2 files changed

+311
-270
lines changed

packages/eslint-plugin/src/rules/naming-convention-utils/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type ValidatorFunction = (
6464
node: TSESTree.Identifier | TSESTree.PrivateIdentifier | TSESTree.Literal,
6565
modifiers?: Set<Modifiers>,
6666
) => void;
67-
type ParsedOptions = Record<SelectorsString, null | ValidatorFunction>;
67+
type ParsedOptions = Record<SelectorsString, ValidatorFunction>;
6868
type Context = Readonly<TSESLint.RuleContext<MessageIds, Options>>;
6969

7070
export type {

0 commit comments

Comments
 (0)