File tree Expand file tree Collapse file tree
crates/biome_migrate/tests/specs/migrations/recommended Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments