Skip to content

Commit d2b2aac

Browse files
committed
Further improve docs about jsx-curly-brace-presence rule fixing
1 parent 0203b70 commit d2b2aac

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/rules/jsx-curly-brace-presence.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,15 @@ or alternatively
3232

3333
They are `always`, `never` and `ignore` for checking on JSX props and children.
3434

35-
* `always`: always enforce curly braces inside JSX props or/and children and fix with double quotes for JSX children inside the generated JSX expressions
35+
* `always`: always enforce curly braces inside JSX props or/and children
3636
* `never`: never allow unnecessary curly braces inside JSX props or/and children
3737
* `ignore`: ignore the rule for JSX props or/and children
3838

39+
If passed in the option to fix, this is how a style violation will get fixed
40+
41+
* `always`: wrap a JSX attribute in curly braces/JSX expression and/or a JSX child the same way but also with double quotes
42+
* `never`: get rid of curly braces from a JSX attribute and/or a JSX child
43+
3944
For examples:
4045

4146
When `{ props: "always", children: "always" }` is set, the following patterns will be given warnings.

0 commit comments

Comments
 (0)