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
When using @antfu/eslint-config in a project on Windows that has a folder name that is a superset of parent folder's name, lint command is throwing the following error:
> eslint . "--fix"
Oops! Something went wrong! :(
ESLint: 9.3.0
Error: Cannot find package 'C:\...\***\***.Client\node_modules\.pnpm\@[email protected]_@[email protected][email protected][email protected]__@vue+_r4q2j7aafpdnjhsogjebmzyegi\node_modules\eslint-plugin-eslint-comments\package.json' imported from C:\...\****\***.Client\node_modules\.pnpm\@[email protected]_@[email protected][email protected][email protected]__@vue+_r4q2j7aafpdnjhsogjebmzyegi\node_modules\@antfu\eslint-config\dist\index.js
Did you mean to import [email protected][email protected]/node_modules/eslint-plugin-eslint-comments/index.js?
at legacyMainResolve (node:internal/modules/esm/resolve:205:26)
at packageResolve (node:internal/modules/esm/resolve:831:14)
at moduleResolve (node:internal/modules/esm/resolve:901:20)
at defaultResolve (node:internal/modules/esm/resolve:1121:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36)
ELIFECYCLE Command failed with exit code 2.
This happens as soon as @antfu/eslint-config is being imported inside eslint.config.js file
Reproduction
On Windows. create My.Project folder 2. Create My.Project.Client folder inside My.Project folder 3. Clone vitesse starter template into My.Project.Client folder. 4. Install packages and run pnpm lint
Describe the bug
When using
@antfu/eslint-config
in a project on Windows that has a folder name that is a superset of parent folder's name, lint command is throwing the following error:This happens as soon as
@antfu/eslint-config
is being imported insideeslint.config.js
fileReproduction
My.Project
folder 2. CreateMy.Project.Client
folder insideMy.Project
folder 3. Clonevitesse
starter template intoMy.Project.Client
folder. 4. Install packages and runpnpm lint
System Info
Used Package Manager
pnpm
Validations
Contributions
The text was updated successfully, but these errors were encountered: