Skip to content

Commit

Permalink
docs: add To adress section
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanujkanti4441 committed Jan 11, 2024
1 parent bb224df commit aa75669
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/use/migrate-to-9.0.0.md
Expand Up @@ -311,7 +311,7 @@ export default [

## <a name="no-inner-declarations"></a> `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"*/
Expand All @@ -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)

## <a name="removed-context-methods"></a> Removed multiple `context` methods
Expand Down

0 comments on commit aa75669

Please sign in to comment.