clutchski / coffeelint

Lint your CoffeeScript.
http://www.coffeelint.org
Other
1.18k stars 172 forks source link

False positives for no_implicit_braces with @-prefixed class name #605

Closed provegard closed 6 years ago

provegard commented 7 years ago

I have the following code:

class @LinkedList
  constructor: ->
    @head = @tail = null

I lint with the following config:

{
  "no_implicit_braces": {
    "level": "warn"
  }
}

And I get:

#2: Implicit braces are forbidden.

I.e. on the line with constructor: ->

But there are no implicit braces in the code.