Skip to content

Commit a5a5c27

Browse files
committed
Update jsx-curly-spacing documentation to mark it fixable
1 parent 22c4489 commit a5a5c27

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Finally, enable all of the rules that you would like to use.
120120
* [forbid-prop-types](docs/rules/forbid-prop-types.md): Forbid certain propTypes
121121
* [jsx-boolean-value](docs/rules/jsx-boolean-value.md): Enforce boolean attributes notation in JSX (fixable)
122122
* [jsx-closing-bracket-location](docs/rules/jsx-closing-bracket-location.md): Validate closing bracket location in JSX
123-
* [jsx-curly-spacing](docs/rules/jsx-curly-spacing.md): Enforce or disallow spaces inside of curly braces in JSX attributes
123+
* [jsx-curly-spacing](docs/rules/jsx-curly-spacing.md): Enforce or disallow spaces inside of curly braces in JSX attributes (fixable)
124124
* [jsx-equals-spacing](docs/rules/jsx-equals-spacing.md): Enforce or disallow spaces around equal signs in JSX attributes
125125
* [jsx-handler-names](docs/rules/jsx-handler-names.md): Enforce event handler naming conventions in JSX
126126
* [jsx-indent-props](docs/rules/jsx-indent-props.md): Validate props indentation in JSX

docs/rules/jsx-curly-spacing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
While formatting preferences are very personal, a number of style guides require or disallow spaces between curly braces.
44

5+
**Fixable:** This rule is automatically fixable using the `--fix` flag on the command line.
6+
57
## Rule Details
68

79
This rule aims to maintain consistency around the spacing inside of JSX attributes.
@@ -109,4 +111,3 @@ The following patterns are not warnings:
109111
## When Not To Use It
110112

111113
You can turn this rule off if you are not concerned with the consistency around the spacing inside of JSX attributes.
112-

0 commit comments

Comments
 (0)