-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Indent props aligned to first. #1429
Comments
I don't think that we have a rule that enforces this style at the moment. |
How difficult is it to implement such a thing for a new contributor? I may be able to give it a try. |
I think it would be possible to implement. Can't say how hard it would be, definitely not easy but not impossible either.
I'm not sure if this should be a new rule, an option to an existing rule, or if it's something we want at all. I personally do not like this style at all and much more prefer: <MyComponent
prop1={x}
prop2={y}
prop3={z}
/> But I understand everyone wants something different 😄 |
Thanks 👍 may try an implementation this weekend. |
@hallaathrad did anything come of this? Edit: |
Wishing there was a rule to force indentation of props similar to the parameter indentation by eslint.
https://eslint.org/docs/rules/indent#functiondeclaration
My idea would be to have something that looks like this:
Am I missing this as an option for an existing rule?
The text was updated successfully, but these errors were encountered: