Skip to content

Commit 6f1e2c5

Browse files
committed
Make ESLint happier
1 parent 0c55548 commit 6f1e2c5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

game-scripts-tests/this_in_lambda_in_object.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1+
// Since this is the thing being tested, we need to disable the ESLint rule instead.
2+
/* eslint-disable object-shorthand */
3+
14
export default ({ expect }: typeof import('vitest')) => {
25
const myObject = {
36
a: 0,
4-
// Since this is the thing being tested, we need to disable the ESLint rule instead.
5-
/* eslint-disable object-shorthand */
67
b: function () {
78
this.a++
89
return this.a
910
},
10-
/* eslint-disable object-shorthand */
1111
c: function (value: number = this.a) {
1212
this.a = value + 1
1313
},
14-
/* eslint-disable object-shorthand */
1514
d: function ({ value = this.a }: { value?: number }) {
1615
this.a = value + 1
1716
}

0 commit comments

Comments
 (0)