diff --git a/docs/src/use/configure/migration-guide.md b/docs/src/use/configure/migration-guide.md index ced485f351e8..bd0d9b7d0c91 100644 --- a/docs/src/use/configure/migration-guide.md +++ b/docs/src/use/configure/migration-guide.md @@ -537,7 +537,7 @@ For more information about the `FlatCompat` class, please see the [package READM With eslintrc, you can make ESLint ignore files by creating a separate `.eslintignore` file in the root of your project. The `.eslintignore` file uses the same glob pattern syntax as `.gitignore` files. Alternatively, you can use an `ignorePatterns` property in your eslintrc file. -To ignore files with flat config, you can use the `ignores` property in a config object. The `ignores` property accepts an array of glob patterns. Flat config does not support loading ignore patterns from `.eslintignore` files, so you'll need to migrate those patterns directly into flat config. +To ignore files with flat config, you can use the `ignores` property in a config object with no other properties. The `ignores` property accepts an array of glob patterns. Flat config does not support loading ignore patterns from `.eslintignore` files, so you'll need to migrate those patterns directly into flat config. For example, here's a `.eslintignore` example you can use with an eslintrc config: @@ -564,6 +564,7 @@ The equivalent ignore patterns in flat config look like this: export default [ // ...other config { + // Note: there should be no other properties in this object ignores: ["**/temp.js", "config/*"] } ];