Closed patrickreck closed 6 years ago
Hi @patrickreck not sure I understand what you mean?
I tried running linting on your example and I don't see any errors which seems correct to me
Closing issue as haven't heard anything, happy to reopen if more info is provided
Hi @chinchiheather,
I provided a bad example, sorry. The following example are failing:
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html'
})
export class AppComponent implements OnInit {
constructor() {
}
ngOnInit() {
}
}
Hmm I still don't reproduce the error. Can you let me know what version of typescript/tslint you are using? I did manage to get an error if that line between the 2 functions has 2 space indentation, but your example doesn't have this so I'm not sure if it is the same issue?
There is no spaces on the empty line in the failing example.
I am using typescript@2.6.2
, tslint@5.8.0
and tslint-lines-between-class-members@1.0.4
.
ERROR: /Users/preck/client/src/app/app.component.ts[13, 3]: must have blank line between class methods
I still can't reproduce 😢 , can you paste your tslint.json config file in? Maybe it only happens when combined with some other rules
I have released a new version (1.0.5) which fixes something else, but it is probably worth having a look to see if it fixes your problem as well
Closing issue as have not heard anything in a while
ngOnInit
does not have a line break between class members according to the rule.