Skip to content

Commit

Permalink
Make default value allow
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ Skillingstad committed Jan 12, 2018
1 parent f5cff2a commit f103712
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/rules/jsx-tag-spacing.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The default values are:
"closingSlash": "never",
"beforeSelfClosing": "always",
"afterOpening": "never",
"beforeClosing": "never"
"beforeClosing": "allow"
}
```

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

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

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"`.
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"`.

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

Expand Down
4 changes: 2 additions & 2 deletions lib/rules/jsx-tag-spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ module.exports = {
closingSlash: 'never',
beforeSelfClosing: 'always',
afterOpening: 'never',
beforeClosing: 'never'
beforeClosing: 'allow'
},
additionalProperties: false
}
Expand All @@ -257,7 +257,7 @@ module.exports = {
closingSlash: 'never',
beforeSelfClosing: 'always',
afterOpening: 'never',
beforeClosing: 'never'
beforeClosing: 'allow'
};
for (const key in options) {
if (has(options, key) && has(context.options[0] || {}, key)) {
Expand Down

0 comments on commit f103712

Please sign in to comment.