coffeelint-no-operation-expression
Version:
Coffeelint rule that detects code that doesn't do anything
32 lines (25 loc) • 340 B
text/coffeescript
class Snake
c: 77
move: (asdf)->
good = 777
alert "#{a()},#{777}"
return
d:
aaaa: ()->
66666
return
bbbb: 7777
class SASFD
b: ()->
alert 'good'
'bad'
6666
return 777
a: ()->
alert 'good'
return
if 777
666
()->666
good = if 777 then 777 else 777
expect(a).to.be.null