-
-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lint/noDuplicateJsxProps): make the rule case-sensitive (#100)
- Loading branch information
Showing
7 changed files
with
72 additions
and
81 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
5 changes: 1 addition & 4 deletions
5
crates/rome_js_analyze/tests/specs/suspicious/noDuplicateJsxProps/invalid.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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
//Duplicate `name` property | ||
<Hello name="John" name="John" />; | ||
|
||
//Case insensitive case | ||
<Hello name="John" Name="John" />; | ||
|
||
//Case where property is repeated more than twice | ||
<Hello name="John" name="John" name="John" />; | ||
|
||
//Case with two duplicates | ||
<Hello name="John" Name="John" lastname="Doe" lastname="Doe" />; | ||
<Hello name="John" name="John" lastname="Doe" lastname="Doe" />; | ||
|
||
<label xml:lang="en-US" xml:lang="en-US"></label> |
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