From c7728bd9ade40ca407fd7ae2f714d9612ff75749 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 28 Sep 2017 10:02:40 +0100 Subject: [PATCH] Add eslint rule to disallow spaces inside of curly braces --- .eslintrc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 74790a2964..f7a78223ff 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -40,6 +40,10 @@ module.exports = { }], "react/jsx-key": ["error"], + // Assert no spacing in JSX curly brackets + // + "react/jsx-curly-spacing": ["error", "never"], + /** flowtype **/ "flowtype/require-parameter-type": ["warn", { "excludeArrowFunctions": true,