-
-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: useExhaustiveDependencies not recommended #4294
Open
ematipico
wants to merge
9
commits into
next
Choose a base branch
from
feat/do-not-recommend-rule
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ce12ff0
feat: remove support for rome-ignore (#4252)
ematipico be769e1
feat: remove `--apply` and `--apply-unsafe` (#4268)
ematipico 3e01579
fix: reduce accepted values for options (#4271)
ematipico 1d18da9
feat: remove `trailingComma` option (#4266)
ematipico 978f077
feat: remove `--indent-size` (#4270)
ematipico 7d81276
feat: remove environment variable `BIOME_LOG_DIR` (#4289)
ematipico 757b87c
refactor: remove dead code (#4291)
Conaclos 2d15a74
feat: `useExhaustiveDependencies` not recommended
ematipico 64c973b
codegen
ematipico File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
cli: major | ||
--- | ||
|
||
# Reduced accepted values for formatter options | ||
|
||
- The option `--quote-style` doesn't accept `Single` and `Double` anymore. | ||
- The option `--quote-properties` doesn't accept `AsNeeded` and `Preserve` anymore. | ||
- The option `--semicolons` doesn't accept `AsNeeded` and `Always` anymore. | ||
- The option `--arrow-parenthesis` doesn't accept `AsNeeded` and `Always` anymore. | ||
- The option `--trailing-commas` doesn't accept `ES5`, `All` and `None` anymore. | ||
- The option `--attribute-position` doesn't accept `Single` and `Multiline` anymore. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
biome_js_formatter: major | ||
--- | ||
|
||
# Reduced accepted values for js options | ||
|
||
- The type `Semicolon` can't be converted from `"AsNeeded"` and `"Always"`. | ||
- The type `TrailingCommas` can't be converted from `"ES5"`, `"All"` and `"None"`. | ||
- The type `ArrowParenthesis` can't be converted from `"AsNeeded"` and `"Always"`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
biome_formatter: major | ||
--- | ||
|
||
# Reduced accepted values of options | ||
|
||
- The type `QuoteStyle` can't be converted from `"Double"` and `"Single"`. | ||
- The type `QuoteProperties` can't be converted from `"AsNeeded"` and `"Preserve"`. | ||
- The type `AttributePosition` can't be converted from `"Multiline"` and `"Auto"`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
cli: major | ||
--- | ||
|
||
# Remove `BIOME_LOG_DIR` | ||
|
||
The environment variable `BIOME_LOG_DIR` isn't supported anymore. | ||
|
||
Use `BIOME_LOG_PATH` instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
cli: major | ||
--- | ||
|
||
# Remove `indentSize` deprecated option | ||
|
||
The deprecated option `indentSize`, and its relative CLI options, has been removed: | ||
- Configuration file: `formatter.indentSize` | ||
- Configuration file: `javascript.formatter.indentSize` | ||
- Configuration file: `json.formatter.indentSize` | ||
- CLI option `--indent-size` | ||
- CLI option `--javascript-formatter-indent-size` | ||
- CLI option `--json-formatter-indent-size` | ||
|
||
Use `indentWidth` and its relative CLI options instead. |
7 changes: 7 additions & 0 deletions
7
.changeset/remove_support_for_rome_ignore_suppression_comment.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
cli: major | ||
--- | ||
|
||
# Remove support for `rome-ignore` suppression comment | ||
|
||
Use the `biome-ignore` suppression comment instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
cli: major | ||
--- | ||
|
||
# Remove support for `rome.json` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
cli: major | ||
--- | ||
|
||
# Remove `trailingComma` | ||
|
||
Removed the option `trailingComma` from the configuration and the CLI. Use the option `trailingCommas` instead: | ||
|
||
```diff | ||
{ | ||
"javascript": { | ||
"formatter": { | ||
- "trailingComma": "es5" | ||
+ "trailingCommas": "es5" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
```diff | ||
-biome format --trailing-comma=es5 | ||
+biome format --trailing-commas=es5 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
cli: major | ||
--- | ||
|
||
# Removed `--apply` and `--apply-unsafe` | ||
|
||
The CLI options `--apply` and `--apply-unasfe` aren't accepted anymore. Use `--write` and `--write --unafe` instead: | ||
|
||
```diff | ||
-biome check --apply-unsafe | ||
+biome check --write --unsafe | ||
``` | ||
|
||
```diff | ||
-biome check --apply | ||
+biome check --write | ||
``` |
21 changes: 21 additions & 0 deletions
21
.changeset/the_rule_useexhaustivedependencies_isnt_recommended_anymore.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
cli: major | ||
--- | ||
|
||
# The rule `useExhaustiveDependencies` isn't recommended anymore | ||
|
||
The rule `useExhaustiveDependencies` is not recommended anymore. If your codebase uses `react` and relies on that rule, you have to enable it: | ||
|
||
|
||
```jsonc | ||
// biome.json | ||
{ | ||
"linter": { | ||
"rules": { | ||
"correctness": { | ||
"useExhaustiveDependencies": "error" | ||
} | ||
} | ||
} | ||
} | ||
``` |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully this will be improved before the actual release then.