💅 noEmptyInterface
may break global augmentation
#3110
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Enhancement
Status: Improve an existing feature
Environment information
Rule name
suspicious/noEmptyInterface
Playground link
https://biomejs.dev/playground/?code=LwAvACAAcgBvAG8AdAAgAGQAZQBjAGwAYQByAGEAdABpAG8AbgAgAHcAaQB0AGgAIABhAG4AIABlAG0AcAB0AHkAIABpAG4AdABlAHIAZgBhAGMAZQAKAGQAZQBjAGwAYQByAGUAIABnAGwAbwBiAGEAbAAgAHsACgAgACAAbgBhAG0AZQBzAHAAYQBjAGUAIABNAHkAQQB3AGUAcwBvAG0AZQBOAGEAbQBlAHMAcABhAGMAZQAgAHsACgAgACAAIAAgAGkAbgB0AGUAcgBmAGEAYwBlACAARwBsAG8AYgBhAGwAUgBlAGcAaQBzAHQAZQByACAAewB9AAoAIAAgAH0ACgB9AAoACgAvAC8AIABsAGEAdABlAHIAIABpAG4AIABhAG4AbwB0AGgAZQByACAAbQBvAGQAdQBsAGUACgBkAGUAYwBsAGEAcgBlACAAZwBsAG8AYgBhAGwAIAB7AAoAIAAgAG4AYQBtAGUAcwBwAGEAYwBlACAATQB5AEEAdwBlAHMAbwBtAGUATgBhAG0AZQBzAHAAYQBjAGUAIAB7AAoAIAAgACAAIABpAG4AdABlAHIAZgBhAGMAZQAgAEcAbABvAGIAYQBsAFIAZQBnAGkAcwB0AGUAcgAgAHsACgAgACAAIAAgACAAIABmAG8AbwA6ACAAJwBiAGEAcgAnACwACgAgACAAIAAgAH0ACgAgACAAfQAKAH0A
Expected result
Empty interfaces (which doesn't extend any other interface?) within the
declare global
block should be ignored from converting them to a type, since the fix will break global augmentationCode of Conduct
The text was updated successfully, but these errors were encountered: