From 2dfd520930634bb381ca6df7817c3bc65dc08a93 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 19 Apr 2016 20:54:45 -0700 Subject: [PATCH] [eslint config] [react] Add guide section on `react/jsx-curly-spacing` Per #693. --- react/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/react/README.md b/react/README.md index 6d71a16e..a2f26c9c 100644 --- a/react/README.md +++ b/react/README.md @@ -184,6 +184,16 @@ ``` + - Do not pad JSX curly braces with spaces. eslint: [`react/jsx-curly-spacing`](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md) + + ```jsx + // bad + + + // good + + ``` + ## Props - Always use camelCase for prop names.