Created by: LinusU
Fixes #5784 (closed)
This patch adds an additional environment flag: DISABLE_TSC_PLUGIN. When set to true it will skip type checking the code using the TypeScript compiler (via fork-ts-checker-webpack-plugin).
It was modeled to follow how DISABLE_ESLINT_PLUGIN work:
| ESLint | TSC | |
|---|---|---|
| Ignore errors | ESLINT_NO_DEV_ERRORS |
TSC_COMPILE_ON_ERROR |
| Disable plugin | DISABLE_ESLINT_PLUGIN |
DISABLE_TSC_PLUGIN |
This is useful because some libraries that (ab?)uses the TypeScript type system can cause significant CPU usage. While I love that those libraries can bring type safety to very dynamic problems, it slows the machine down when developing...