Skip to content

inline-arrow

Inline return statement of arrow function.

Triggers

  • /// inline-arrow
  • /// ia

Examples

ts
/// inline-arrow
const foo = async (msg: string): void => {
  return fn(msg)
}

Will be converted to:

ts
const foo = async (msg: string): void => fn(msg)

Released under the MIT License.