Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 637 Bytes

File metadata and controls

36 lines (26 loc) · 637 Bytes

coffee/no-private-function-fat-arrows

This rule disallows using fat arrows (=>) for "private" functions in class bodies since they have no effect

👎 Examples of incorrect code for this rule:

###eslint coffee/no-private-function-fat-arrows: "error"###

class Foo
  foo = =>
  foo()
  
class Bar
  foo = ->
    class
      foo = =>

👍 Examples of correct code for this rule:

###eslint coffee/no-private-function-fat-arrows: "error"###

class Foo
  foo = ->
  foo()
  
class Foo
  foo: =>

class Foo
  foo: ->
    bar = =>
    bar()