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

Delete .( warning in React Stateless Component #33

Closed
tapas4java opened this issue Jun 26, 2017 · 2 comments
Closed

Delete .( warning in React Stateless Component #33

tapas4java opened this issue Jun 26, 2017 · 2 comments
Labels

Comments

@tapas4java
Copy link

Hi,

Thanks for this plugin. Prettier is keep complaining about ( and ) around JSX on a stateless component. Is it a bug or are there any rule to disable this warning?

const App = ({ session }) => (
   <div>Hello!</div>
);
@not-an-aardvark
Copy link
Member

Hi, thanks for reporting. This plugin just enforces prettier styling, so if it's enforcing something that you think is incorrect, I would recommend opening an issue on that repository instead. The exception would be if this plugin is enforcing something that prettier doesn't enforce -- if so, please provide more details about what the issue is and what you're expecting to happen.

@tapas4java
Copy link
Author

Thanks @not-an-aardvark for the confirmation. I will raise a ticket on prettier repo.

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

No branches or pull requests

2 participants