#Why do i have duplicate diagnostics in my code? Editor: Neovim
12 messages · Page 1 of 1 (latest)
yes
either disable the noUnusedLocals compiler option or the eslint rule that Chris pointed out
fair enough, but it'd annoy me ¯_(ツ)_/¯
why though? it's easy to fix, like i said. just remove that line from your tsconfig.json (at least that's the way i'd go, since the eslint rule is more powerful and flexible)
no reason to have two tools checking the same thing (and IMO lint rules like that shouldn't be the compiler's job anyway)
what do you mean by this? can you show another example?
yes, but they generally provide different diagnostics. except in this specific case where you're checking for unused locals with both tools
are there other kinds of warnings that you see twice?
@last ledge read the explanation in this link please
that disables the base eslint rule (which isn't typescript-aware) and enables the matching typescript plugin rule