Skip to content

Commit acf9e46

Browse files
committed
Make the linter happy
1 parent 6f8bf68 commit acf9e46

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

game-scripts-tests/this_array_in_object.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default ({ expect }: typeof import('vitest')) => {
33
0: `test[0]`,
44
foo: [
55
function () {
6-
// @ts-ignore
6+
// @ts-expect-error
77
return this[0]
88
}
99
],

game-scripts-tests/this_in_default_argument.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default ({ expect }: typeof import('vitest')) => {
22
class Foo {
3-
declare foo: number;
3+
declare foo: number
44

55
constructor() {
66
this.foo = 1
@@ -20,13 +20,13 @@ export default ({ expect }: typeof import('vitest')) => {
2020
bar() {
2121
return 2
2222
},
23-
// @ts-ignore
23+
// @ts-expect-error
2424
baz(a = this.foo, b = this.bar()) {
2525
return a + b
2626
}
2727
}
2828

29-
const foo = new Foo();
29+
const foo = new Foo()
3030
expect(foo.baz(3, 4)).toBe(7) // Is this the real life?
3131
expect(foo.baz()).toBe(3) // Is this just fantasy?
3232

0 commit comments

Comments
 (0)