-
-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lint): allow only/skip filter when --write is passed
- Loading branch information
Showing
13 changed files
with
322 additions
and
125 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
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
26 changes: 26 additions & 0 deletions
26
crates/biome_cli/tests/snapshots/main_commands_lint/lint_only_write.snap
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 @@ | ||
--- | ||
source: crates/biome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
## `biome.json` | ||
|
||
```json | ||
{} | ||
``` | ||
|
||
## `check.js` | ||
|
||
```js | ||
|
||
export const z = (array) => { | ||
array.map((sentence) => sentence.split(" ")).flat(); | ||
return 0; | ||
}; | ||
|
||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
Checked 1 file in <TIME>. Fixed 1 file. | ||
``` |
26 changes: 26 additions & 0 deletions
26
crates/biome_cli/tests/snapshots/main_commands_lint/lint_skip_write.snap
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 @@ | ||
--- | ||
source: crates/biome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
## `biome.json` | ||
|
||
```json | ||
{} | ||
``` | ||
|
||
## `check.js` | ||
|
||
```js | ||
|
||
export const z = function (array) { | ||
array.flatMap((sentence) => sentence.split(" ")); | ||
return 0; | ||
}; | ||
|
||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
Checked 1 file in <TIME>. Fixed 1 file. | ||
``` |
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.