Skip to content

Commit

Permalink
Update jsx-curly-spacing documentation to mark it fixable
Browse files Browse the repository at this point in the history
  • Loading branch information
yannickcr committed Jan 24, 2016
1 parent 22c4489 commit a5a5c27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion docs/rules/jsx-curly-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.

0 comments on commit a5a5c27

Please sign in to comment.