Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
docs: update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
Conaclos committed Jun 16, 2023
1 parent aea9efc commit e2bb07b
Showing 1 changed file with 58 additions and 49 deletions.
107 changes: 58 additions & 49 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit e2bb07b

Please sign in to comment.