💅 noUndeclaredDependencies
special case
#4711
Labels
S-Needs discussion
Status: needs a discussion to understand criteria
S-Needs triage
Status: this issue needs to be triaged
Environment information
Rule name
noUndeclaredDependencies
Playground link
https://biomejs.dev/playground/?lineWidth=120&indentStyle=space&lintRules=all&code=aQBtAHAAbwByAHQAIAB2AHMAYwBvAGQAZQAgAD0AIAByAGUAcQB1AGkAcgBlACgAIgB2AHMAYwBvAGQAZQAiACkAOwAKAAoAZQB4AHAAbwByAHQAIABmAHUAbgBjAHQAaQBvAG4AIABhAGMAdABpAHYAYQB0AGUAKABjAG8AbgB0AGUAeAB0ADoAIAB2AHMAYwBvAGQAZQAuAEUAeAB0AGUAbgBzAGkAbwBuAEMAbwBuAHQAZQB4AHQAKQA6ACAAdgBvAGkAZAAgAHsACgAgACAAYwBvAG4AcwB0ACAAZABpAHMAcABvAHMAYQBiAGwAZQAgAD0AIAB2AHMAYwBvAGQAZQAuAGMAbwBtAG0AYQBuAGQAcwAuAHIAZQBnAGkAcwB0AGUAcgBDAG8AbQBtAGEAbgBkACgAIgBoAGUAbABsAG8AdwBvAHIAbABkAC4AaABlAGwAbABvAFcAbwByAGwAZAAiACwAIAAoACkAIAA9AD4AIAB7AAoAIAAgACAAIAB2AHMAYwBvAGQAZQAuAHcAaQBuAGQAbwB3AC4AcwBoAG8AdwBJAG4AZgBvAHIAbQBhAHQAaQBvAG4ATQBlAHMAcwBhAGcAZQAoACIASABlAGwAbABvACAAVwBvAHIAbABkACEAIgApADsACgAgACAAfQApADsACgAKACAAIABjAG8AbgB0AGUAeAB0AC4AcwB1AGIAcwBjAHIAaQBwAHQAaQBvAG4AcwAuAHAAdQBzAGgAKABkAGkAcwBwAG8AcwBhAGIAbABlACkAOwAKAH0ACgA%3D
Expected result
VS Code extensions must import APIs from
"vscode"
package. This is just a place holder, such package is not even published tonpm
registry.Might be worth to treat
"vscode"
as a special case. I think it should not be treated as missing dependency.By the way, it would nice to support the following syntax:
This way
tsc
emits cleaner code:Code of Conduct
The text was updated successfully, but these errors were encountered: