Skip to content

Commit d6664e5

Browse files
chore: remove ts-ignore
1 parent f736fcf commit d6664e5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ class ESLintWebpackPlugin {
8585
* @param {string[]} exclude
8686
*/
8787
async run(compiler, options, wanted, exclude) {
88-
// @ts-ignore
8988
const isCompilerHooked = compiler.hooks.compilation.taps.find(
9089
({ name }) => name === this.key,
9190
);

src/linter.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,10 @@ async function linter(key, options, compilation) {
118118
const save = (name, content) =>
119119
/** @type {Promise<void>} */ (
120120
new Promise((finish, bail) => {
121-
// @ts-ignore
121+
if (!compiler.outputFileSystem) return;
122+
122123
const { mkdir, writeFile } = compiler.outputFileSystem;
123-
// ensure directory exists
124-
// @ts-ignore - the types for `outputFileSystem` are missing the 3 arg overload
124+
125125
mkdir(dirname(name), { recursive: true }, (err) => {
126126
/* istanbul ignore if */
127127
if (err) bail(err);
@@ -276,8 +276,9 @@ async function removeIgnoredWarnings(eslint, results) {
276276
return ignored ? false : result;
277277
});
278278

279-
// @ts-ignore
280-
return (await Promise.all(filterPromises)).filter(Boolean);
279+
return (await Promise.all(filterPromises)).filter(
280+
(result) => result !== false,
281+
);
281282
}
282283

283284
/**

0 commit comments

Comments
 (0)