eslint-plugin

@masknet/no-redundant-variable

Disallow redundant variable

Rule Details

:x: Incorrect

async function example() {
  const foo = 'bar'
  return foo
}

:white_check_mark: Correct

async function example() {
  return 'bar'
}

Attributes