Closed
Description
What code were you trying to parse?
/* eslint object-shorthand: [1, "always", { avoidExplicitReturnArrows: true }] */
const test = {
key: (arg: () => any) => {}
}
What did you expect to happen?
Autofix result should be
/* eslint object-shorthand: [1, "always", { avoidExplicitReturnArrows: true }] */
const test = {
key(arg: () => any) {}
}
What actually happened?
Autofix gives
/* eslint object-shorthand: [1, "always", { avoidExplicitReturnArrows: true }] */
const test = {
key(arg: () any) => {}
}
Versions
package | version |
---|---|
@typescript-eslint/parser |
1.0.0 |
TypeScript |
3.2.4 |
ESLint |
5.12.1 |
node |
11.7.0 |
npm |
6.5.0 |