no-redeclare
Added in v0.7.0Configuration
rslint.config.ts
Rule Details
This rule disallows declaring the same variable more than once in the same scope.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
builtinGlobals (default: true)
When true, this rule reports redeclarations of ECMAScript built-in globals.
Configured languageOptions.globals also
participate as built-ins. Select host environments with the globals catalog
exported by @rslint/core. Active /* global */ directives participate as
declarations in either mode; a final :off setting removes that inline global.
Set builtinGlobals to false to allow redeclaring built-in global names.