From e2bb07b0ac1c002ec29fba336f07b8204e0945b3 Mon Sep 17 00:00:00 2001 From: Victorien Elvinger Date: Fri, 16 Jun 2023 12:45:57 +0200 Subject: [PATCH] docs: update CHANGELOG --- CHANGELOG.md | 107 ++++++++++++++++++++++++++++----------------------- 1 file changed, 58 insertions(+), 49 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6d2a7ba5ff..056c946433d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ ```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. ### Configuration @@ -29,72 +30,81 @@ Doing so, Rome won't emit diagnostics for file that it doesn't know how to handle. ### Editors + ### Formatter - Added a new option called `--jsx-quote-style` to the formatter. This option allows you to choose between single and double quotes for JSX attributes. [#4486](https://github.com/rome/tools/issues/4486) ### Linter -- Fix a crash in the `NoParameterAssign` rule that occurred when there was a bogus binding. [#4323](https://github.com/rome/tools/issues/4323) - -#### Other changes +#### BREAKING CHANGES -- `noRedeclare`: allow redeclare of index signatures are in different type members [#4478](https://github.com/rome/tools/issues/4478) -- 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 +- Remove `lint/complexity/noExtraSEmicolon` ([#4553](https://github.com/rome/tools/issues/4553)) -Old configuration + The _Rome_ formatter takes care of removing extra semicolons. + Thus, there is no need for this rule. -```json -{ - "linter": { - "rules": { - "nursery": { - "useExhaustiveDependencies": { - "level": "error", - "options": { - "hooks": [ - ["useMyEffect", 0, 1] - ] - } - } - } - } - } -} -``` +#### Other changes -New configuration +- `noRedeclare`: allow redeclare of index signatures are in different type members [#4478](https://github.com/rome/tools/issues/4478) -```json -{ - "linter": { - "rules": { - "nursery": { - "useExhaustiveDependencies": { - "level": "error", - "options": { - "hooks": [ - { - "name": "useMyEffect", - "closureIndex": 0, - "dependenciesIndex": 1 - } - ] - } - } - } - } - } -} -``` +- Fix a crash in the `NoParameterAssign` rule that occurred when there was a bogus binding. [#4323](https://github.com/rome/tools/issues/4323) +- 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": { + "rules": { + "nursery": { + "useExhaustiveDependencies": { + "level": "error", + "options": { + "hooks": [ + ["useMyEffect", 0, 1] + ] + } + } + } + } + } + } + ``` + + New configuration + + ```json + { + "linter": { + "rules": { + "nursery": { + "useExhaustiveDependencies": { + "level": "error", + "options": { + "hooks": [ + { + "name": "useMyEffect", + "closureIndex": 0, + "dependenciesIndex": 1 + } + ] + } + } + } + } + } + } + ``` ### Parser + ### VSCode + ### JavaScript APIs + ## 12.1.3 ### CLI @@ -120,7 +130,6 @@ was defined [#4479](https://github.com/rome/tools/issues/4479) - Fix false positive diagnostics ([#4483](https://github.com/rome/tools/issues/4483)) that [`useHookAtTopLevel`](https://docs.rome.tools/lint/rules/usehookattoplevel/) caused to returning call expressions of a hook. - Revert [#4359](https://github.com/rome/tools/issues/4359) -- Remove `lint/complexity/noExtraSEmicolon` ([#4553](https://github.com/rome/tools/issues/4553)) ### Parser