Files
test-repo/tests/js/class-extends/complex.js
T
Sosuke Suzuki c7a3c16f7d Improve visual separation between header and body in classes with multiline headers (#10085)
* Add hardline for a class whose extends part is broken

refactor

Use groupId

Remove isPreviousLineEmpty

* Avoid leading comments

* Rename to heritage

* Add heuristic for implements

* Fix lint problems

* Fix

Fix

Fix

* Extract getGroupId patterns

* Adopots solution 2

* Fix

* Fix lint problem

* Add changelog

* Address reviews

* Update tests

* Rename to createGroupIdMapper

* Split files

* Add tests for complex extends

* Fix changelog
2021-01-20 15:01:16 +09:00

18 lines
490 B
JavaScript

class loooooooooooooooooooong1 extends foooooooo(foooooooo(foooooooo(foooooooo(foooooooo(foooooooo(foooooooo(foooooooo()))))))) {}
class loooooooooooooooooooong2 extends function (make, model, year, owner) {
this.make = make;
this.model = model;
this.year = year;
this.owner = owner;
} {}
class loooooooooooooooooooong3 extends class {
cconstructor(make, model, year, owner) {
this.make = make;
this.model = model;
this.year = year;
this.owner = owner;
}
} {}