TSLint plugin for Webpack that lints all specified files, not only those imported by Webpack, making it useful for interface files missed due to tree-shaking. Version 2.1.1 is the latest stable release. The plugin is in maintenance mode due to TSLint being deprecated in favor of @typescript-eslint. Key differentiator vs tslint-loader: it lints all files matching a glob pattern instead of only files in the dependency graph.
npm install tslint-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Sets up Webpack with ts-loader and tslint-webpack-plugin to lint all .ts files in src/
Migrate to @typescript-eslint/eslint-plugin and eslint-webpack-plugin or fork-ts-checker-webpack-plugin with ESLint
Remove 'format' option; use custom formatter via TSLint API if needed
Set 'waitForLinting: true' and 'warningsAsError: true' to fail on lint errors
npm install tslint webpack --save-dev
npm install tslint-webpack-plugin --save-dev
Replace with const TSLintPlugin = require('tslint-webpack-plugin');Remove 'format' from plugin options