-
-
Notifications
You must be signed in to change notification settings - Fork 534
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(linter): severity and recommendation of lint rules (#5133)
Co-authored-by: arendjr <[email protected]> Co-authored-by: Conaclos <[email protected]>
- Loading branch information
1 parent
c237df0
commit 84e0407
Showing
589 changed files
with
6,115 additions
and
6,008 deletions.
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,33 @@ | ||
--- | ||
"@biomejs/biome": major | ||
--- | ||
|
||
Reworked some recommended rules recommended to be less pedantic and blocking. This is a **breaking change** if your project relied on those rules to block the CI in case of violations; if that's the case, you should raise their severity level to **error**. | ||
|
||
Some rules aren't recommended anymore, and some others return a different severity. | ||
|
||
The following rules return a **warning** diagnostic: | ||
- `noDelete` | ||
- `noForEach` | ||
- `noSuspiciousSemicolonInJsx` | ||
- `noThisInStatic` | ||
- `noUnusedLabels` | ||
|
||
The following rules return an **information** diagnostic: | ||
- `noUselessCatch` | ||
- `noUselessConstructor` | ||
- `noUselessEmptyExport` | ||
- `noUselessFragments` | ||
- `noUselessLabel` | ||
- `noUselessLoneBlockStatements` | ||
- `noUselessSwitchCase` | ||
- `noUselessTernary` | ||
- `noUselessThisAlias` | ||
- `noUselessTypeConstraint` | ||
- `noFlatMapIdentity` | ||
|
||
The following rules aren't recommended anymore: | ||
- `noDelete` | ||
- `noForEach` | ||
|
||
The rule `noRenderReturnValue` is only recommended when the `react` domain is enabled. |
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
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
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
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
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
Oops, something went wrong.