Skip to content
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

Merged
merged 5 commits into from
Nov 7, 2016

Conversation

Jessidhia
Copy link
Contributor

@Jessidhia Jessidhia commented Jul 25, 2016

Replaces #706 after some discussion summarised on #693 (comment).

* @param {ASTNode} node - The JSX element node.
* @returns {Token} The token before the closing bracket.
*/
function getTokenBeforeClosingBracket(node) {
Copy link
Contributor Author

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.

@ljharb
Copy link
Member

ljharb commented Jul 25, 2016

This LGTM! @yannickcr, with this we could deprecate jsx-space-before-closing and have a more general/useful rule.


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

```js
Copy link
Collaborator

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.

Copy link
Contributor Author

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

@lencioni
Copy link
Collaborator

lencioni commented Aug 7, 2016

LGTM. Thanks @Kovensky!

@Jessidhia
Copy link
Contributor Author

Rebased to fix the merge conflict.

@kentor
Copy link
Contributor

kentor commented Oct 23, 2016

hi. any movement on this? looking forward to it

@ljharb
Copy link
Member

ljharb commented Oct 23, 2016

@Kovensky this needs to be freshly rebased. @yannickcr, could you review after that and merge if i's OK?

@Jessidhia
Copy link
Contributor Author

@ljharb @yannickcr done! The only conflict was in index.js.

@Jessidhia
Copy link
Contributor Author

Rebased to fix merge conflicts again.

@ljharb ljharb merged commit 56846a6 into jsx-eslint:master Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

5 participants