Closed danielpza closed 1 month ago
Can you provide a minimal repository that reproduces the problem? Without it, we cannot investigate.
Hey @mizdra, thanks for the quick reponse.
If it helps although not minimal this is where I got the error https://github.com/LeDDGroup/typescript-transform-paths/compare/fix-eslint
I'll check again and try to make a minimal reproduction
I did encounter the same error message on my private pnpm monorepo too (with flatconfig for eslint), when using with these packages:
"@eslint/compat": "^1.1.1",
"@eslint/js": "^9.8.0",
"@typescript-eslint/parser": "^8.0.1",
"eslint": "^9.8.0",
"eslint-config-prettier": "^9.1.0",
"eslint-interactive": "^11.0.2",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-simple-import-sort": "^12.1.1",
Added a console.log to the sourcecode before the error happens, to log the configArray object that has the "wrong" language set, this might be handy. @mizdra
Facing the same error while using eslint flat config.
@danielpza Thanks for providing your repository! I could reproduce the issue. I will fix it.
This problem seems to occur with ESLint 9.5.0+. It is not reproduced in 9.4.0 or lower.
minimum reproduction: https://github.com/mizdra/typescript-transform-paths/tree/minimum-reproduction
Sorry, I couldn't provide a minimal repo, I got distracted with work.
Thanks for taking a look @mizdra :heart:.
@danielpza, @tamasfabi This bug fix is shipped in v11.0.3. Thanks for contributing!
Can also confirm that it's fixed, thanks :heart:
When choosing the option to convert the error to warning per file it crashes:
The other options seem to be working fine so far.
btw thanks for this awesome package. I've used it in some large scale codebases and it has been a huge time saver.