Open NileDaley opened 5 years ago
That's kinda the intention of using TypeScript. Regardless, you can change rules like the unused variables one directly your compilerOptions
in tsconfig.json
. Here are all the rules and the dfiferent values you can assign them.
In the case of the unused variables warning/error, there's a rule named noUnusedLocals
, which you can set to false
to stop the errors (at least for that specific compilation error).
I have a typescript react app that uses electron-webpack. My tsconfig.json looks like this:
When running
electron-webpack --dev
, the application compiles just fine - even with typescript warnings. However, as soon as I runelectron-webpack
, the build will fail as soon as there are any typescript warnings.Does
electron-webpack
not use the tsconfig.json file, or is it just more strict in production? It seems like the issue is with TSLint, which I don't use in my project - so is this something that is run during the compile step?Its just super annoying that I can't even compile for little things such as unused variables, etc. Is there a way I can get around this, or a config file that I can change?