-
-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
323 additions
and
255 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...geset/the_rule_useimportrestrictions_has_been_moved_into_norestrictedimports.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,26 @@ | ||
--- | ||
cli: major | ||
--- | ||
|
||
# The rule `useImportRestrictions` has been removed and replaced with an option in `noRestrictedImports` | ||
|
||
To avoid confusion between the two similarly named rules, `useImportRestrictions` has been removed | ||
and replaced with the option `restrictPackagePrivate` in the `noRestrictedImports` rule: | ||
|
||
```jsonc | ||
// biome.json | ||
{ | ||
"linter": { | ||
"rules": { | ||
"nursury": { | ||
"noRestrictedImports": { | ||
"level": "error", | ||
"options": { | ||
"restrictPackagePrivate": "all" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` |
6 changes: 1 addition & 5 deletions
6
crates/biome_cli/src/execute/migrate/eslint_any_rule_to_biome.rs
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
Oops, something went wrong.