Add eslint rule to disallow spaces inside of curly braces

pull/21833/head
Luke Barnard 2017-09-28 10:02:40 +01:00
parent 1f66baca4b
commit c7728bd9ad
1 changed files with 4 additions and 0 deletions

View File

@ -40,6 +40,10 @@ module.exports = {
}], }],
"react/jsx-key": ["error"], "react/jsx-key": ["error"],
// Assert no spacing in JSX curly brackets
// <Element prop={ consideredError} prop={notConsideredError} />
"react/jsx-curly-spacing": ["error", "never"],
/** flowtype **/ /** flowtype **/
"flowtype/require-parameter-type": ["warn", { "flowtype/require-parameter-type": ["warn", {
"excludeArrowFunctions": true, "excludeArrowFunctions": true,