From a5a5c27cfa4fd157d8daff045efe9d6e36f51f72 Mon Sep 17 00:00:00 2001 From: Yannick Croissant Date: Sun, 24 Jan 2016 15:08:06 +0000 Subject: [PATCH] Update jsx-curly-spacing documentation to mark it fixable --- README.md | 2 +- docs/rules/jsx-curly-spacing.md | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8800c516e8..a9c82af03a 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ Finally, enable all of the rules that you would like to use. * [forbid-prop-types](docs/rules/forbid-prop-types.md): Forbid certain propTypes * [jsx-boolean-value](docs/rules/jsx-boolean-value.md): Enforce boolean attributes notation in JSX (fixable) * [jsx-closing-bracket-location](docs/rules/jsx-closing-bracket-location.md): Validate closing bracket location in JSX -* [jsx-curly-spacing](docs/rules/jsx-curly-spacing.md): Enforce or disallow spaces inside of curly braces in JSX attributes +* [jsx-curly-spacing](docs/rules/jsx-curly-spacing.md): Enforce or disallow spaces inside of curly braces in JSX attributes (fixable) * [jsx-equals-spacing](docs/rules/jsx-equals-spacing.md): Enforce or disallow spaces around equal signs in JSX attributes * [jsx-handler-names](docs/rules/jsx-handler-names.md): Enforce event handler naming conventions in JSX * [jsx-indent-props](docs/rules/jsx-indent-props.md): Validate props indentation in JSX diff --git a/docs/rules/jsx-curly-spacing.md b/docs/rules/jsx-curly-spacing.md index 48cdb39d63..34c62a9fc3 100644 --- a/docs/rules/jsx-curly-spacing.md +++ b/docs/rules/jsx-curly-spacing.md @@ -2,6 +2,8 @@ While formatting preferences are very personal, a number of style guides require or disallow spaces between curly braces. +**Fixable:** This rule is automatically fixable using the `--fix` flag on the command line. + ## Rule Details This rule aims to maintain consistency around the spacing inside of JSX attributes. @@ -109,4 +111,3 @@ The following patterns are not warnings: ## When Not To Use It You can turn this rule off if you are not concerned with the consistency around the spacing inside of JSX attributes. -