From acf9e46431b6da9df8d47733aaa6cd0082abcf95 Mon Sep 17 00:00:00 2001 From: SarahIsWeird Date: Tue, 18 Feb 2025 17:05:04 +0100 Subject: [PATCH] Make the linter happy --- game-scripts-tests/this_array_in_object.ts | 2 +- game-scripts-tests/this_in_default_argument.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/game-scripts-tests/this_array_in_object.ts b/game-scripts-tests/this_array_in_object.ts index 8f4f347..596060e 100644 --- a/game-scripts-tests/this_array_in_object.ts +++ b/game-scripts-tests/this_array_in_object.ts @@ -3,7 +3,7 @@ export default ({ expect }: typeof import('vitest')) => { 0: `test[0]`, foo: [ function () { - // @ts-ignore + // @ts-expect-error return this[0] } ], diff --git a/game-scripts-tests/this_in_default_argument.ts b/game-scripts-tests/this_in_default_argument.ts index fc378b7..f7d0de5 100644 --- a/game-scripts-tests/this_in_default_argument.ts +++ b/game-scripts-tests/this_in_default_argument.ts @@ -1,6 +1,6 @@ export default ({ expect }: typeof import('vitest')) => { class Foo { - declare foo: number; + declare foo: number constructor() { this.foo = 1 @@ -20,13 +20,13 @@ export default ({ expect }: typeof import('vitest')) => { bar() { return 2 }, - // @ts-ignore + // @ts-expect-error baz(a = this.foo, b = this.bar()) { return a + b } } - const foo = new Foo(); + const foo = new Foo() expect(foo.baz(3, 4)).toBe(7) // Is this the real life? expect(foo.baz()).toBe(3) // Is this just fantasy? -- knotmirror 0.0.1