Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Update: add enforceForJSX option to no-unused-expressions rule (#14012)
* Update: no-unused-expression flags unused JSX React's createElement call is side-effect free, as are most JSX pragmas. An unused JSX element indicates a logic error in the same way any unused, side-effect free expression is. This extension the no-unused-expression rule flags unused JSX elements unless the (new) allowJsx configuration option is set * fixup! Update: no-unused-expression flags unused JSX React's createElement call is side-effect free, as are most JSX pragmas. An unused JSX element indicates a logic error in the same way any unused, side-effect free expression is. This extension the no-unused-expression rule flags unused JSX elements when the (new) ignoreJSX configuration option is set * fixup! Update: no-unused-expression flags unused JSX * fixup! Update: no-unused-expression flags unused JSX * fixup! Update: no-unused-expression flags unused JSX * fixup! Update: no-unused-expression flags unused JSX * fixup! Update: no-unused-expression flags unused JSX * fixup! Update: no-unused-expression flags unused JSX * fixup! Update: no-unused-expression flags unused JSX * fixup! Update: no-unused-expression flags unused JSX * fixup! Update: no-unused-expression flags unused JSX Apply suggestions from code review Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com> Co-authored-by: Milos Djermanovic <milos.djermanovic@gmail.com>
- Loading branch information
1 parent
d6c84af
commit ad90761
Showing
3 changed files
with
75 additions
and
1 deletion.
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
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