-
-
Notifications
You must be signed in to change notification settings - Fork 475
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(useFilenamingConvention): apply formats to extensions
- Loading branch information
Showing
14 changed files
with
84 additions
and
37 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
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.
17 changes: 17 additions & 0 deletions
17
crates/biome_js_analyze/tests/specs/style/useFilenamingConvention/filename.INVALID.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,17 @@ | ||
--- | ||
source: crates/biome_js_analyze/tests/spec_tests.rs | ||
expression: filename.INVALID.js | ||
--- | ||
# Input | ||
```jsx | ||
|
||
``` | ||
|
||
# Diagnostics | ||
``` | ||
filename.INVALID.js lint/style/useFilenamingConvention ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ | ||
! The file extension should be in lowercase. | ||
``` |
15 changes: 15 additions & 0 deletions
15
.../biome_js_analyze/tests/specs/style/useFilenamingConvention/filename.INVALID.options.json
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 @@ | ||
{ | ||
"$schema": "../../../../../../packages/@biomejs/biome/configuration_schema.json", | ||
"linter": { | ||
"rules": { | ||
"style": { | ||
"useFilenamingConvention": { | ||
"level": "error", | ||
"options": { | ||
"filenameCases": ["export"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
19 changes: 0 additions & 19 deletions
19
...analyze/tests/specs/style/useFilenamingConvention/filename.test.invalid-extension.ts.snap
This file was deleted.
Oops, something went wrong.
Empty file.
8 changes: 8 additions & 0 deletions
8
..._analyze/tests/specs/style/useFilenamingConvention/filename.valid-kebab-extension.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: filename.valid-kebab-extension.js | ||
--- | ||
# Input | ||
```jsx | ||
|
||
``` |
Empty file.
8 changes: 8 additions & 0 deletions
8
...biome_js_analyze/tests/specs/style/useFilenamingConvention/filename.validCamelExt.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: filename.validCamelExt.js | ||
--- | ||
# Input | ||
```jsx | ||
|
||
``` |
Empty file.
8 changes: 8 additions & 0 deletions
8
...ome_js_analyze/tests/specs/style/useFilenamingConvention/filename.valid_snake_ext.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: filename.valid_snake_ext.js | ||
--- | ||
# Input | ||
```jsx | ||
|
||
``` |