Skip to content

Commit

Permalink
test: non alphabetic option
Browse files Browse the repository at this point in the history
  • Loading branch information
vohoanglong0107 committed Apr 30, 2024
1 parent d37cfde commit 3dd1652
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/* should not generate diagnostics */
<Hello
name="John"
tel={5555555}
classes={{
greetings: classes.greetings,
}}
/>;

<Hello
tel={5555555}
name="John"
classes={{
greetings: classes.greetings,
}}
validate
active
onClick={this._handleClick}
onChange={this._handleChange}
/>;
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
source: crates/biome_js_analyze/tests/spec_tests.rs
expression: sortedNonAlphabetic.jsx
---
# Input
```jsx
/* should not generate diagnostics */
<Hello
name="John"
tel={5555555}
classes={{
greetings: classes.greetings,
}}
/>;

<Hello
tel={5555555}
name="John"
classes={{
greetings: classes.greetings,
}}
validate
active
onClick={this._handleClick}
onChange={this._handleChange}
/>;

```
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "../../../../../../packages/@biomejs/biome/configuration_schema.json",
"linter": {
"rules": {
"nursery": {
"useJsxSortProps": {
"level": "error",
"options": {
"callbacksLast": true,
"multiline": "last",
"noSortAlphabetically": true,
"shorthand": "last"
}
}
}
}
}
}

0 comments on commit 3dd1652

Please sign in to comment.