You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I also ran into this situation where Prettier puts the implements keyword on its own line which causes this lint rule to fail at the line constructor() { }.
interface SomeInterface {
name: string;
}
export class SomeClass
implements SomeInterface {
constructor() { }
name = 'test';
}
The text was updated successfully, but these errors were encountered:
I worked alongside @seangwright on a project we really felt the pain of this issue on. I've updated our packages and can confirm this has been resolved. Thank you, @chinchiheather much appreciated!
Prettier formats some generic type definitions by placing the generic constraints on multiple lines.
This causes tslint-lines-between-class-members to fail linting.
The error is
must have 1 new line(s) between class methods, see docs for how to configure
which appears on theconstructor() {
line.I believe this is due to how you are checking the previous line.
Passes
Fails
I also ran into this situation where Prettier puts the
implements
keyword on its own line which causes this lint rule to fail at the lineconstructor() { }
.The text was updated successfully, but these errors were encountered: