Skip to content

chore: update ESlint from v8 to v9 #409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintrc.js

This file was deleted.

23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Finally, run `webpack` using the method you normally use (e.g., via CLI or an np
Type:

```ts
type test = string | RegExp | Array<string | RegExp>;
type test = string | RegExp | (string | RegExp)[];
```

Default: `undefined`
Expand All @@ -90,7 +90,7 @@ module.exports = {
Type:

```ts
type include = string | RegExp | Array<string | RegExp>;
type include = string | RegExp | (string | RegExp)[];
```

Default: `undefined`
Expand All @@ -114,7 +114,7 @@ module.exports = {
Type:

```ts
type exclude = string | RegExp | Array<string | RegExp>;
type exclude = string | RegExp | (string | RegExp)[];
```

Default: `undefined`
Expand Down Expand Up @@ -164,7 +164,7 @@ type algorithm =
[Symbol.toPrimitive](hint: "string"): string;
},
) => void,
) => any);
) => void);
```

Defines the compression algorithm or function to use. Defaults to `gzip`.
Expand Down Expand Up @@ -212,7 +212,7 @@ module.exports = {
Type:

```ts
type compressionOptions = {
interface compressionOptions {
flush?: number;
finishFlush?: number;
chunkSize?: number;
Expand All @@ -223,7 +223,7 @@ type compressionOptions = {
dictionary?: Buffer | TypedArray | DataView | ArrayBuffer;
info?: boolean;
maxOutputLength?: number;
};
}
```

Default: `{ level: 9 }`
Expand Down Expand Up @@ -401,10 +401,9 @@ Example:
module.exports = {
plugins: [
new CompressionPlugin({
deleteOriginalAssets: (assetName) => {
deleteOriginalAssets: (assetName) =>
// Delete all assets except images
return !assetName.endsWith(".png") && !assetName.endsWith(".jpg");
},
!assetName.endsWith(".png") && !assetName.endsWith(".jpg"),
}),
],
};
Expand Down Expand Up @@ -500,7 +499,7 @@ You can take advantage of this built-in support for Brotli in Node 10.16.0 and l
**webpack.config.js**

```js
const zlib = require("zlib");
const zlib = require("node:zlib");

module.exports = {
plugins: [
Expand Down Expand Up @@ -535,7 +534,7 @@ You can take advantage of this built-in support for zstd in Node 22.15.0 and lat
**webpack.config.js**

```js
const zlib = require("zlib");
const zlib = require("node:zlib");

module.exports = {
plugins: [
Expand Down Expand Up @@ -563,7 +562,7 @@ You can find all Zstandard's options in [the relevant part of the zlib module do
**webpack.config.js**

```js
const zlib = require("zlib");
const zlib = require("node:zlib");

module.exports = {
plugins: [
Expand Down
8 changes: 8 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { defineConfig } from "eslint/config";
import configs from "eslint-config-webpack/configs.js";

export default defineConfig([
{
extends: [configs["recommended-dirty"]],
},
]);
Loading
Loading