--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: invalid.ts --- # Input ```ts class B extends A { constructor(foo: number) { super(foo); } } ``` # Diagnostics ``` invalid.ts:2:5 lint/complexity/noUselessConstructor FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ! This constructor is unnecessary. 1 │ class B extends A { > 2 │ constructor(foo: number) { │ ^^^^^^^^^^^^^^^^^^^^^^^^^^ > 3 │ super(foo); > 4 │ } │ ^ 5 │ } 6 │ i Unsafe fix: Remove the unnecessary constructor. 1 1 │ class B extends A { 2 │ - ····constructor(foo:·number)·{ 3 │ - ········super(foo); 4 │ - ····} 5 2 │ } 6 3 │ ```