-
-
Save fcaminada/7d2cc25c74c3b7bdfe43246190c5d57d to your computer and use it in GitHub Desktop.
Repro TS typing error for eslint-webpack-plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "simple-repro", | |
"dependencies": { | |
"eslint": "^7.18.0", | |
"eslint-webpack-plugin": "^2.4.3", | |
"typescript": "^4.1.3" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
"esModuleInterop": false, | |
"skipLibCheck": true, | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment