diff --git a/docs/src/use/migrate-to-9.0.0.md b/docs/src/use/migrate-to-9.0.0.md index 590f2ea6af1..3f01a54295c 100644 --- a/docs/src/use/migrate-to-9.0.0.md +++ b/docs/src/use/migrate-to-9.0.0.md @@ -311,7 +311,7 @@ export default [ ## `no-inner-declarations` has a new default behavior with a new option -ESLint v9.0.0 introduces a new option in `no-inner-declarations` rule called `blockScopeFunctions` which by default allows block-level `functions` in strict mode when `languageOptions.ecmaVersion` is set to `2015` or above. +ESLint v9.0.0 introduces a new option in `no-inner-declarations` rule called `blockScopeFunctions` which by default allows block-level `function`s in strict mode when `languageOptions.ecmaVersion` is set to `2015` or above. ```js /*eslint no-inner-declarations: "error"*/ @@ -322,6 +322,8 @@ if (test) { } ``` +**To address:** If you want to report the block-level `function`s in every condition regardless of strict or non-strict mode, set the `blockScopeFunctions` option to `"disallow"`. + **Related issue(s):** [#15576](https://github.com/eslint/eslint/issues/15576) ## Removed multiple `context` methods