Skip to content

Commit

Permalink
add back removed snap
Browse files Browse the repository at this point in the history
  • Loading branch information
todor-a committed May 25, 2024
1 parent 514083c commit af5b277
Showing 1 changed file with 157 additions and 0 deletions.
157 changes: 157 additions & 0 deletions crates/oxc_linter/src/snapshots/consistent_type_definitions.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
---
source: crates/oxc_linter/src/tester.rs
expression: consistent_type_definitions
---
typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:1:1]
1type T = { x: number; };
· ──┬─
· ╰── Use an `interface` instead of a `type`
╰────
help: Use an `interface` instead of a `type`

typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:1:1]
1type T={ x: number; };
· ──┬─
· ╰── Use an `interface` instead of a `type`
╰────
help: Use an `interface` instead of a `type`

typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:1:1]
1type T= { x: number; };
· ──┬─
· ╰── Use an `interface` instead of a `type`
╰────
help: Use an `interface` instead of a `type`

typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:2:11]
1
2export type W<T> = {
· ──┬─
· ╰── Use an `interface` instead of a `type`
3 │ x: T;
╰────
help: Use an `interface` instead of a `type`

⚠ typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:1:1]
1 │ interface T { x: number; }
· ────┬────
· ╰── Use an `type` instead of a `interface`
╰────
help: Use an `type` instead of a `interface`

⚠ typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:1:1]
1 │ interface T{ x: number; }
· ────┬────
· ╰── Use an `type` instead of a `interface`
╰────
help: Use an `type` instead of a `interface`

⚠ typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:1:1]
1 │ interface T { x: number; }
· ────┬────
· ╰── Use an `type` instead of a `interface`
╰────
help: Use an `type` instead of a `interface`

⚠ typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:1:1]
1 │ interface A extends B, C { x: number; };
· ────┬────
· ╰── Use an `type` instead of a `interface`
╰────
help: Use an `type` instead of a `interface`

typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:1:1]
1interface A extends B<T1>, C<T2> { x: number; };
· ────┬────
· ╰── Use an `type` instead of a `interface`
╰────
help: Use an `type` instead of a `interface`

typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:2:11]
1
2export interface W<T> {
· ────┬────
· ╰── Use an `type` instead of a `interface`
3 │ x: T;
╰────
help: Use an `type` instead of a `interface`

typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:3:6]
2 │ namespace JSX {
3interface Array<T> {
· ────┬────
· ╰── Use an `type` instead of a `interface`
4 │ foo(x: (x: number) => T): T[];
╰────
help: Use an `type` instead of a `interface`

typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:3:6]
2 │ global {
3interface Array<T> {
· ────┬────
· ╰── Use an `type` instead of a `interface`
4 │ foo(x: (x: number) => T): T[];
╰────
help: Use an `type` instead of a `interface`

typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:3:6]
2 │ declare global {
3interface Array<T> {
· ────┬────
· ╰── Use an `type` instead of a `interface`
4 │ foo(x: (x: number) => T): T[];
╰────
help: Use an `type` instead of a `interface`

typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:4:8]
3 │ namespace Foo {
4interface Bar {}
· ────┬────
· ╰── Use an `type` instead of a `interface`
5 │ }
╰────
help: Use an `type` instead of a `interface`

typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:2:19]
1 │
2 │ export default interface Test {
· ────┬────
· ╰── Use an `type` instead of a `interface`
3bar(): string;
╰────
help: Use an `type` instead of a `interface`

typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:2:19]
1
2export declare type Test = {
· ──┬─
· ╰── Use an `interface` instead of a `type`
3 │ foo: string;
╰────
help: Use an `interface` instead of a `type`

⚠ typescript-eslint(consistent-type-definitions):
╭─[consistent_type_definitions.tsx:2:19]
1 │
2 │ export declare interface Test {
· ────┬────
· ╰── Use an `type` instead of a `interface`
3foo: string;
╰────
help: Use an `type` instead of a `interface`

0 comments on commit af5b277

Please sign in to comment.