chinchiheather / tslint-lines-between-class-members

Custom rule for TSLint to enforce blank lines between class methods - achieves a similar thing to lines-between-class-members in ESLint
18 stars 5 forks source link

Error if there is a comment above the class #7

Closed enessoylu closed 6 years ago

enessoylu commented 6 years ago

I am getting an error if there is a comment above the class definition. If I log the previousLine in this case, I see that it calculates the previousLine wrongly. Please look:

bug

chinchiheather commented 6 years ago

Thanks for raising this @enessoylu , also nice screenshot gifs! Really helpful :) This should now be fixed, I released a new version 1.2.4