Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Add an automated fix for arrow-parens #62

Merged
merged 1 commit into from Jun 1, 2016

Conversation

lemonmade
Copy link
Contributor

This PR adds an automated fix for babel/arrow-parens. If parens are needed, it adds them, if not, it removes them. Let me know if you'd like me to raise an issue for this in addition to the PR, or if you don't think this should be added.

cc/ @hzoo

@jquense jquense merged commit 934ec49 into babel:master Jun 1, 2016
@jquense
Copy link
Contributor

jquense commented Jun 1, 2016

thanks!

@hzoo
Copy link
Member

hzoo commented Jun 1, 2016

Does this work with spread like (...a) ok I'm confusing myself here

Maybe add a little thing to the docs like the rule is fixable like on the eslint website

rule (fixable) is fine

-- nvm did it

@hzoo
Copy link
Member

hzoo commented Jun 1, 2016

Also realized There was a previous PR for this #46

@hzoo
Copy link
Member

hzoo commented Jun 1, 2016

Also @jquense we should probably do something to track when the rule was forked from eslint so its easier to know how to update with upstream changes. Something simple we can do is add the git commit sha from where it was forked

@lemonmade
Copy link
Contributor Author

@hzoo sorry, should have taken a look through other PRs. Thanks very much for the quick merge/ fix to the documentation!

nicolo-ribaudo pushed a commit to babel/babel that referenced this pull request Nov 14, 2019
…r-arrow-parens

Add an automated fix for arrow-parens
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants