[indent] Multiline type declaration with arrow functions and implicit return results in indent error #398
Labels
bug
Something isn't working
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Milestone
Defining
type
with multiline arrow function with implicit return causes falsy indent error.Repro
Expected Result
Expect (arrow function)
type
declarations behave identically to (arrow function)const
declarations when using implicit return.Actual Result
First test case (
SomeType
) throws indent error, seemingly not respecting set indent rules.Same rule demonstrated to work with
const
.Additional Info
If the same "arrow function logic" doesn't apply here when indenting , make it clear what does.
Versions
@typescript-eslint/eslint-plugin
1.5.0
@typescript-eslint/parser
1.5.0
TypeScript
3.4.0
ESLint
5.16.0
node
10.13.0
npm
6.4.1
The text was updated successfully, but these errors were encountered: