Skip to content

Instantly share code, notes, and snippets.

@fcaminada
Last active January 20, 2021 02:03
Show Gist options
  • Save fcaminada/7d2cc25c74c3b7bdfe43246190c5d57d to your computer and use it in GitHub Desktop.
Save fcaminada/7d2cc25c74c3b7bdfe43246190c5d57d to your computer and use it in GitHub Desktop.
Repro TS typing error for eslint-webpack-plugin
{
"name": "simple-repro",
"dependencies": {
"eslint": "^7.18.0",
"eslint-webpack-plugin": "^2.4.3",
"typescript": "^4.1.3"
}
}
import * as webpack from "webpack";
import * as ESLintWebpackPlugin from "eslint-webpack-plugin";
const compiler = webpack({
entry: "index.js",
plugins: [
new ESLintWebpackPlugin()
]
});
compiler.run((err: Error | undefined, stats: webpack.Stats | undefined) => {
if (err && err != undefined && err != null) {
console.error(err);
}
console.log(stats.toJson());
});
{
"compilerOptions": {
"esModuleInterop": false,
"skipLibCheck": true,
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment