From a4e9082f8c16aa10ddc413c25ba51372fbc8f59d Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Thu, 22 Jun 2023 11:49:21 +0100 Subject: [PATCH] changelog --- CHANGELOG.md | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a23017212c..f48548a6ad6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,16 +4,26 @@ ### CLI +#### BREAKING CHANGES + +- The CLI now exists with an error then there's an error inside the configuration. + + Previously, rome would raise warnings and continue the execution, by applying its defaults. + + This wasn't ideal for users, because this could have created false positives in linting, or formatted + code with a configuration that wasn't the of the user. + #### Other changes -- Fixes [#4556](https://github.com/rome/tools/issues/4556) using `lines()` to enable OS independent line parsing when processing the .gitignore file. -- Add a new option to ignore unknown files +- Fix [#4556](https://github.com/rome/tools/issues/4556), which correctly handles new lines in the +`.gitignore` file across OS. +- Add a new option to ignore unknown files. ```shell rome format ./src --files-ignore-unknown=true ``` - Doing so, Rome won't emit diagnostics for file that it doesn't know how to handle. + Doing so, Rome won't emit diagnostics for files that doesn't know how to handle. ### Configuration @@ -30,7 +40,7 @@ ``` Doing so, Rome won't emit diagnostics for file that it doesn't know how to handle. -- Add a new `"javascript"` option to support the usafe/experimental +- Add a new `"javascript"` option to support the unsafe/experimental parameter decorators: ```json @@ -42,6 +52,17 @@ parameter decorators: } } ``` +- Add a new `"extends"` option, useful to split the configuration file in +multiple files: + + ```json + { + "extends": ["../sharedFormatter.json", "linter.json"] + } + ``` + + The resolution of the files is file system based, Rome doesn't know how to + resolve dependencies yet. ### Editors @@ -94,7 +115,7 @@ parameter decorators: - The rules [`useExhaustiveDependencies`](https://docs.rome.tools/lint/rules/useexhaustivedependencies/) and [`useHookAtTopLevel`](https://docs.rome.tools/lint/rules/usehookattoplevel/) accept a different shape of options Old configuration - + ```json { "linter": { @@ -115,7 +136,7 @@ parameter decorators: ``` New configuration - + ```json { "linter": {