Skip to content

Commit e2fb78d

Browse files
authored
chore: enable reportUnusedDisableDirectives for eslint (#1136)
1 parent 8b34d32 commit e2fb78d

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
22
root: true,
3+
reportUnusedDisableDirectives: true,
34
extends: ["@webpack-contrib/eslint-config-webpack", "prettier"],
45
overrides: [
56
{

src/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ export default function wdm(compiler, options = {}) {
3636
watching: null,
3737
};
3838

39-
// eslint-disable-next-line no-param-reassign
4039
context.logger = context.compiler.getInfrastructureLogger(
4140
"webpack-dev-middleware"
4241
);

src/utils/setupOutputFileSystem.js

-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export default function setupOutputFileSystem(context) {
66
let outputFileSystem;
77

88
if (context.options.outputFileSystem) {
9-
// eslint-disable-next-line no-shadow
109
const { outputFileSystem: outputFileSystemFromOptions } = context.options;
1110

1211
// Todo remove when we drop webpack@4 support
@@ -33,7 +32,6 @@ export default function setupOutputFileSystem(context) {
3332
const compilers = context.compiler.compilers || [context.compiler];
3433

3534
for (const compiler of compilers) {
36-
// eslint-disable-next-line no-param-reassign
3735
compiler.outputFileSystem = outputFileSystem;
3836
}
3937

test/helpers/snapshotResolver.js

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ const path = require("path");
22

33
const webpack = require("webpack");
44

5-
// eslint-disable-next-line global-require
65
const [webpackVersion] = webpack.version;
76
const snapshotExtension = `.snap.webpack${webpackVersion}`;
87

0 commit comments

Comments
 (0)