UNPKG

@masknet/eslint-plugin

Version:
39 lines (26 loc) 534 B
<!-- begin title --> # `@masknet/no-redundant-variable` Disallow redundant variable <!-- end title --> ## Rule Details ### :x: Incorrect ```ts async function example() { const foo = "bar"; return foo; } ``` ### :white_check_mark: Correct ```ts async function example() { return "bar"; } ``` ## Attributes <!-- begin attributes --> - [x] :white_check_mark: Recommended - [x] :wrench: Fixable - [ ] :bulb: Suggestions - [ ] :gear: Configurable - [ ] :thought_balloon: Requires type information <!-- end attributes -->