Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] jsx-curly-spacing problem in new tests, fixes #1414
Before this, spaces before/after braces when there should be none resulted in two overlapping fixes for the full brace content. And so they required two passes. But the tester does only one pass, so only one white space was fixed and the test failed. By including comments in the range calculation for the fix, the range is now properly limited, making it possible to have start and end fixes in one pass.
- Loading branch information