We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c55548 commit 6f1e2c5Copy full SHA for 6f1e2c5
game-scripts-tests/this_in_lambda_in_object.ts
@@ -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
+
4
export default ({ expect }: typeof import('vitest')) => {
5
const myObject = {
6
a: 0,
- // Since this is the thing being tested, we need to disable the ESLint rule instead.
- /* eslint-disable object-shorthand */
7
b: function () {
8
this.a++
9
return this.a
10
},
11
c: function (value: number = this.a) {
12
this.a = value + 1
13
14
15
d: function ({ value = this.a }: { value?: number }) {
16
17
}
0 commit comments