-
-
Notifications
You must be signed in to change notification settings - Fork 504
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 astro files (#1718)
- Loading branch information
Showing
28 changed files
with
527 additions
and
142 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
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
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
52 changes: 52 additions & 0 deletions
52
crates/biome_cli/tests/snapshots/main_commands_format/format_astro_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,52 @@ | ||
--- | ||
source: crates/biome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
## `file.astro` | ||
|
||
```astro | ||
--- | ||
import { something } from "file.astro"; | ||
statement ( ) ; | ||
--- | ||
<div></div> | ||
``` | ||
|
||
# Termination Message | ||
|
||
```block | ||
format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
× Some errors were emitted while running checks. | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
file.astro format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
i Formatter would have printed the following content: | ||
1 1 │ --- | ||
2 │ - import·{····something·}·from·"file.astro"; | ||
2 │ + import·{·something·}·from·"file.astro"; | ||
3 3 │ | ||
4 │ - statement·(·)·; | ||
5 │ - | ||
4 │ + statement(); | ||
6 5 │ --- | ||
7 6 │ <div></div> | ||
``` | ||
|
||
```block | ||
Compared 1 file(s) in <TIME> | ||
``` | ||
|
||
|
22 changes: 22 additions & 0 deletions
22
crates/biome_cli/tests/snapshots/main_commands_format/format_astro_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,22 @@ | ||
--- | ||
source: crates/biome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
## `file.astro` | ||
|
||
```astro | ||
--- | ||
import { something } from "file.astro"; | ||
statement(); | ||
--- | ||
<div></div> | ||
``` | ||
|
||
# Emitted Messages | ||
|
||
```block | ||
Formatted 1 file(s) in <TIME> | ||
``` | ||
|
||
|
17 changes: 17 additions & 0 deletions
17
crates/biome_cli/tests/snapshots/main_commands_format/format_empty_astro_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,17 @@ | ||
--- | ||
source: crates/biome_cli/tests/snap_test.rs | ||
expression: content | ||
--- | ||
## `file.astro` | ||
|
||
```astro | ||
<div></div> | ||
``` | ||
|
||
# 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
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.