Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📎 Add noEmptyTypeParameters rule #1386

Closed
togami2864 opened this issue Dec 31, 2023 · 0 comments · Fixed by #1458
Closed

📎 Add noEmptyTypeParameters rule #1386

togami2864 opened this issue Dec 31, 2023 · 0 comments · Fixed by #1458
Assignees
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages

Comments

@togami2864
Copy link
Contributor

Description

originally from: #1237 (comment)

(Unfortunately)TypeScript allows Empty type parameters in a type alias declaration or interface declaration. I think we should only handle type alias and interface declarations; anything else will cause parser errors, so we can ignore them.

// input
interface A<> {}
type A<> = {}

If it comfirmed, I'll try this

@ematipico ematipico added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages labels Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants