eslint-plugin-sonarjs
Version:
SonarJS rules for ESLint
12 lines (6 loc) ⢠463 B
Markdown
# sonarjs/prefer-immediate-return
š Local variables should not be declared and then immediately returned or thrown.
š« This rule is _disabled_ in the ā
`recommended` config.
š§ This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
š This rule requires [type information](https://typescript-eslint.io/linting/typed-linting).
<!-- end auto-generated rule header -->