This rule disallows the use of "fat arrows" (=>
) when they are not necessary (i.e. the function body doesn't reference this
/@
)
###eslint coffee/no-unnecessary-fat-arrow: ["error"]###
=>
(b) =>
-> b
class A
b: => doSomething()
###eslint coffee/no-unnecessary-fat-arrow: ["error"]###
=> @doSomething()
(@b) =>
-> this
class A
b: =>
@c()