block-scoped-var
Added in v0.8.1Configuration
rslint.config.ts
Rule Details
The block-scoped-var rule generates warnings when variables are used outside of the block in which they were defined. This emulates C-style block scope.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
This rule has no options.