-
-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d48b11
commit 870e6bf
Showing
9 changed files
with
159 additions
and
3 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
4 changes: 4 additions & 0 deletions
4
crates/biome_js_analyze/tests/specs/nursery/useJsxSortProps/sortedReservedFirst.jsx
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,4 @@ | ||
/* should not generate diagnostics */ | ||
<Hello key={0} ref={johnRef} name="John"> | ||
<div dangerouslySetInnerHTML={{__html: 'ESLint Plugin React!'}} ref={dangerDivRef} /> | ||
</Hello> |
12 changes: 12 additions & 0 deletions
12
crates/biome_js_analyze/tests/specs/nursery/useJsxSortProps/sortedReservedFirst.jsx.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,12 @@ | ||
--- | ||
source: crates/biome_js_analyze/tests/spec_tests.rs | ||
expression: sortedReservedFirst.jsx | ||
--- | ||
# Input | ||
```jsx | ||
/* should not generate diagnostics */ | ||
<Hello key={0} ref={johnRef} name="John"> | ||
<div dangerouslySetInnerHTML={{__html: 'ESLint Plugin React!'}} ref={dangerDivRef} /> | ||
</Hello> | ||
|
||
``` |
15 changes: 15 additions & 0 deletions
15
crates/biome_js_analyze/tests/specs/nursery/useJsxSortProps/sortedReservedFirst.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": { | ||
"nursery": { | ||
"useJsxSortProps": { | ||
"level": "error", | ||
"options": { | ||
"reservedFirst": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
crates/biome_js_analyze/tests/specs/nursery/useJsxSortProps/sortedReservedFirstArray.jsx
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,2 @@ | ||
/* should not generate diagnostics */ | ||
<Hello ref={johnRef} key={0} name="John" /> |
10 changes: 10 additions & 0 deletions
10
...es/biome_js_analyze/tests/specs/nursery/useJsxSortProps/sortedReservedFirstArray.jsx.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,10 @@ | ||
--- | ||
source: crates/biome_js_analyze/tests/spec_tests.rs | ||
expression: sortedReservedFirstArray.jsx | ||
--- | ||
# Input | ||
```jsx | ||
/* should not generate diagnostics */ | ||
<Hello ref={johnRef} key={0} name="John" /> | ||
|
||
``` |
15 changes: 15 additions & 0 deletions
15
...iome_js_analyze/tests/specs/nursery/useJsxSortProps/sortedReservedFirstArray.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": { | ||
"nursery": { | ||
"useJsxSortProps": { | ||
"level": "error", | ||
"options": { | ||
"reservedFirst": ["ref"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.