Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/oxlint/fixtures/tsgolint/await-thenable.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
await 12;
12 changes: 0 additions & 12 deletions apps/oxlint/fixtures/tsgolint/await-thenable/index.ts

This file was deleted.

2 changes: 2 additions & 0 deletions apps/oxlint/fixtures/tsgolint/no-array-delete.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const arr: number[];
delete arr[0];
4 changes: 0 additions & 4 deletions apps/oxlint/fixtures/tsgolint/no-array-delete/index.ts

This file was deleted.

1 change: 1 addition & 0 deletions apps/oxlint/fixtures/tsgolint/no-base-to-string.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
({}).toString();
9 changes: 0 additions & 9 deletions apps/oxlint/fixtures/tsgolint/no-base-to-string/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare function bar(): void;
const foo = () => void bar();

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type T1 = 'A' | 'A';

This file was deleted.

2 changes: 2 additions & 0 deletions apps/oxlint/fixtures/tsgolint/no-floating-promises.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const promise = new Promise((resolve, _reject) => resolve("value"));
promise;
14 changes: 0 additions & 14 deletions apps/oxlint/fixtures/tsgolint/no-floating-promises/index.ts

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions apps/oxlint/fixtures/tsgolint/no-floating-promises/src/index.ts

This file was deleted.

This file was deleted.

4 changes: 4 additions & 0 deletions apps/oxlint/fixtures/tsgolint/no-for-in-array.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const arr = [1, 2, 3];
for (const i in arr) {
console.log(arr[i]);
}
11 changes: 0 additions & 11 deletions apps/oxlint/fixtures/tsgolint/no-for-in-array/index.ts

This file was deleted.

1 change: 1 addition & 0 deletions apps/oxlint/fixtures/tsgolint/no-implied-eval.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
setTimeout('alert("Hi!");', 100);
13 changes: 0 additions & 13 deletions apps/oxlint/fixtures/tsgolint/no-implied-eval/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function foo(): void {
return;
}
void foo();

This file was deleted.

2 changes: 2 additions & 0 deletions apps/oxlint/fixtures/tsgolint/no-misused-spread.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const promise: Promise<number>;
const spreadPromise = { ...promise };
11 changes: 0 additions & 11 deletions apps/oxlint/fixtures/tsgolint/no-misused-spread/index.ts

This file was deleted.

4 changes: 4 additions & 0 deletions apps/oxlint/fixtures/tsgolint/no-mixed-enums.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
enum Status {
Open = 1,
Closed = 'closed',
}
13 changes: 0 additions & 13 deletions apps/oxlint/fixtures/tsgolint/no-mixed-enums/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type T1 = string | unknown;

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare const someCondition: boolean;
if (someCondition === true) {
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
const str1 = `Hello world`;

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function identity<T = string>(arg: T): T {
return arg;
}
const result = identity<string>('hello');

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
const str: string = 'hello';
const redundant = str as string;

This file was deleted.

3 changes: 3 additions & 0 deletions apps/oxlint/fixtures/tsgolint/no-unsafe-argument.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
declare const anyValue: any;
function takesString(str: string): void {}
takesString(anyValue);
12 changes: 0 additions & 12 deletions apps/oxlint/fixtures/tsgolint/no-unsafe-argument/index.ts

This file was deleted.

2 changes: 2 additions & 0 deletions apps/oxlint/fixtures/tsgolint/no-unsafe-assignment.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const anyValue: any;
const str: string = anyValue;
12 changes: 0 additions & 12 deletions apps/oxlint/fixtures/tsgolint/no-unsafe-assignment/index.ts

This file was deleted.

2 changes: 2 additions & 0 deletions apps/oxlint/fixtures/tsgolint/no-unsafe-call.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const anyValue: any;
anyValue();
12 changes: 0 additions & 12 deletions apps/oxlint/fixtures/tsgolint/no-unsafe-call/index.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
// Examples of incorrect code for no-unsafe-enum-comparison rule

enum Status {
Open = 'open',
Closed = 'closed',
}

enum Color {
Red = 'red',
Blue = 'blue',
}

// Comparing different enums
const comparison = Status.Open === Color.Red;
2 changes: 2 additions & 0 deletions apps/oxlint/fixtures/tsgolint/no-unsafe-member-access.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
declare const anyValue: any;
anyValue.foo;
Loading
Loading