-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(eslint-plugin): allow using void as a default type for a generic…
… argument if allowInGenericTypeArguments is specified (#5671) * feat: allow using void as a default type for a generic argument * test: allow using void as a default type for a generic argument * fix: build error * fix: replace any * test: remove duplicate error * fix: report invalidVoidNotReturnOrGeneric only one time * Update packages/eslint-plugin/src/rules/no-invalid-void-type.ts Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> * Update packages/eslint-plugin/src/rules/no-invalid-void-type.ts Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> * fix: rename function name * refactor: delete isTSTypeParameter and inline * refactor: checkDefaultVoid Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com>
- Loading branch information
1 parent
5adf7bd
commit bb46ef0
Showing
2 changed files
with
27 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters