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
The default version is `8.0.0` because it's the minimum version the community is maintaining (see also [Node.js Release Working Group](https://github.com/nodejs/Release#readme)).
30
+
31
+
For Node.js packages, using the [`engines`] field is recommended because it's the official way to indicate support:
26
32
27
33
```json
28
34
{
@@ -34,7 +40,7 @@ For example of `package.json`:
34
40
}
35
41
```
36
42
37
-
If you omit the [engines] field, this rule chooses `>=8.0.0` as the configured Node.js version since `8` is the minimum version the community is maintaining (see also [Node.js Release Working Group](https://github.com/nodejs/Release#readme)).
43
+
For [Shareable Configs](https://eslint.org/docs/latest/developer-guide/shareable-configs) or packages with a different development environment (e.g. pre-compiled, web package, etc.), you can configure ESLint with `settings.node.version` to specify support.
38
44
39
45
### Options
40
46
@@ -49,7 +55,7 @@ If you omit the [engines] field, this rule chooses `>=8.0.0` as the configured N
49
55
50
56
#### version
51
57
52
-
As mentioned above, this rule reads the [engines] field of `package.json`.
58
+
As mentioned above, this rule reads the [`engines`] field of `package.json`.
53
59
But, you can overwrite the version by `version` option.
54
60
55
61
The `version` option accepts [the valid version range of `node-semver`](https://github.com/npm/node-semver#range-grammar).
@@ -140,6 +146,30 @@ The `"ignores"` option accepts an array of the following strings.
140
146
141
147
</details>
142
148
149
+
### Shared Settings
150
+
151
+
The following options can be set by [shared settings](http://eslint.org/docs/user-guide/configuring.html#adding-shared-settings).
152
+
Several rules have the same option, but we can set this option at once.
The default version is `8.0.0` because it's the minimum version the community is maintaining (see also [Node.js Release Working Group](https://github.com/nodejs/Release#readme)).
33
+
34
+
For Node.js packages, using the [`engines`] field is recommended because it's the official way to indicate support:
29
35
30
36
```json
31
37
{
@@ -37,7 +43,7 @@ For example of `package.json`:
37
43
}
38
44
```
39
45
40
-
If you omit the [engines] field, this rule chooses `>=8.0.0` as the configured Node.js version since `8` is the minimum version the community is maintaining (see also [Node.js Release Working Group](https://github.com/nodejs/Release#readme)).
46
+
For [Shareable Configs](https://eslint.org/docs/latest/developer-guide/shareable-configs) or packages with a different development environment (e.g. pre-compiled, web package, etc.), you can configure ESLint with `settings.node.version` to specify support.
41
47
42
48
### Options
43
49
@@ -52,7 +58,7 @@ If you omit the [engines] field, this rule chooses `>=8.0.0` as the configured N
52
58
53
59
#### version
54
60
55
-
As mentioned above, this rule reads the [engines] field of `package.json`.
61
+
As mentioned above, this rule reads the [`engines`] field of `package.json`.
56
62
But, you can overwrite the version by `version` option.
57
63
58
64
The `version` option accepts [the valid version range of `node-semver`](https://github.com/npm/node-semver#range-grammar).
@@ -123,7 +129,31 @@ The `"ignores"` option accepts an array of the following strings.
The default version is `8.0.0` because it's the minimum version the community is maintaining (see also [Node.js Release Working Group](https://github.com/nodejs/Release#readme)).
27
+
28
+
For Node.js packages, using the [`engines`] field is recommended because it's the official way to indicate support:
23
29
24
30
```json
25
31
{
@@ -31,7 +37,7 @@ For example of `package.json`:
31
37
}
32
38
```
33
39
34
-
If you omit the [engines] field, this rule chooses `>=8.0.0` as the configured Node.js version since `8` is the minimum version the community is maintaining (see also [Node.js Release Working Group](https://github.com/nodejs/Release#readme)).
40
+
For [Shareable Configs](https://eslint.org/docs/latest/developer-guide/shareable-configs) or packages with a different development environment (e.g. pre-compiled, web package, etc.), you can configure ESLint with `settings.node.version` to specify support.
35
41
36
42
### Options
37
43
@@ -46,7 +52,7 @@ If you omit the [engines] field, this rule chooses `>=8.0.0` as the configured N
46
52
47
53
#### version
48
54
49
-
As mentioned above, this rule reads the [engines] field of `package.json`.
55
+
As mentioned above, this rule reads the [`engines`] field of `package.json`.
50
56
But, you can overwrite the version by `version` option.
51
57
52
58
The `version` option accepts [the valid version range of `node-semver`](https://github.com/npm/node-semver#range-grammar).
@@ -324,6 +330,30 @@ The `"ignores"` option accepts an array of the following strings.
324
330
325
331
</details>
326
332
333
+
### Shared Settings
334
+
335
+
The following options can be set by [shared settings](http://eslint.org/docs/user-guide/configuring.html#adding-shared-settings).
336
+
Several rules have the same option, but we can set this option at once.
0 commit comments