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-first-prop-new-line.md
+1-7Lines changed: 1 addition & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Ensure correct position of the first property.
4
4
5
-
**Fixable:** This rule is automatically fixable using the `--fix` flag on the command line.
5
+
**Fixable:** This rule is automatically fixable using the `--fix` flag on the command line. However, fix does not include indentation. Please rerun lint to correct those errors.
6
6
7
7
## Rule Details
8
8
@@ -12,12 +12,6 @@ This rule checks whether the first property of all JSX elements is correctly pla
12
12
*`multiline`: The first property should always be placed on a new line when the JSX tag takes up multiple lines.
13
13
*`multiline-multiprop`: The first property should always be placed on a new line if the JSX tag takes up multiple lines and there are multiple properties.
14
14
15
-
In order to utilise autofix, please specify the indentation style as an additional argument in your configuration:
16
-
17
-
```json
18
-
"jsx-first-prop-new-line": ["always", 2]
19
-
```
20
-
21
15
The following patterns are considered warnings when configured `"always"`:
0 commit comments