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

Enforce consistent JSX opening tag spacing #1348

Closed
feross opened this issue Oct 6, 2016 · 4 comments

Comments

@feross
Copy link
Member

commented Oct 6, 2016

Closing tag spacing is already enforced:

$ echo '<t/>' | standard -
standard: Use JavaScript Standard Style (http://standardjs.com)
standard: Run `standard --fix` to automatically fix some problems.
  <text>:1:3: A space is required before closing bracket

Let's do the same for the opening tag:

$ echo '<t >hi</t>' | standard -
no error!

Is there a rule for this in eslint-plugin-react?

@dcousens

This comment has been minimized.

Copy link
Member

commented Oct 6, 2016

Is there a rule for this in eslint-plugin-react?

Not that I know of, but it definitely should be available for just generic JSX

@grxy

This comment has been minimized.

Copy link

commented May 11, 2017

@feross Is this issue to enforce <t> or <t > formatting on opening tags?

@feross

This comment has been minimized.

Copy link
Member Author

commented Apr 21, 2018

To enforce <t> formatting, obviously :)

@feross feross transferred this issue from standard/eslint-config-standard-jsx Aug 3, 2019

@feross feross added this to the standard v14 milestone Aug 3, 2019

@feross feross added the enhancement label Aug 3, 2019

@feross feross closed this in a269c99 Aug 3, 2019

@feross

This comment has been minimized.

Copy link
Member Author

commented Aug 3, 2019

This will be part of standard v14!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.