You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, maybe I'm misunderstanding a design decision but as someone coming from ESLint, I noticed a very basic use case missing: resolving modules.
In the Playground example I provide below, I am simply trying to import a variable foo from a file that does not exist ("./bar"). With an out-of-the-box ESLint configuration, it will complain that this file does not exist, thus it cannot find the variable to import. But Biome does not seem to check that at all, or maybe I have configured it incorrectly. Is there a reason for this?
I tried searching for this concern on the issues page but couldn't find anything, so apologies if someone already brought this up.
Code of Conduct
I agree to follow Biome's Code of Conduct
The text was updated successfully, but these errors were encountered:
Can you please provide the ESLint lint rule that triggers this "module not resolved" diagnostic?
I was mistaken, ESLint does NOT come with this configured by default! Apologies for the confusion.
What I was in fact referring to is eslint-plugin-import, which handles the reporting of errors such as the one I mentioned. I believe the specific rule they have for this is called no-unresolved.
In any case, it's exactly this sort of ruleset that I would like to see supported in Biome. Are there plans for that?
Environment information
Rule name
N/A
Playground link
https://biomejs.dev/playground/?unsafeParameterDecoratorsEnabled=false&allowComments=false&files.main.ts=aQBtAHAAbwByAHQAIAB7ACAAZgBvAG8AIAB9ACAAZgByAG8AbQAgACcALgAvAGIAYQByACcAOwAKAAoAYwBvAG4AcwBvAGwAZQAuAGwAbwBnACgAZgBvAG8AKQA7AA%3D%3D
Expected result
Hi all, maybe I'm misunderstanding a design decision but as someone coming from ESLint, I noticed a very basic use case missing: resolving modules.
In the Playground example I provide below, I am simply trying to import a variable
foo
from a file that does not exist ("./bar"
). With an out-of-the-box ESLint configuration, it will complain that this file does not exist, thus it cannot find the variable to import. But Biome does not seem to check that at all, or maybe I have configured it incorrectly. Is there a reason for this?I tried searching for this concern on the issues page but couldn't find anything, so apologies if someone already brought this up.
Code of Conduct
The text was updated successfully, but these errors were encountered: