-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support backtick, logical &&, and ternary is ? "" : ""
- Loading branch information
1 parent
d1e9ee8
commit 1446031
Showing
7 changed files
with
216 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
"eslint-plugin-rtl-friendly": minor | ||
--- | ||
|
||
# Add support for extra className cases | ||
|
||
Previously the plugin only supported literal values like `className="..."`, which lead to a big miss, Now it supports more cases: | ||
|
||
- `className={"..."}` (Auto Fixable) | ||
- Template Literal: `className={``}` (Auto Fixable) | ||
- Terenary Operator: `className={condition ? "..." : "..."}`: | ||
- It reports errors on both consequent and alternate values | ||
- But it only fixes the consequent value | ||
|
||
|
||
Currently, Auto Fixing only works with literal values but it will support all cases in the future |
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
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
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