Skip to content

Commit

Permalink
Merge pull request #4362 from WordPress/fix/jsx-curly-spacing
Browse files Browse the repository at this point in the history
Force JSX children expressions to have spacing
  • Loading branch information
noisysocks authored Jan 9, 2018
2 parents 16bae00 + bd8d3aa commit a7f9da3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@
"prefer-const": "error",
"quote-props": [ "error", "as-needed" ],
"react/display-name": "off",
"react/jsx-curly-spacing": [ "error", "always" ],
"react/jsx-curly-spacing": [ "error", {
"when": "always",
"children": true
} ],
"react/jsx-equals-spacing": "error",
"react/jsx-indent": [ "error", "tab" ],
"react/jsx-indent-props": [ "error", "tab" ],
Expand Down

0 comments on commit a7f9da3

Please sign in to comment.