diff --git a/crates/rome_cli/tests/commands/format.rs b/crates/rome_cli/tests/commands/format.rs index a245c95d5af..b60746011fc 100644 --- a/crates/rome_cli/tests/commands/format.rs +++ b/crates/rome_cli/tests/commands/format.rs @@ -1618,7 +1618,7 @@ fn ignore_comments_error_when_allow_comments() { { "json": { - "allow_comments": ["*.json"] + "allowComments": ["*.json"] } } diff --git a/crates/rome_cli/tests/snapshots/main_commands_format/ignore_comments_error_when_allow_comments.snap b/crates/rome_cli/tests/snapshots/main_commands_format/ignore_comments_error_when_allow_comments.snap index 71a50804931..a3c705fb86f 100644 --- a/crates/rome_cli/tests/snapshots/main_commands_format/ignore_comments_error_when_allow_comments.snap +++ b/crates/rome_cli/tests/snapshots/main_commands_format/ignore_comments_error_when_allow_comments.snap @@ -7,7 +7,7 @@ expression: content ```json { "json": { - "allow_comments": ["*.json"] + "allowComments": ["*.json"] } } ``` @@ -22,34 +22,6 @@ expression: content # Emitted Messages -```block -Found errors in the configuration file, Rome will use its defaults for the sections that are incorrect. -``` - -```block -rome.json:4:3 deserialize ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ - - ! Found an unknown key `json`. - - 3 │ { - > 4 │ "json": { - │ ^^^^^^ - 5 │ "allow_comments": ["*.json"] - 6 │ } - - i Accepted keys - - - vcs - - files - - linter - - formatter - - javascript - - $schema - - organizeImports - - -``` - ```block tsconfig.json format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ diff --git a/crates/rome_service/src/configuration/mod.rs b/crates/rome_service/src/configuration/mod.rs index bd411477603..da5045c46a9 100644 --- a/crates/rome_service/src/configuration/mod.rs +++ b/crates/rome_service/src/configuration/mod.rs @@ -116,6 +116,7 @@ impl Configuration { "javascript", "$schema", "organizeImports", + "json", ]; pub fn is_formatter_disabled(&self) -> bool { self.formatter