Skip to content

Commit a888bd0

Browse files
committed
test(migrate): use spaces in recommended fixture
1 parent 1aba85d commit a888bd0

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"linter": {
3-
"rules": {
4-
// keep this comment before the key
5-
"recommended" /* keep this comment after the key */: true
6-
}
7-
}
2+
"linter": {
3+
"rules": {
4+
// keep this comment before the key
5+
"recommended" /* keep this comment after the key */: true
6+
}
7+
}
88
}

crates/biome_migrate/tests/specs/migrations/recommended/trivia.jsonc.snap

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@ expression: trivia.jsonc
55
# Input
66
```json
77
{
8-
"linter": {
9-
"rules": {
10-
// keep this comment before the key
11-
"recommended" /* keep this comment after the key */: true
12-
}
13-
}
8+
"linter": {
9+
"rules": {
10+
// keep this comment before the key
11+
"recommended" /* keep this comment after the key */: true
12+
}
13+
}
1414
}
1515
1616
```
1717

1818
# Diagnostics
1919
```
20-
trivia.jsonc:5:4 migrate FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
20+
trivia.jsonc:5:7 migrate FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
2121
2222
! The recommended option is deprecated.
2323
24-
3 │ "rules": {
25-
4 // keep this comment before the key
26-
> 5 "recommended" /* keep this comment after the key */: true
27-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28-
6 }
29-
7 │ }
24+
3 │ "rules": {
25+
4 // keep this comment before the key
26+
> 5 "recommended" /* keep this comment after the key */: true
27+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28+
6 }
29+
7 │ }
3030
3131
i Safe fix: Use the new preset field instead.
3232
3333
3 3 │ "rules": {
3434
4 4// keep this comment before the key
35-
5- → → → "recommended"·/*·keep·this·comment·after·the·key·*/true
36-
5+ → → → "preset"·/*·keep·this·comment·after·the·key·*/"recommended"
35+
5- ······"recommended"·/*·keep·this·comment·after·the·key·*/true
36+
5+ ······"preset"·/*·keep·this·comment·after·the·key·*/"recommended"
3737
6 6}
3838
7 7 │ }
3939

0 commit comments

Comments
 (0)