From 21a808f2f310c091ef1ffa1a5738adef914fbdf5 Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Sat, 11 Mar 2023 03:37:32 +0000 Subject: [PATCH] more changes --- CHANGELOG.md | 10 +++++++--- CONTRIBUTING.md | 4 ++-- website/src/pages/cli.mdx | 2 ++ website/src/pages/internals/language_support.mdx | 2 +- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c88ca918660..c0ad7d82b57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,8 +82,15 @@ The previous example will enable all rules and disable all rules that belong to ##### Other changes +- Add support to display diagnostics for JSON files +- Add support to format JSON files + ### Formatter + +- Add support to format JSON files + ### Linter + ### Parser - Support for TypeScript 4.7 @@ -94,9 +101,6 @@ The previous example will enable all rules and disable all rules that belong to - Add a new option called `requireConfiguration`. Enabling this option will force Rome to require a configuration file in your workspace/project. If Rome doesn't find a `rome.json` file, it won't emit diagnostics. -- - -### JavaScript APIs ## 11.0.0 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bdea6e91fe1..3e8d39d8ed2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -241,9 +241,9 @@ Here's a sample of the headings: If you're editing a blank section: -- If your PR is adding a **breaking change**, create a new heading called `#### BREAKING CHANGES` and add +- If your PR adds a **breaking change**, create a new heading called `#### BREAKING CHANGES` and add bullet point that explains the breaking changes; provide a migration path if possible. -- If your PR is adding a new feature of a fix, create a new heading called `#### Other changes` and +- If your PR adds a new feature of a fix, create a new heading called `#### Other changes` and add a bullet point that explains the fix or the new feature. Make sure that this new heading appears after the `#### BREAKING CHANGES` heading. diff --git a/website/src/pages/cli.mdx b/website/src/pages/cli.mdx index e6a605ce8f6..ad7f1d5dac6 100644 --- a/website/src/pages/cli.mdx +++ b/website/src/pages/cli.mdx @@ -77,6 +77,8 @@ Tell Rome in which path to find the configuration file `rome.json`. > **Warning**: when passing `--config-path`, the auto discovery of the `rome.json` file is disabled. +If Rome doesn't find a `rome.json`, it will abort the operation and exit with and error code. + ## Global Options diff --git a/website/src/pages/internals/language_support.mdx b/website/src/pages/internals/language_support.mdx index 84d763d1328..1fe49921205 100644 --- a/website/src/pages/internals/language_support.mdx +++ b/website/src/pages/internals/language_support.mdx @@ -27,6 +27,6 @@ Rome supports only the official syntax. The team starts development of the new s ## TypeScript support -Rome supports TypeScript version 4.6. +Rome supports TypeScript version 4.7. Rome can handle programs using decorators but doesn't support formatting or linting decorators.