Rule: arrow-return-shorthand

Suggests to convert () => { return x; } to () => x.

Rationale

It’s unnecessary to include return and {} brackets in arrow lambdas. Leaving them out results in simpler and easier to read code.

Notes:
Has Fixer

Config

If multiline is specified, then this will warn even if the function spans multiple lines.

Config examples
"arrow-return-shorthand": true
"arrow-return-shorthand": [true, "multiline"]
Schema
{
  "type": "string",
  "enum": [
    "multiline"
  ]
}