-
-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(useFilenamingConvention): support dynamic route filenames
- Loading branch information
Showing
25 changed files
with
213 additions
and
63 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
Empty file.
8 changes: 8 additions & 0 deletions
8
crates/biome_js_analyze/tests/specs/style/useFilenamingConvention/[...slug2].js.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,8 @@ | ||
--- | ||
source: crates/biome_js_analyze/tests/spec_tests.rs | ||
expression: "[...slug2].js" | ||
--- | ||
# Input | ||
```jsx | ||
|
||
``` |
Empty file.
9 changes: 9 additions & 0 deletions
9
crates/biome_js_analyze/tests/specs/style/useFilenamingConvention/[[...slug3]].js.snap.new
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,9 @@ | ||
--- | ||
source: crates/biome_js_analyze/tests/spec_tests.rs | ||
assertion_line: 84 | ||
expression: "[[...slug3]].js" | ||
--- | ||
# Input | ||
```jsx | ||
|
||
``` |
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
62 changes: 62 additions & 0 deletions
62
crates/biome_json_parser/tests/json_test_suite/err/number_1.0e_minus.json.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,62 @@ | ||
--- | ||
source: crates/biome_json_parser/tests/spec_test.rs | ||
expression: snapshot | ||
--- | ||
## Input | ||
|
||
```json | ||
[1.0e-] | ||
``` | ||
|
||
|
||
## AST | ||
|
||
``` | ||
JsonRoot { | ||
bom_token: missing (optional), | ||
value: JsonArrayValue { | ||
l_brack_token: L_BRACK@0..1 "[" [] [], | ||
elements: JsonArrayElementList [ | ||
JsonBogusValue { | ||
items: [ | ||
ERROR_TOKEN@1..6 "1.0e-" [] [], | ||
], | ||
}, | ||
], | ||
r_brack_token: R_BRACK@6..7 "]" [] [], | ||
}, | ||
eof_token: EOF@7..7 "" [] [], | ||
} | ||
``` | ||
|
||
## CST | ||
|
||
``` | ||
0: [email protected] | ||
0: (empty) | ||
1: [email protected] | ||
0: [email protected] "[" [] [] | ||
1: [email protected] | ||
0: [email protected] | ||
0: [email protected] "1.0e-" [] [] | ||
2: [email protected] "]" [] [] | ||
2: [email protected] "" [] [] | ||
``` | ||
|
||
## Diagnostics | ||
|
||
``` | ||
number_1.0e_minus.json:1:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
× Missing exponent | ||
> 1 │ [1.0e-] | ||
│ ^^^^^ | ||
i Expected a digit as the exponent | ||
> 1 │ [1.0e-] | ||
│ ^ | ||
``` |
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
75 changes: 75 additions & 0 deletions
75
crates/biome_json_parser/tests/json_test_suite/err/number_plus_Inf.json.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,75 @@ | ||
--- | ||
source: crates/biome_json_parser/tests/spec_test.rs | ||
expression: snapshot | ||
--- | ||
## Input | ||
|
||
```json | ||
[+Inf] | ||
``` | ||
|
||
|
||
## AST | ||
|
||
``` | ||
JsonRoot { | ||
bom_token: missing (optional), | ||
value: JsonArrayValue { | ||
l_brack_token: L_BRACK@0..1 "[" [] [], | ||
elements: JsonArrayElementList [ | ||
JsonBogusValue { | ||
items: [ | ||
ERROR_TOKEN@1..2 "+" [] [], | ||
], | ||
}, | ||
missing separator, | ||
JsonBogusValue { | ||
items: [ | ||
IDENT@2..5 "Inf" [] [], | ||
], | ||
}, | ||
], | ||
r_brack_token: R_BRACK@5..6 "]" [] [], | ||
}, | ||
eof_token: EOF@6..6 "" [] [], | ||
} | ||
``` | ||
|
||
## CST | ||
|
||
``` | ||
0: [email protected] | ||
0: (empty) | ||
1: [email protected] | ||
0: [email protected] "[" [] [] | ||
1: [email protected] | ||
0: [email protected] | ||
0: [email protected] "+" [] [] | ||
1: (empty) | ||
2: [email protected] | ||
0: [email protected] "Inf" [] [] | ||
2: [email protected] "]" [] [] | ||
2: [email protected] "" [] [] | ||
``` | ||
|
||
## Diagnostics | ||
|
||
``` | ||
number_plus_Inf.json:1:2 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
× unexpected character `+` | ||
> 1 │ [+Inf] | ||
│ ^ | ||
number_plus_Inf.json:1:3 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
× expected `,` but instead found `Inf` | ||
> 1 │ [+Inf] | ||
│ ^^^ | ||
i Remove Inf | ||
``` |
Oops, something went wrong.