-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add jsx-tag-spacing rule (Fixes #693) #707
Conversation
* @param {ASTNode} node - The JSX element node. | ||
* @returns {Token} The token before the closing bracket. | ||
*/ | ||
function getTokenBeforeClosingBracket(node) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function (and validateBeforeSelfClosing
) were basically copied from jsx-space-before-closing
.
This LGTM! @yannickcr, with this we could deprecate |
a1e0011
to
29a5376
Compare
|
||
The following patterns are considered warnings when configured `"never"`: | ||
|
||
```js |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great if these used jsx
instead of js
for better syntax highlighting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't know GFM supported that :o
LGTM. Thanks @Kovensky! |
2e0207a
to
7028de0
Compare
Rebased to fix the merge conflict. |
18c9664
to
1a2c886
Compare
hi. any movement on this? looking forward to it |
@Kovensky this needs to be freshly rebased. @yannickcr, could you review after that and merge if i's OK? |
1a2c886
to
3494587
Compare
@ljharb @yannickcr done! The only conflict was in |
3494587
to
1289239
Compare
Rebased to fix merge conflicts again. |
Replaces #706 after some discussion summarised on #693 (comment).