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

Chore: update space-before-function-paren in eslint-config-eslint #12966

Merged
merged 2 commits into from Mar 2, 2020

Conversation

kaicataldo
Copy link
Member

@kaicataldo kaicataldo commented Feb 26, 2020

Prerequisites checklist

  • I have read the contributing guidelines.
  • The team has reached consensus on the changes proposed in this pull request. If not, I understand that the evaluation process will begin with this pull request and won't be merged until the team has reached consensus.

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain:

Updating eslint-config-eslint

What changes did you make? (Give an overview)

Working on #12939, I noticed that we currently enforce no spaces between the async keyword and the parens of an async arrow function.
This PR updates our space-before-function-paren configuration to require a space in this case (leaving everything else unchanged).

Is there anything you'd like reviewers to focus on?

We have a few existing cases of async arrow functions in our codebase, but they're all in our tests. Does this seem desirable to everyone? I personally find it easier to parse visually.

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Feb 26, 2020
@kaicataldo kaicataldo added chore This change is not user-facing and removed triage An ESLint team member will look at this issue soon labels Feb 26, 2020
@mysticatea
Copy link
Member

I like that a space is there.

@kaicataldo
Copy link
Member Author

Going to go ahead and merge this since 3/4 TSC members are supportive of this change.

@kaicataldo kaicataldo merged commit 472025f into master Mar 2, 2020
@kaicataldo kaicataldo deleted the update-eslint-config-eslint branch March 2, 2020 16:55
montmanu pushed a commit to montmanu/eslint that referenced this pull request Mar 4, 2020
…lint#12966)

* Chore: update space-before-function-paren in eslint-config-eslint

* Run autofixer
@eslint-deprecated eslint-deprecated bot locked and limited conversation to collaborators Aug 31, 2020
@eslint-deprecated eslint-deprecated bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label Aug 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion chore This change is not user-facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants