Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
feat(eslint-plugin): [naming-convention] improve performance by remov…
…ing 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 <git@joshuakgoldberg.com>
  • Loading branch information
bradzacher and JoshuaKGoldberg committed Jan 31, 2023
1 parent f366b6f commit 3647a1c
Show file tree
Hide file tree
Showing 2 changed files with 311 additions and 270 deletions.
Expand Up @@ -64,7 +64,7 @@ type ValidatorFunction = (
node: TSESTree.Identifier | TSESTree.PrivateIdentifier | TSESTree.Literal,
modifiers?: Set<Modifiers>,
) => void;
type ParsedOptions = Record<SelectorsString, null | ValidatorFunction>;
type ParsedOptions = Record<SelectorsString, ValidatorFunction>;
type Context = Readonly<TSESLint.RuleContext<MessageIds, Options>>;

export type {
Expand Down

0 comments on commit 3647a1c

Please sign in to comment.