#TypeScript ESLint, why are unused imports, parameters & variables not being underlined with a warn?

1 messages · Page 1 of 1 (latest)

jaunty acorn
#

Hi,

A couple days ago, I touched something with my eslint.config.mjs file (or something related) and now unused imports are not underlined which bothers me.

Does anybody know how I can get back to recieving warning underlines for when something is unused and does not have an underscore in front of it (eg., _unusedVar would not give a warning)?

Thanks for any help!

dull frigate
#

Are you getting feedback from other rules?

jaunty acorn
#

Yes

#

Everything else seems to work, except this one rule.

#

Example of what's happening:

dull frigate
#

If you just declare a random const foo = "foo" in the middle of your code does it catch that?

jaunty acorn
#

nope,

dull frigate
#

And you're also getting errors from the other rules specifically configured in that same configuration block?

jaunty acorn
#

Yes

#

Let me try one

#

wait...

#

yeah let me verify

#

nope, I guess not (I turned on no-explicit-any and it did not underline)

#

I really thought it was

#

Now I'm really confused, because this all was working a few days ago

#

okay, so I don't know anymore, because I know for a fact that the @typescript-eslint/no-unsafe-call rule works. And as of now, the no-explicit-any and no-unused-vars rules do not work

#

fixed it

#

I used AI for help at one point to make it easier and it provided an eslint option which doesn't exist