Skip to content

Commit 6905d9c

Browse files
committed
add to the migration doc
1 parent 4a6a4fd commit 6905d9c

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

docs/src/use/migrate-to-10.0.0.md

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
2+
23
title: Migrate to v10.x
34
eleventyNavigation:
4-
key: migrate to v10
5-
parent: use eslint
6-
title: Migrate to v10.x
7-
order: 9
5+
key: migrate to v10
6+
parent: use eslint
7+
title: Migrate to v10.x
8+
order: 9
89
---
910

1011
ESLint v10.0.0 is a major release of ESLint, and as such, has several breaking changes that you need to be aware of. This guide is intended to walk you through the breaking changes.
@@ -19,6 +20,7 @@ The lists below are ordered roughly by the number of users each change is expect
1920
- [New configuration file lookup algorithm](#config-lookup-from-file)
2021
- [`no-shadow-restricted-names` now reports `globalThis` by default](#no-shadow-restricted-names)
2122
- [`eslint:recommended` has been updated](#eslint-recommended)
23+
- [Jiti < v2.2.0 are no longer supported](#-jiti--v220-are-no-longer-supported)
2224

2325
### Breaking changes for plugin developers
2426

@@ -45,14 +47,16 @@ ESLint is officially dropping support for these versions of Node.js starting wit
4547

4648
## <a name="config-lookup-from-file"></a> New configuration file lookup algorithm
4749

48-
In ESLint v9, the alternate config lookup behavior could be enabled with the `v10_config_lookup_from_file` feature flag. This behavior made ESLint locate `eslint.config.*` by starting from the directory of each linted file and searching up towards the filesystem root. In ESLint v10, this behavior is now the default and the `v10_config_lookup_from_file` flag has been removed. Attempting to use this flag will now result in an error.
50+
In ESLint v9, the alternate config lookup behavior could be enabled with the `v10\_config\_lookup\_from\_file` feature flag. This behavior made ESLint locate `eslint.config.\*` by starting from the directory of each linted file and searching up towards the filesystem root. In ESLint v10, this behavior is now the default and the `v10\_config\_lookup\_from\_file` flag has been removed. Attempting to use this flag will now result in an error.
4951

5052
**To address:**
5153

5254
- Remove any usage of the flag in your setup:
53-
- CLI: remove `--flag v10_config_lookup_from_file`.
54-
- Environment: remove `v10_config_lookup_from_file` from `ESLINT_FLAGS`.
55-
- API: remove `"v10_config_lookup_from_file"` from the `flags` array passed to `new ESLint()` or `new Linter()`.
55+
56+
- CLI: remove `--flag v10\_config\_lookup\_from\_file`.
57+
- Environment: remove `v10\_config\_lookup\_from\_file` from `ESLINT\_FLAGS`.
58+
- API: remove `"v10\_config\_lookup\_from\_file"` from the `flags` array passed to `new ESLint()` or `new Linter()`.
59+
5660
- If you relied on the previous (cwd-based) lookup behavior, provide an explicit config path with `--config path/to/eslint.config.js`.
5761

5862
**Related issue(s):** [#19967](https://github.com/eslint/eslint/issues/19967)
@@ -69,7 +73,7 @@ In ESLint v10, the [`no-shadow-restricted-names`](../rules/no-shadow-restricted-
6973
```json
7074
{
7175
"rules": {
72-
"no-shadow-restricted-names": ["error", { "reportGlobalThis": false }]
76+
"no-shadow-restricted-names": \["error", { "reportGlobalThis": false }]
7377
}
7478
}
7579
```
@@ -87,3 +91,11 @@ Three new rules have been enabled in `eslint:recommended`:
8791
**To address:** Fix errors or disable these rules.
8892

8993
**Related issue(s):** [#19966](https://github.com/eslint/eslint/issues/19966)
94+
95+
## <a name="drop-old-jiti"></a> Jiti < v2.2.0 are no longer supported
96+
97+
ESLint is officially dropping support for versions of `jiti` that are less than v2.2.0.
98+
99+
**To address:** If you've authored your config file in `TypeScript` and have `jiti` v2.1.0 or earlier installed, be sure to update it to at least `2.2.0` when using ESLint v10.
100+
101+
**Related issue(s):** [#19765](https://github.com/eslint/eslint/issues/19765)

0 commit comments

Comments
 (0)