You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> A [gulp](https://gulpjs.com/) plugin to lint code with [ESLint](https://eslint.org/) 8and 9.
3
+
> A [gulp](https://gulpjs.com/) plugin to lint code with [ESLint](https://eslint.org/) 8, 9, and 10.
4
4
5
5
## Installation
6
6
7
7
Make sure that you are using a version of Node.js supported by your version of ESLint.
8
-
See prerequisites for [ESLint 8](https://eslint.org/docs/v8.x/use/getting-started#prerequisites) and [ESLint 9](https://eslint.org/docs/v9.x/use/getting-started#prerequisites).
8
+
See prerequisites for [ESLint 8](https://eslint.org/docs/v8.x/use/getting-started#prerequisites), [ESLint 9](https://eslint.org/docs/v9.x/use/getting-started#prerequisites), or [ESLint 10](https://eslint.org/docs/v10.x/use/getting-started#prerequisites).
9
9
For TypeScript support, you need TypeScript 4.8 or later.
10
10
11
11
To install gulp-eslint-new, [use](https://docs.npmjs.com/cli/install)[npm](https://docs.npmjs.com/about-npm):
@@ -14,24 +14,25 @@ To install gulp-eslint-new, [use](https://docs.npmjs.com/cli/install) [npm](http
14
14
npm i -D gulp-eslint-new
15
15
```
16
16
17
-
gulp-eslint-new will also install the latest version of ESLint 9, unless another one is found.
17
+
gulp-eslint-new will also install the latest version of ESLint 10, unless another one is found.
18
18
To use a particular version of ESLint, install it by yourself.
19
-
For example, to use ESLint 8.8.0:
19
+
For example, to use ESLint 8.57.1:
20
20
21
21
```console
22
-
npm i -D gulp-eslint-new eslint@8.8.0
22
+
npm i -D gulp-eslint-new eslint@8.57.1
23
23
```
24
24
25
25
## Migrating
26
26
27
27
If you are migrating from [gulp-eslint][gulp-eslint], you probably won't need to make any substantial changes to your gulp task, as the API is widely compatible.
28
28
Note though that many options have changed: the current options are documented in the [`gulpESLintNew(options)`](#gulpeslintnewoptions) section.
29
29
30
-
Also note that gulp-eslint-new is designed to work with ESLint 8or 9, whereas the latest release of gulp-eslint only supports ESLint 6: you will need to update your project to address breaking changes in ESLint.
30
+
Also note that gulp-eslint-new is designed to work with ESLint 8, 9 or 10, whereas the latest release of gulp-eslint only supports ESLint 6: you will need to update your project to address breaking changes in ESLint.
31
31
You can follow the links below for more information.
32
32
*[Breaking changes for users from ESLint 6 to ESLint 7](https://eslint.org/docs/user-guide/migrating-to-7.0.0#breaking-changes-for-users)
33
33
*[Breaking changes for users from ESLint 7 to ESLint 8](https://eslint.org/docs/user-guide/migrate-to-8.0.0#breaking-changes-for-users)
34
34
*[Breaking changes for users from ESLint 8 to ESLint 9](https://eslint.org/docs/user-guide/migrate-to-9.0.0#breaking-changes-for-users)
35
+
*[Breaking changes for users from ESLint 9 to ESLint 10](https://eslint.org/docs/user-guide/migrate-to-10.0.0#breaking-changes-for-users)
35
36
36
37
37
38
## Usage
@@ -149,15 +150,13 @@ See the linked content for details about each option.
149
150
150
151
Type: `"eslintrc" | "flat" | null`
151
152
152
-
ESLint supports two types of configuration: a [new config](https://eslint.org/docs/user-guide/configure/configuration-files) type, aka flat config, based on file `eslint.config.*`, and a [legacy config](https://eslint.org/docs/user-guide/configure/configuration-files-deprecated) type, or eslintrc config, based on file `.eslintrc`.
153
+
ESLint supports two configuration formats: a [new config](https://eslint.org/docs/user-guide/configure/configuration-files) type, aka flat config, based on file `eslint.config.*`, and a [legacy config](https://eslint.org/docs/user-guide/configure/configuration-files-deprecated) type, or eslintrc config, based on file `.eslintrc`.
153
154
154
-
In ESLint 8, the default config type is the legacy config, and the new config is partly supported depending on the version of ESLint used.
155
-
To use the the new config with ESLint 8 in gulp-eslint-new, set the option `configType` to `"flat"`.
155
+
***ESLint 8**: Uses the legacy config by default. Flat config is partially supported depending on the version. In gulp-eslint-new, set `configType: "flat"` to enable flat config.
156
+
***ESLint 9**: Uses flat config by default. To use legacy config in gulp-eslint-new, set `configType: "eslintrc"`.
157
+
***ESLint 10**: Only supports flat config. Setting `configType: "eslintrc"` in gulp-eslint-new will result in an error.
156
158
157
-
ESLint 9 uses the new config type by default.
158
-
To use the legacy config with ESLint 9 in gulp-eslint-new, set the option `configType` to `"eslintrc"`.
159
-
160
-
The new and legacy config types differ significantly in the available options and their usage.
159
+
The new and legacy config formats differ significantly in the available options and their usage.
161
160
Refer to the respective documentation in ESLint for the specifics of each options.
0 commit comments