-
-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(project): initial partial support for vue files
- Loading branch information
Showing
8 changed files
with
337 additions
and
2 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
15 changes: 15 additions & 0 deletions
15
crates/biome_cli/tests/snapshots/main_commands_format/format_empty_vue_files_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,15 @@ | ||
--- | ||
source: crates/biome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
## `file.vue` | ||
|
||
```vue | ||
<template></template> | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
Formatted 1 file(s) in <TIME> | ||
``` |
48 changes: 48 additions & 0 deletions
48
crates/biome_cli/tests/snapshots/main_commands_format/format_vue_files.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,48 @@ | ||
--- | ||
source: crates/biome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
## `file.vue` | ||
|
||
```vue | ||
<script> | ||
import { something } from "file.vue"; | ||
statement ( ) ; | ||
</script> | ||
<template></template> | ||
``` | ||
|
||
# Termination Message | ||
|
||
```block | ||
format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
× Some errors were emitted while running checks. | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
file.vue format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
i Formatter would have printed the following content: | ||
1 1 │ <script> | ||
2 │ - import·{····something·}·from·"file.vue"; | ||
3 │ - statement·(·)·; | ||
2 │ + import·{·something·}·from·"file.vue"; | ||
3 │ + statement(); | ||
4 4 │ </script> | ||
5 5 │ <template></template> | ||
``` | ||
|
||
```block | ||
Compared 1 file(s) in <TIME> | ||
``` | ||
|
||
|
19 changes: 19 additions & 0 deletions
19
crates/biome_cli/tests/snapshots/main_commands_format/format_vue_files_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,19 @@ | ||
--- | ||
source: crates/biome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
## `file.vue` | ||
|
||
```vue | ||
<script> | ||
import { something } from "file.vue"; | ||
statement(); | ||
</script> | ||
<template></template> | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
Formatted 1 file(s) in <TIME> | ||
``` |
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.