Skip to content

Commit 527db86

Browse files
committed
[Docs] jsx-tag-spacing: rename option from jsx-eslint#3264
Fixes jsx-eslint#3294.
1 parent fc9664f commit 527db86

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
88
### Fixed
99
* [`display-name`]: fix false positive for HOF returning only nulls ([#3291][] @golopot)
1010

11+
### Changed
12+
* [Docs] [`jsx-tag-spacing`]: rename option from [#3264][] ([#3294[] @ljharb)
13+
14+
[#3294]: https://github.com/jsx-eslint/eslint-plugin-react/issues/3294
1115
[#3291]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3291
1216

1317
## [7.30.0] - 2022.05.18

docs/rules/jsx-tag-spacing.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Examples of **correct** code for this rule, when configured with `{ "closingSlas
6262

6363
### `beforeSelfClosing`
6464

65-
This check can be set to `"always"`, `"never"`, `"multiline-always"`, or `"allow"` (to disable it).
65+
This check can be set to `"always"`, `"never"`, `"proportional-always"`, or `"allow"` (to disable it).
6666

6767
If it is `"always"`, the check warns whenever a space is missing before the closing bracket. If `"never"` then it warns if a space is present before the closing bracket. The default value of this check is `"always"`.
6868

@@ -102,7 +102,7 @@ Examples of **correct** code for this rule, when configured with `{ "beforeSelfC
102102
/>
103103
```
104104

105-
Examples of **incorrect** code for this rule, when configured with `{ "beforeSelfClosing": "multiline-always" }`:
105+
Examples of **incorrect** code for this rule, when configured with `{ "beforeSelfClosing": "proportional-always" }`:
106106

107107
```jsx
108108
<Hello
@@ -113,7 +113,7 @@ Examples of **incorrect** code for this rule, when configured with `{ "beforeSel
113113
lastName="Smith"/>
114114
```
115115

116-
Examples of **correct** code for this rule, when configured with `{ "beforeSelfClosing": "multiline-always" }`:
116+
Examples of **correct** code for this rule, when configured with `{ "beforeSelfClosing": "proportional-always" }`:
117117

118118
```jsx
119119
<Hello
@@ -199,7 +199,7 @@ Examples of **correct** code for this rule, when configured with `{ "afterOpenin
199199

200200
### `beforeClosing`
201201

202-
This check can be set to `"always"`, `"never"`, `"multiline-always"`, or `"allow"` (to disable it).
202+
This check can be set to `"always"`, `"never"`, `"proportional-always"`, or `"allow"` (to disable it).
203203

204204
If it is `"always"` the check warns whenever whitespace is missing before the closing bracket of a JSX opening element or whenever a space is missing before the closing bracket closing element. If `"never"`, then it warns if a space is present before the closing bracket of either a JSX opening element or closing element. This rule will never warn for self closing JSX elements. The default value of this check is `"allow"`.
205205

@@ -239,7 +239,7 @@ Examples of **correct** code for this rule, when configured with `{ "beforeClosi
239239
</Hello>
240240
```
241241

242-
Examples of **incorrect** code for this rule, when configured with `{ "beforeClosing": "multiline-always" }`:
242+
Examples of **incorrect** code for this rule, when configured with `{ "beforeClosing": "proportional-always" }`:
243243

244244
```jsx
245245
<Hello
@@ -253,7 +253,7 @@ Examples of **incorrect** code for this rule, when configured with `{ "beforeClo
253253
</Hello>
254254
```
255255

256-
Examples of **correct** code for this rule, when configured with `{ "beforeClosing": "multiline-always" }`:
256+
Examples of **correct** code for this rule, when configured with `{ "beforeClosing": "proportional-always" }`:
257257

258258
```jsx
259259
<Hello

0 commit comments

Comments
 (0)