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

Adds extra comma #160

Closed
AaronVasquez opened this issue Jan 13, 2017 · 2 comments
Closed

Adds extra comma #160

AaronVasquez opened this issue Jan 13, 2017 · 2 comments
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Comments

@AaronVasquez
Copy link

Seems to be adding an extra comma. Might be a fat arrow compatibility issue?

request(
    {
      url: fetchUrl,
      method: 'GET',
    },
    (err, res, body) => {
      // Do whatever.
    }, // <== This comma is added.
  );
@AaronVasquez
Copy link
Author

Also, I have trailing comma turned on.

@jlongster
Copy link
Member

See #68. Right now trailing commas also put them in function args because that is soon going to be a JS standard and there is a babel extension to strip them out. But we plan on making trailingCommas a tiered config option.

@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jul 8, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

No branches or pull requests

2 participants