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

react/jsx-closing-bracket-location fixer removes spread operator props #573

Closed
lencioni opened this issue Apr 25, 2016 · 1 comment
Closed
Labels

Comments

@lencioni
Copy link
Collaborator

If I have the following JSX:

import React from 'react';

export default function MyComponent(props) {
  return (
    <div
      className="MyComponent"
      {...props} />
  );
}

With the following rule configuration:

'react/jsx-closing-bracket-location': [2, 'line-aligned'],

I end up with the following result:

import React from 'react';

export default function MyComponent(props) {
  return (
    <div
      className="MyComponent"
    />
  );
}

Expected:

import React from 'react';

export default function MyComponent(props) {
  return (
    <div
      className="MyComponent"
      {...props}
    />
  );
}
@yannickcr
Copy link
Member

Mmm, this is bad. Looking at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants