antlr4ts
antlr4ts copied to clipboard
Unused imports typescript error
The generated files contains some errors. You have imported the decorators NotNull and Override and commented their usage, is there a way to uncomment them or remove the imports without me touching the file manualy?
Are you sure this is an error and not just a linter warning?
With that said, the imports could be commented out to match the uses.
In my case it is an error because I want to use noUnusedLocals for my ts files. And there is no way to ignore them for just the generated files.
It'd be better if the imports are commented as well, or add some option (experimentalDecorators) to let the user select whether to add the decorators or not. also there is a variable that isn't used in the parser/Lexer generated files. Thanks alot,
I met this issue in my project. It violates noUnusedLocals in ts compile options, that cannot be changed. Is there any solution or workaround for it now?