Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: update snapshots #5199

Merged
merged 1 commit into from
Feb 25, 2025
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: crates/biome_js_analyze/tests/spec_tests.rs
expression: invalidExplicit.js
snapshot_kind: text
---
# Input
```js
Expand Down Expand Up @@ -31,7 +32,7 @@ const invalidExplicit = {
```
invalidExplicit.js:3:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Do not use explicit object property syntax when shorthand syntax is possible.
× Do not use explicit object property syntax when shorthand syntax is possible.

1 │ const invalidExplicit = {
2 │ // Basic property shorthand violations
Expand All @@ -48,7 +49,7 @@ invalidExplicit.js:3:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidExplicit.js:4:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Do not use explicit object property syntax when shorthand syntax is possible.
× Do not use explicit object property syntax when shorthand syntax is possible.

2 │ // Basic property shorthand violations
3 │ foo: foo,
Expand All @@ -65,7 +66,7 @@ invalidExplicit.js:4:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidExplicit.js:5:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Do not use explicit object property syntax when shorthand syntax is possible.
× Do not use explicit object property syntax when shorthand syntax is possible.

3 │ foo: foo,
4 │ bar: bar,
Expand All @@ -82,7 +83,7 @@ invalidExplicit.js:5:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidExplicit.js:8:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Do not use explicit object property syntax when shorthand syntax is possible.
× Do not use explicit object property syntax when shorthand syntax is possible.

7 │ // Method shorthand violations
> 8 │ method: function () { return "method"; },
Expand All @@ -98,7 +99,7 @@ invalidExplicit.js:8:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidExplicit.js:9:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Do not use explicit object property syntax when shorthand syntax is possible.
× Do not use explicit object property syntax when shorthand syntax is possible.

7 │ // Method shorthand violations
8 │ method: function () { return "method"; },
Expand All @@ -115,7 +116,7 @@ invalidExplicit.js:9:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidExplicit.js:10:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Do not use explicit object property syntax when shorthand syntax is possible.
× Do not use explicit object property syntax when shorthand syntax is possible.

8 │ method: function () { return "method"; },
9 │ async: async function () { return "async"; },
Expand All @@ -132,7 +133,7 @@ invalidExplicit.js:10:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidExplicit.js:11:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Do not use explicit object property syntax when shorthand syntax is possible.
× Do not use explicit object property syntax when shorthand syntax is possible.

9 │ async: async function () { return "async"; },
10 │ generator: function* () { yield "gen"; },
Expand All @@ -149,7 +150,7 @@ invalidExplicit.js:11:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidExplicit.js:14:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Do not use explicit object property syntax when shorthand syntax is possible.
× Do not use explicit object property syntax when shorthand syntax is possible.

13 │ // Computed methods shorthand violations
> 14 │ [computed]: function () { return "computed"; },
Expand All @@ -165,7 +166,7 @@ invalidExplicit.js:14:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidExplicit.js:15:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Do not use explicit object property syntax when shorthand syntax is possible.
× Do not use explicit object property syntax when shorthand syntax is possible.

13 │ // Computed methods shorthand violations
14 │ [computed]: function () { return "computed"; },
Expand All @@ -182,7 +183,7 @@ invalidExplicit.js:15:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidExplicit.js:16:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Do not use explicit object property syntax when shorthand syntax is possible.
× Do not use explicit object property syntax when shorthand syntax is possible.

14 │ [computed]: function () { return "computed"; },
15 │ [computed]: async function () { return "async computed"; },
Expand All @@ -199,7 +200,7 @@ invalidExplicit.js:16:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidExplicit.js:17:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Do not use explicit object property syntax when shorthand syntax is possible.
× Do not use explicit object property syntax when shorthand syntax is possible.

15 │ [computed]: async function () { return "async computed"; },
16 │ [computed]: function* () { yield "computed gen"; },
Expand All @@ -216,7 +217,7 @@ invalidExplicit.js:17:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidExplicit.js:18:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Do not use explicit object property syntax when shorthand syntax is possible.
× Do not use explicit object property syntax when shorthand syntax is possible.

16 │ [computed]: function* () { yield "computed gen"; },
17 │ ["computed-string"]: function () { return "computed string"; },
Expand All @@ -233,7 +234,7 @@ invalidExplicit.js:18:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidExplicit.js:19:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

! Do not use explicit object property syntax when shorthand syntax is possible.
× Do not use explicit object property syntax when shorthand syntax is possible.

17 │ ["computed-string"]: function () { return "computed string"; },
18 │ ["comp" + "uted" + "-con" + "cat"]: function () { return "computed concat"; },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
source: crates/biome_js_analyze/tests/spec_tests.rs
expression: invalidShorthand.js
snapshot_kind: text
---
# Input
```js
Expand Down Expand Up @@ -35,7 +36,7 @@ const invalidShorthand = {
```
invalidShorthand.js:3:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
1 │ const invalidShorthand = {
2 │ // Basic property explicit violations
Expand All @@ -52,7 +53,7 @@ invalidShorthand.js:3:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:4:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
2 │ // Basic property explicit violations
3 │ prop,
Expand All @@ -69,7 +70,7 @@ invalidShorthand.js:4:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:7:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
6 │ // Method explicit violations
> 7 │ method() { return "method"; },
Expand All @@ -85,7 +86,7 @@ invalidShorthand.js:7:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:8:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
6 │ // Method explicit violations
7 │ method() { return "method"; },
Expand All @@ -102,7 +103,7 @@ invalidShorthand.js:8:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:9:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
7 │ method() { return "method"; },
8 │ async async() { return "async"; },
Expand All @@ -119,7 +120,7 @@ invalidShorthand.js:9:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:10:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
8 │ async async() { return "async"; },
9 │ *generator() { yield "gen"; },
Expand All @@ -136,7 +137,7 @@ invalidShorthand.js:10:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:13:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
12 │ // Computed methods
> 13 │ [computed]() { return "computed"; },
Expand All @@ -152,7 +153,7 @@ invalidShorthand.js:13:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:14:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
12 │ // Computed methods
13 │ [computed]() { return "computed"; },
Expand All @@ -169,7 +170,7 @@ invalidShorthand.js:14:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:15:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
13 │ [computed]() { return "computed"; },
14 │ async [computed]() { return "async computed"; },
Expand All @@ -186,7 +187,7 @@ invalidShorthand.js:15:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:16:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
14 │ async [computed]() { return "async computed"; },
15 │ *[computed]() { yield "computed gen"; },
Expand All @@ -203,7 +204,7 @@ invalidShorthand.js:16:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:17:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
15 │ *[computed]() { yield "computed gen"; },
16 │ ["computed-string"]() { return "computed string"; },
Expand All @@ -220,7 +221,7 @@ invalidShorthand.js:17:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:18:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
16 │ ["computed-string"]() { return "computed string"; },
17 │ ["comp" + "uted" + "-con" + "cat"]() { return "computed concat"; },
Expand All @@ -237,7 +238,7 @@ invalidShorthand.js:18:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:21:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
20 │ // String literal methods
> 21 │ 'quotedMethod'() { return "quoted"; },
Expand All @@ -253,7 +254,7 @@ invalidShorthand.js:21:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:22:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
20 │ // String literal methods
21 │ 'quotedMethod'() { return "quoted"; },
Expand All @@ -270,7 +271,7 @@ invalidShorthand.js:22:5 lint/nursery/useConsistentObjectDefinition ━━━━
```
invalidShorthand.js:23:5 lint/nursery/useConsistentObjectDefinition ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
! Do not use shorthand object property syntax.
× Do not use shorthand object property syntax.
21 │ 'quotedMethod'() { return "quoted"; },
22 │ "doubleQuoted"() { return "double quoted"; },
Expand Down
Loading