chore: format

This commit is contained in:
Anthony Fu
2023-03-30 10:53:36 +02:00
parent e8d73f737e
commit e9193343e8
2 changed files with 4 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ export default createEslintRule<Options, MessageIds>({
: ''
const textBody = body.type === 'BlockStatement'
? code.slice(body.range[0], body.range[1])
: `{ return ${code.slice(body.range[0], body.range[1])} }`
: `{\n return ${code.slice(body.range[0], body.range[1])}\n}`
const textGeneric = arrowFn.typeParameters
? code.slice(arrowFn.typeParameters.range[0], arrowFn.typeParameters.range[1])
: ''