-
-
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
- Loading branch information
Showing
575 changed files
with
6,069 additions
and
5,879 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, you should raise their diagnostic 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` | ||
|
||
The following rules aren't recommended anymore: | ||
- `noDelete` | ||
- `noForEach` | ||
- `noFlatMapIdentity` | ||
|
||
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
Oops, something went wrong.