You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/jsx-curly-brace-presence.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,10 +32,15 @@ or alternatively
32
32
33
33
They are `always`, `never` and `ignore` for checking on JSX props and children.
34
34
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
36
36
*`never`: never allow unnecessary curly braces inside JSX props or/and children
37
37
*`ignore`: ignore the rule for JSX props or/and children
38
38
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
+
39
44
For examples:
40
45
41
46
When `{ props: "always", children: "always" }` is set, the following patterns will be given warnings.
0 commit comments