Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDisallow spaces inside of curly braces in JSX expressions in children (react/jsx-curly-spacing) #1373
Comments
feross
added
accepted
enhancement
labels
Aug 15, 2019
feross
added this to the standard 14 milestone
Aug 15, 2019
This comment has been minimized.
This comment has been minimized.
|
Shipping in |
feross
closed this
in
c1ebec6
Aug 15, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
feross commentedAug 15, 2019
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md
We already require no spaces inside of JSX expression in attributes, i.e.
<Hello name={firstname} />instead of<Hello name={ firstname } />.I want to enforce the same rule for JSX expressions in children.
Before:
After:
The following patterns are considered warnings:
The following patterns are not warnings: