-
-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@typescript-eslint
breaks after update to eslint-plugin-ember
v12
#2062
@typescript-eslint
breaks after update to eslint-plugin-ember
v12
#2062
Comments
in V11, type-aware lint rules were not able to run on gts files, now they are -- are you seeing something outside of the expected behavior from |
I should have mentioned that I'm not using GTS files yet, still on the "old" Ember style (but on the latest version). Yes, all of these new errors that I get are bogus - they don't make sense. At least I think so. |
Any chance you could create a reproduction repo? Can you provide your config? |
I'm using TS, why wouldn't they be active? I'm just not using GTS. My config is pretty big. If you can't think of anything on the top of your head what might be happening, I'll try creating a reproduction shortly. |
Are you importing from gjs? perhaps? but yeah, a reproduction would be most helpful, as I don't have an ideas for anything that would cause the behavior you're seeing |
No, I don't have any GTS in my code (and I guess I don't have in my plugins either?). |
Our new dependency on ember-eslint-parser could bring in some newer TypeScript dependencies. Could that be related? |
@bmish it could be, however, I'm on the newest version of everything so... not sure. Here is a repo. Clone and run If anyone has ideas... for me there is something very strange going on. |
No, wait. This error seems to appear if the import is not found. If you change |
it's possible your tsconfig resolution settings aren't expecting extensionless imports? I'll dive in to your repro tomorrow |
I believe my |
I have also attempted to upgrade and ran into the same issue. I attempted to make sure everything Here is the upgrade diff: https://gist.github.com/chancancode/966bf0ff4df59c919839113f368b1a7a I also tried deleting the eslint cache (before/after the upgrade) just to be sure, but doesn't seem to be the case either. It definitely seems like something about this upgrade broke something in the module graph, either things are not resolving, or some module isn't able to be parsed correctly, and causing that to cascade outwards. It's causing non-ember related errors like these: Here, I have a pretty strong hunch that the problem is we somehow broke support for |
Relevant discord discussion: https://discord.com/channels/480462759797063690/717767358743183412/1206812615985336320 |
Thank you for working on this! However, the new version (12.0.1) doesn't seem to fix either the problem in my repo, or the reproduction I gave above. Can someone check? |
your lockfile needs refreshed -- it's using a very old parser |
@NullVoxPopuli it's not that. I pushed another commit that updates everything. Still doesn't work. |
your lockfile is still using too old of a parser: https://github.com/boris-petrov/eslint-plugin-ember-bug/blob/master/pnpm-lock.yaml#L790 should be 0.3.4. make sure pnpm is > 8.7 so you get if that is the case, then we probably need to force a bump in eslint-plugin-ember. |
It's a bug in |
PR to update here: #2091 |
With version
11.12.0
(and everything else at the latest version) all works fine. Upgrading to v12 I get 400+ errors from ESLint. As far as I see, all are from@typescript-eslint
. The vast majority are'any' overrides all other types in this union type @typescript-eslint/no-redundant-type-constituents
(not sure if that matters).Anyone else hit this problem? Any ideas what might be happening?
The text was updated successfully, but these errors were encountered: