Skip to content

Commit 42de4fe

Browse files
feat!: add support for ESLint v10 and remove support for ESLint v8 and Node.js v18 (#295)
* feat: support eslint 10 * style: enable `jsdoc/reject-any-type` * chore: update * chore: update deps * chore: update deps * chore: update `security` command * chore: update deps * chore: update deps * chore!: drop support for ESLint 8 and Node.js 18 * test: use config type as flat * chore: add `globals` to `devDependencies` * test: update * chore: update deps
1 parent d64d515 commit 42de4fe

30 files changed

+3662
-3812
lines changed

.cspell.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"CHANGELOG.md",
1919
"package.json",
2020
"coverage",
21-
"/test/output",
21+
"/test/outputs",
2222
"dist/**",
2323
"**/__snapshots__/**",
2424
"package-lock.json",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'Dependency Review'
1+
name: "Dependency Review"
22
on: [pull_request]
33

44
permissions:
@@ -8,7 +8,7 @@ jobs:
88
dependency-review:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: 'Checkout Repository'
11+
- name: "Checkout Repository"
1212
uses: actions/checkout@v5
13-
- name: 'Dependency Review'
13+
- name: "Dependency Review"
1414
uses: actions/dependency-review-action@v4

.github/workflows/nodejs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ jobs:
6060
strategy:
6161
matrix:
6262
os: [ubuntu-latest, windows-latest, macos-latest]
63-
node-version: [18.x, 20.x, 22.x, 24.x]
64-
eslint-version: [8.x, 9.x]
63+
node-version: [20.x, 22.x, 24.x]
64+
eslint-version: [9.x, 10.x]
6565
webpack-version: [latest]
6666

6767
runs-on: ${{ matrix.os }}
@@ -77,7 +77,7 @@ jobs:
7777
uses: actions/setup-node@v4
7878
with:
7979
node-version: ${{ matrix.node-version }}
80-
cache: 'npm'
80+
cache: "npm"
8181

8282
- name: Install dependencies
8383
run: npm ci

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
/dist
33
/node_modules
44
/test/fixtures
5-
/test/output
5+
/test/outputs
66
CHANGELOG.md

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pnpm add -D eslint-webpack-plugin
3838

3939
> [!NOTE]
4040
>
41-
> You also need to install `eslint >= 8` from npm, if you haven't already:
41+
> You also need to install `eslint >= 9` from npm, if you haven't already:
4242
4343
```console
4444
npm install eslint --save-dev
@@ -70,17 +70,12 @@ module.exports = {
7070

7171
## Options
7272

73-
You can pass [ESLint Node.js API options](https://eslint.org/docs/developer-guide/nodejs-api#-new-eslintoptions).
73+
You can pass [ESLint Node.js API options](https://eslint.org/docs/latest/integrate/nodejs-api#-new-eslintoptions).
7474

7575
> [!NOTE]
7676
>
7777
> The config option you provide will be passed to the `ESLint` class.
78-
> This is a different set of options than what you'd specify in `package.json` or `eslint.config.js` (since ESLint v9.0.0, formerly `.eslintrc`).
79-
> See the [ESlint docs](https://eslint.org/docs/developer-guide/nodejs-api#-new-eslintoptions) for more details.
80-
81-
> [!WARNING]
82-
>
83-
> In eslint-webpack-plugin version 1 the options were passed to the now-deprecated [CLIEngine](https://eslint.org/docs/developer-guide/nodejs-api#cliengine).
78+
> See the [ESlint docs](https://eslint.org/docs/latest/integrate/nodejs-api#-new-eslintoptions) for more details.
8479
8580
### `cache`
8681

@@ -118,10 +113,10 @@ type configType = "flat" | "eslintrc";
118113

119114
Specify the type of configuration to use with ESLint.
120115

121-
- `eslintrc` is the classic configuration format available in most ESLint versions.
122-
- `flat` is the new format introduced in ESLint 8.21.0.
116+
- `flat` is the current standard configuration format.
117+
- `eslintrc` is the legacy configuration format and has been officially deprecated.
123118

124-
The new configuration format is explained in its [own documentation](https://eslint.org/docs/latest/use/configure/configuration-files-new).
119+
The new configuration format is explained in its [own documentation](https://eslint.org/docs/latest/use/configure/configuration-files).
125120

126121
### `context`
127122

@@ -209,7 +204,7 @@ type fix = boolean;
209204

210205
- Default: `false`
211206

212-
Will enable [ESLint autofix feature](https://eslint.org/docs/developer-guide/nodejs-api#-eslintoutputfixesresults).
207+
Will enable [ESLint autofix feature](https://eslint.org/docs/latest/integrate/nodejs-api#-eslintoutputfixesresults).
213208

214209
**Be careful: this option will modify source files.**
215210

0 commit comments

Comments
 (0)