Semantic TSLint rules use the compiler's program APIs to inspect static types and validate code patterns.
In order for TSLint to run its semantic rules, when using the CLI, use the --project flag and specify your tsconfig.json to enable rules that work with the type checker. See https://palantir.github.io/tslint/usage/type-checking.
Whereas this code suggest a tsconfig.json file should be passed by this option instead, while the TSLint configuration comes from elsewhere at Webpack.
Semantic TSLint rules use the compiler's program APIs to inspect static types and validate code patterns.
In order for TSLint to run its semantic rules, when using the CLI, use the
--project
flag and specify yourtsconfig.json
to enable rules that work with the type checker. See https://palantir.github.io/tslint/usage/type-checking.However, the current implementation passes the
tslint.json
file to thetslint-loader
, as itstsConfigFile
parameter. https://github.com/dojo/cli-build-webpack/blob/c3329497523bf8ead02a7b6ce1242262fea7c6a8/src/webpack.config.ts#L326-L328Whereas this code suggest a
tsconfig.json
file should be passed by this option instead, while the TSLint configuration comes from elsewhere at Webpack.