I inherited a Vite and Typescript-using codebase, and it’s somehow been configured to log Typescript warnings as errors:
(Note that, despite it saying “Warning:”, there’s a red “X” on the left, which indicates that the “warning” has been logged at the error level.)
I really want to disable warnings without losing errors, but if everything is an error I can’t do that. Can anyone explain how I can configure Vite/Typescript to log warnings at a warning level?
I’ve checked:
- https://www.npmjs.com/package/vite-plugin-checker
- https://vitejs.dev/config/
- https://www.typescriptlang.org/tsconfig/
but I can’t seem to find any sort of setting to control this behavior.