Closed DylanVann closed 5 years ago
This is considered an arrow:
const myObject = { get myVal() { return something() }, }
The fix will convert it to:
const myObject = { get myVal: () => something(), }
Which is not valid.
Thanks for the report! This has been fixed in https://github.com/TristonJ/eslint-plugin-prefer-arrow/commit/384bc9db8452e52a8613b2675f6706184b976e5b and pushed to npm as a patch.
Awesome, thank you @TristonJ !
This is considered an arrow:
The fix will convert it to:
Which is not valid.