--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/module/class/class.js --- # Input ```js class Foo extends Boar { static { // some comment this.a = "test"; } constructor(aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, c = d) { super(); } static get sg() { } get g() { } set gg(a) { } method() { return "ipsum"; } async asyncMethod() {} * generatorMethod (){} static staticMethod() { return "bar" } async * asyncGeneratorMethod (){} static async staticAsyncMethod (){} static * staticGeneratorMethod (){} static async *staticAsyncGeneratorMethod() {} static foo; new_prop = 5 #a = b double_semicolon = [5,3,4];; } x = class { } x = class foo extends Boar { } x = class aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa extends bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb { } export class Task { constructor( script, duration, threadCount, ...args ) { this.args = args; } } ``` ============================= # Outputs ## Output 1 ----- Indent style: Tab Line width: 80 Quote style: Double Quotes Quote properties: As needed Trailing comma: All Semicolons: Always ----- ```js class Foo extends Boar { static { // some comment this.a = "test"; } constructor( aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa, bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb, c = d, ) { super(); } static get sg() {} get g() {} set gg(a) {} method() { return "ipsum"; } async asyncMethod() {} *generatorMethod() {} static staticMethod() { return "bar"; } async *asyncGeneratorMethod() {} static async staticAsyncMethod() {} static *staticGeneratorMethod() {} static async *staticAsyncGeneratorMethod() {} static foo; new_prop = 5; #a = b; double_semicolon = [5, 3, 4]; } x = class {}; x = class foo extends Boar {}; x = class aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa extends ( bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb ) {}; export class Task { constructor(script, duration, threadCount, ...args) { this.args = args; } } ```