---
source: crates/oxc_linter/src/tester.rs
---
  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:18]
 2 │         function foo(s: string);
 3 │         function foo(n: number);
   ·                  ───
 4 │         type bar = number;
 5 │         function foo(sn: string | number) {}
   ·                  ───
 6 │       }
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:18]
 2 │         function foo(s: string);
 3 │         function foo(n: number);
   ·                  ───
 4 │         let a = 1;
 5 │         function foo(sn: string | number) {}
   ·                  ───
 6 │         foo(a);
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:23]
 1 │ export function foo(s: string);
 2 │       export function foo(n: number);
   ·                       ───
 3 │       export function bar(): void {}
 4 │       export function baz(): void {}
 5 │       export function foo(sn: string | number) {}
   ·                       ───
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:23]
 1 │ export function foo(s: string);
 2 │       export function foo(n: number);
   ·                       ───
 3 │       export type bar = number;
 4 │       export type baz = number | string;
 5 │       export function foo(sn: string | number) {}
   ·                       ───
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:16]
 1 │ function foo(s: string);
 2 │       function foo(n: number);
   ·                ───
 3 │       function bar(): void {}
 4 │       function baz(): void {}
 5 │       function foo(sn: string | number) {}
   ·                ───
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:16]
 1 │ function foo(s: string);
 2 │       function foo(n: number);
   ·                ───
 3 │       type bar = number;
 4 │       type baz = number | string;
 5 │       function foo(sn: string | number) {}
   ·                ───
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:24]
 1 │ declare function foo(s: string);
 2 │       declare function foo(n: number);
   ·                        ───
 3 │       declare function bar(): void;
 4 │       declare function baz(): void;
 5 │       declare function foo(sn: string | number);
   ·                        ───
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:24]
 1 │ declare function foo(s: string);
 2 │       declare function foo(n: number);
   ·                        ───
 3 │       const a = '';
 4 │       const b = '';
 5 │       declare function foo(sn: string | number);
   ·                        ───
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:25]
 2 │         export function foo(s: string): void;
 3 │         export function foo(n: number): void;
   ·                         ───
 4 │         export function bar(): void;
 5 │         export function baz(): void;
 6 │         export function foo(sn: string | number): void;
   ·                         ───
 7 │       }
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "baz" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:5:18]
 4 │         export function foo(sn: string | number): void;
 5 │         function baz(s: string): void;
   ·                  ───
 6 │         export function bar(): void;
 7 │         function baz(n: number): void;
   ·                  ───
 8 │         function baz(sn: string | number): void;
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:25]
 2 │         export function foo(s: string): void;
 3 │         export function foo(n: number): void;
   ·                         ───
 4 │         export function bar(): void;
 5 │         export function baz(): void;
 6 │         export function foo(sn: string | number): void;
   ·                         ───
 7 │       }
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "baz" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:5:18]
 4 │         export function foo(sn: string | number): void;
 5 │         function baz(s: string): void;
   ·                  ───
 6 │         export function bar(): void;
 7 │         function baz(n: number): void;
   ·                  ───
 8 │         function baz(sn: string | number): void;
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:9]
 2 │         foo(s: string): void;
 3 │         foo(n: number): void;
   ·         ───
 4 │         bar(): void;
 5 │         baz(): void;
 6 │         foo(sn: string | number): void;
   ·         ───
 7 │       };
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:10]
 2 │         foo(s: string): void;
 3 │         ['foo'](n: number): void;
   ·          ─────
 4 │         bar(): void;
 5 │         baz(): void;
 6 │         foo(sn: string | number): void;
   ·         ───
 7 │       };
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:9]
 1 │ type Foo = {
 2 │         foo(s: string): void;
   ·         ───
 3 │         name: string;
 4 │         foo(n: number): void;
   ·         ───
 5 │         foo(sn: string | number): void;
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "call" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:9]
 1 │ interface Foo {
 2 │         (s: string): void;
   ·         ──────────────────
 3 │         foo(n: number): void;
 4 │         (n: number): void;
   ·         ──────────────────
 5 │         (sn: string | number): void;
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:9]
 2 │         foo(s: string): void;
 3 │         foo(n: number): void;
   ·         ───
 4 │         bar(): void;
 5 │         baz(): void;
 6 │         foo(sn: string | number): void;
   ·         ───
 7 │       }
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:10]
 2 │         foo(s: string): void;
 3 │         ['foo'](n: number): void;
   ·          ─────
 4 │         bar(): void;
 5 │         baz(): void;
 6 │         foo(sn: string | number): void;
   ·         ───
 7 │       }
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:9]
 2 │         foo(s: string): void;
 3 │         'foo'(n: number): void;
   ·         ─────
 4 │         bar(): void;
 5 │         baz(): void;
 6 │         foo(sn: string | number): void;
   ·         ───
 7 │       }
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:9]
 1 │ interface Foo {
 2 │         foo(s: string): void;
   ·         ───
 3 │         name: string;
 4 │         foo(n: number): void;
   ·         ───
 5 │         foo(sn: string | number): void;
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "baz" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:5:11]
 4 │           baz(s: string): void;
 5 │           baz(n: number): void;
   ·           ───
 6 │           foo(): void;
 7 │           baz(sn: string | number): void;
   ·           ───
 8 │         };
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "new" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:9]
 2 │         new (s: string);
 3 │         new (n: number);
   ·         ───
 4 │         foo(): void;
 5 │         bar(): void;
 6 │         new (sn: string | number);
   ·         ───
 7 │       }
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "new" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:9]
 1 │ interface Foo {
 2 │         new (s: string);
   ·         ───
 3 │         foo(): void;
 4 │         new (n: number);
   ·         ───
 5 │         bar(): void;
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "new" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:9]
 1 │ interface Foo {
 2 │         new (s: string);
   ·         ───
 3 │         foo(): void;
   ╰────
   ╭─[adjacent_overload_signatures.tsx:6:9]
 5 │         bar(): void;
 6 │         new (sn: string | number);
   ·         ───
 7 │       }
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "constructor" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:9]
 2 │         constructor(s: string);
 3 │         constructor(n: number);
   ·         ───────────
 4 │         bar(): void {}
 5 │         baz(): void {}
 6 │         constructor(sn: string | number) {}
   ·         ───────────
 7 │       }
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:9]
 2 │         foo(s: string): void;
 3 │         foo(n: number): void;
   ·         ───
 4 │         bar(): void {}
 5 │         baz(): void {}
 6 │         foo(sn: string | number): void {}
   ·         ───
 7 │       }
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:9]
 2 │         foo(s: string): void;
 3 │         ['foo'](n: number): void;
   ·         ──────
 4 │         bar(): void {}
 5 │         baz(): void {}
 6 │         foo(sn: string | number): void {}
   ·         ───
 7 │       }
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:4:9]
 3 │         "foo"(s: string): void;
 4 │         foo(n: number): void;
   ·         ───
 5 │         bar(): void {}
 6 │         baz(): void {}
 7 │         foo(sn: string | number): void {}
   ·         ───
 8 │       }
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "constructor" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:9]
 1 │ class Foo {
 2 │         constructor(s: string);
   ·         ───────────
 3 │         name: string;
 4 │         constructor(n: number);
   ·         ───────────
 5 │         constructor(sn: string | number) {}
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:9]
 1 │ class Foo {
 2 │         foo(s: string): void;
   ·         ───
 3 │         name: string;
 4 │         foo(n: number): void;
   ·         ───
 5 │         foo(sn: string | number): void {}
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "static foo" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:2:9]
 1 │ class Foo {
 2 │         static foo(s: string): void;
   ·         ──────────
 3 │         name: string;
 4 │         static foo(n: number): void;
   ·         ──────────
 5 │         static foo(sn: string | number): void {}
   ╰────

  ⚠ typescript-eslint(adjacent-overload-signatures): All "#private" signatures should be adjacent.
   ╭─[adjacent_overload_signatures.tsx:3:9]
 2 │         #private(): void;
 3 │         '#private'(): void;
   ·         ──────────
 4 │         #private(arg: number): void {}
 5 │         '#private'(arg: number): void {}
   ·         ──────────
 6 │       }
   ╰────
