Skip to content

[no-shadow] Add ignoreOnInitialization option to match the ESLint rule #4601

@glen-84

Description

@glen-84
  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have read the FAQ and my problem is not listed.

Repro

{
  "rules": {
    "@typescript-eslint/no-shadow": ["error", { "ignoreOnInitialization": true }],
  }
}
// n/a

Expected Result

No errors.

Actual Result

Configuration for rule "@typescript-eslint/no-shadow" is invalid:
Value {"ignoreOnInitialization":true} should NOT have additional properties.

Additional Info

https://eslint.org/docs/rules/no-shadow#ignoreoninitialization

Versions

package version
@typescript-eslint/eslint-plugin 5.12.1
@typescript-eslint/parser 5.12.1
TypeScript 4.5.5
ESLint 8.10.0
node 16.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issueenhancement: plugin rule optionNew rule option for an existing eslint-plugin rulepackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions