Skip to content

Commit f103712

Browse files
author
CJ Skillingstad
committed
Make default value allow
1 parent f5cff2a commit f103712

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/rules/jsx-tag-spacing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The default values are:
1717
"closingSlash": "never",
1818
"beforeSelfClosing": "always",
1919
"afterOpening": "never",
20-
"beforeClosing": "never"
20+
"beforeClosing": "allow"
2121
}
2222
```
2323

@@ -181,7 +181,7 @@ The following patterns are **not** considered warnings when configured `"allow-m
181181

182182
This check can be set to `"always"`, `"never"`, or `"allow"` (to disable it).
183183

184-
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 `"never"`.
184+
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"`.
185185

186186
The following patterns are considered warnings when configured `"always"`:
187187

lib/rules/jsx-tag-spacing.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ module.exports = {
246246
closingSlash: 'never',
247247
beforeSelfClosing: 'always',
248248
afterOpening: 'never',
249-
beforeClosing: 'never'
249+
beforeClosing: 'allow'
250250
},
251251
additionalProperties: false
252252
}
@@ -257,7 +257,7 @@ module.exports = {
257257
closingSlash: 'never',
258258
beforeSelfClosing: 'always',
259259
afterOpening: 'never',
260-
beforeClosing: 'never'
260+
beforeClosing: 'allow'
261261
};
262262
for (const key in options) {
263263
if (has(options, key) && has(context.options[0] || {}, key)) {

0 commit comments

Comments
 (0)