-
-
Notifications
You must be signed in to change notification settings - Fork 467
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
7 changed files
with
63 additions
and
7 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,35 @@ | ||
--- | ||
cli: major | ||
--- | ||
|
||
# Remove the code action `quickfix.suppressRule` | ||
|
||
The code action `quickfix.suppressRule` was removed in favour of two new code actions: | ||
|
||
- `quickfix.suppressRule.inline.biome`: a code action that adds a suppression comment for each violation. | ||
- `quickfix.suppressRule.topLevel.biome`: a code action that adds a suppression comment at the top of the file which suppresses a rule for the whole file. | ||
|
||
|
||
Given the following code | ||
```js | ||
let foo = "one"; | ||
debugger | ||
``` | ||
|
||
The code action `quickfix.suppressRule.inline.biome` will result in the following code: | ||
```js | ||
// biome-ignore lint/style/useConst: <explanation> | ||
let foo = "one"; | ||
// biome-ignore lint/suspicious/noDebugger: <explanation> | ||
debugger | ||
``` | ||
|
||
The code action `quickfix.suppressRule.topLevel.biome`, instead, will result in the following code: | ||
```js | ||
/** biome-ignore lint/suspicious/noDebugger: <explanation> */ | ||
/** biome-ignore lint/style/useConst: <explanation> */ | ||
|
||
let foo = "one"; | ||
debugger; | ||
``` | ||
|
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