Skip to content

Commit 11db5cc

Browse files
chore: update deps (#228)
1 parent ad95ed7 commit 11db5cc

23 files changed

+2860
-2431
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ type outputReport =
312312
| string
313313
| ((
314314
results: Array<import('eslint').ESLint.LintResult>,
315-
data?: import('eslint').ESLint.LintResultData | undefined
315+
data?: import('eslint').ESLint.LintResultData | undefined,
316316
) => string)
317317
)
318318
| undefined;

package-lock.json

Lines changed: 2798 additions & 2369 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -50,43 +50,43 @@
5050
"webpack": "^5.0.0"
5151
},
5252
"dependencies": {
53-
"@types/eslint": "^8.40.0",
54-
"jest-worker": "^29.5.0",
53+
"@types/eslint": "^8.44.2",
54+
"jest-worker": "^29.6.2",
5555
"micromatch": "^4.0.5",
5656
"normalize-path": "^3.0.0",
5757
"schema-utils": "^4.2.0"
5858
},
5959
"devDependencies": {
60-
"@babel/cli": "^7.22.5",
61-
"@babel/core": "^7.22.5",
62-
"@babel/preset-env": "^7.22.5",
63-
"@commitlint/cli": "^17.6.6",
64-
"@commitlint/config-conventional": "^17.6.6",
65-
"@types/fs-extra": "^9.0.13",
60+
"@babel/cli": "^7.22.10",
61+
"@babel/core": "^7.22.10",
62+
"@babel/preset-env": "^7.22.10",
63+
"@commitlint/cli": "^17.7.1",
64+
"@commitlint/config-conventional": "^17.7.0",
65+
"@types/fs-extra": "^11.0.1",
6666
"@types/micromatch": "^4.0.2",
67-
"@types/node": "^18.16.3",
67+
"@types/node": "^20.5.1",
6868
"@types/normalize-path": "^3.0.0",
6969
"@types/webpack": "^5.28.1",
7070
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
7171
"babel-eslint": "^10.1.0",
72-
"babel-jest": "^29.5.0",
72+
"babel-jest": "^29.6.2",
7373
"chokidar": "^3.5.3",
7474
"cross-env": "^7.0.3",
75-
"cspell": "^6.31.1",
75+
"cspell": "^7.0.0",
7676
"del": "^6.1.1",
7777
"del-cli": "^4.0.1",
78-
"eslint": "^8.44.0",
79-
"eslint-config-prettier": "^8.8.0",
80-
"eslint-plugin-import": "^2.27.5",
81-
"fs-extra": "^10.1.0",
78+
"eslint": "^8.47.0",
79+
"eslint-config-prettier": "^9.0.0",
80+
"eslint-plugin-import": "^2.28.1",
81+
"fs-extra": "^11.1.1",
8282
"husky": "^8.0.3",
83-
"jest": "^29.5.0",
84-
"lint-staged": "^13.2.3",
83+
"jest": "^29.6.2",
84+
"lint-staged": "^14.0.0",
8585
"npm-run-all": "^4.1.5",
86-
"prettier": "^2.8.8",
86+
"prettier": "^3.0.2",
8787
"standard-version": "^9.5.0",
8888
"typescript": "^5.1.6",
89-
"webpack": "^5.88.1"
89+
"webpack": "^5.88.2"
9090
},
9191
"keywords": [
9292
"eslint",

src/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ class ESLintWebpackPlugin {
3737

3838
const excludedFiles = parseFiles(
3939
this.options.exclude || [],
40-
this.getContext(compiler)
40+
this.getContext(compiler),
4141
);
4242
const resourceQueries = arrify(this.options.resourceQueryExclude || []);
4343
const excludedResourceQueries = resourceQueries.map((item) =>
44-
item instanceof RegExp ? item : new RegExp(item)
44+
item instanceof RegExp ? item : new RegExp(item),
4545
);
4646

4747
const options = {
@@ -62,7 +62,7 @@ class ESLintWebpackPlugin {
6262
// execute the linter on the build
6363
if (!this.options.lintDirtyModulesOnly) {
6464
compiler.hooks.run.tapPromise(this.key, (c) =>
65-
this.run(c, options, wanted, exclude)
65+
this.run(c, options, wanted, exclude),
6666
);
6767
}
6868

@@ -87,7 +87,7 @@ class ESLintWebpackPlugin {
8787
async run(compiler, options, wanted, exclude) {
8888
// @ts-ignore
8989
const isCompilerHooked = compiler.hooks.compilation.taps.find(
90-
({ name }) => name === this.key
90+
({ name }) => name === this.key,
9191
);
9292

9393
if (isCompilerHooked) return;
@@ -128,7 +128,7 @@ class ESLintWebpackPlugin {
128128
isMatch(file, wanted, { dot: true }) &&
129129
!isMatch(file, exclude, { dot: true });
130130
const isQueryNotExclude = options.resourceQueryExclude.every(
131-
(reg) => !reg.test(query)
131+
(reg) => !reg.test(query),
132132
);
133133

134134
if (isFileNotListed && isFileWanted && isQueryNotExclude) {

src/linter.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function linter(key, options, compilation) {
6868
// @ts-ignore
6969
compilation.errors.push(new ESLintError(e.message));
7070
return [];
71-
})
71+
}),
7272
);
7373
}
7474

@@ -77,7 +77,7 @@ function linter(key, options, compilation) {
7777
let results = await removeIgnoredWarnings(
7878
eslint,
7979
// Get the current results, resetting the rawResults to empty
80-
await flatten(rawResults.splice(0, rawResults.length))
80+
await flatten(rawResults.splice(0, rawResults.length)),
8181
);
8282

8383
await cleanup();
@@ -96,7 +96,7 @@ function linter(key, options, compilation) {
9696
const formatter = await loadFormatter(eslint, options.formatter);
9797
const { errors, warnings } = await formatResults(
9898
formatter,
99-
parseResults(options, results)
99+
parseResults(options, results),
100100
);
101101

102102
return {
@@ -189,7 +189,7 @@ function parseResults(options, results) {
189189
results.forEach((file) => {
190190
if (fileHasErrors(file)) {
191191
const messages = file.messages.filter(
192-
(message) => options.emitError && message.severity === 2
192+
(message) => options.emitError && message.severity === 2,
193193
);
194194

195195
if (messages.length > 0) {
@@ -199,7 +199,7 @@ function parseResults(options, results) {
199199

200200
if (fileHasWarnings(file)) {
201201
const messages = file.messages.filter(
202-
(message) => options.emitWarning && message.severity === 1
202+
(message) => options.emitWarning && message.severity === 1,
203203
);
204204

205205
if (messages.length > 0) {

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function arrify(value) {
5353
*/
5454
function parseFiles(files, context) {
5555
return arrify(files).map((/** @type {string} */ file) =>
56-
normalizePath(resolve(context, file))
56+
normalizePath(resolve(context, file)),
5757
);
5858
}
5959

@@ -79,7 +79,7 @@ function parseFoldersToGlobs(patterns, extensions = []) {
7979
/[/\\]*?$/u,
8080
`/**${
8181
extensionsGlob ? `/*.${prefix + extensionsGlob + postfix}` : ''
82-
}`
82+
}`,
8383
);
8484
}
8585
} catch (_) {

test/autofix.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ describe('autofix stop', () => {
4141
`);
4242
done();
4343
});
44-
}
44+
},
4545
);
4646
});

test/child-compiler.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ChildPlugin {
1414
webpack.EntryOptionPlugin.applyEntryOption(
1515
childCompiler,
1616
compilation.compiler.context,
17-
this.options.entry
17+
this.options.entry,
1818
);
1919
childCompiler.runAsChild(() => {
2020
callback();
@@ -31,7 +31,7 @@ describe('child compiler', () => {
3131
entry: {
3232
child: './child-entry',
3333
},
34-
})
34+
}),
3535
);
3636
webpack(config).run((err, stats) => {
3737
expect(err).toBeNull();

test/eslintignore.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('eslintignore', () => {
1010
expect(err).toBeNull();
1111
expect(stats.hasWarnings()).toBe(false);
1212
expect(
13-
stats.compilation.errors.filter((x) => x instanceof ESLintError)
13+
stats.compilation.errors.filter((x) => x instanceof ESLintError),
1414
).toEqual([]);
1515

1616
done();

test/fail-on-config.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('fail on config', () => {
1313
expect(stats.hasErrors()).toBe(true);
1414
expect(errors).toHaveLength(1);
1515
expect(errors[0].message).toMatch(
16-
/ESLint configuration in --config is invalid/i
16+
/ESLint configuration in --config is invalid/i,
1717
);
1818
done();
1919
});

0 commit comments

Comments
 (0)