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
Deprecate jsx-space-before-closing rule in favour of jsx-tag-spacing rule which offers a superset of it. jsx-space-before-closing still works but will trigger a warning.
Copy file name to clipboardExpand all lines: docs/rules/jsx-space-before-closing.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Validate spacing before closing bracket in JSX (jsx-space-before-closing)
2
2
3
+
**Deprecation notice**: This rule is deprecated. Please use the `"beforeSelfClosing"` option of the [jsx-tag-spacing](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-tag-spacing.md) rule instead.
4
+
3
5
Enforce or forbid spaces before the closing bracket of self-closing JSX elements.
4
6
5
7
**Fixable:** This rule is automatically fixable using the `--fix` flag on the command line.
0 commit comments