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 · Fixed by standard/eslint-config-standard-jsx#38
Closed

Enforce consistent JSX opening tag spacing #1348

feross opened this issue Oct 6, 2016 · 4 comments · Fixed by standard/eslint-config-standard-jsx#38

Comments

@feross
Copy link
Member

feross 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
Copy link
Member

dcousens 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
Copy link

grxy commented May 11, 2017

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

@feross
Copy link
Member Author

feross 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 closed this as completed in a269c99 Aug 3, 2019
@feross
Copy link
Member Author

feross commented Aug 3, 2019

This will be part of standard v14!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants