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

standard has no opinion on function arg linebreaks #1008

Open
cdaringe opened this issue Oct 30, 2017 · 1 comment

Comments

@cdaringe
Copy link

commented Oct 30, 2017

problem statement

  • standard has no opinion on function arg linebreaks

discussion

it would be nice to have some opinion on this.

support for this generally comes in eslint 4.x.

example

function x (foo,
  bar
) {}

function  y (foo, bar) {}

function z (
  foo,
  bar
) {}

it is my opinion that x should not freely co-exist with z.

i believe it would entail configuring https://eslint.org/docs/rules/function-paren-newline for "consistent" mode.

i noticed this when using https://github.com/sheerun/prettier-standard to auto-standardify my code (@sheerun), and it converted z style to x style.

thanks for your time and consideration.

@stale

This comment has been minimized.

Copy link

commented May 10, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label May 10, 2018

@stale stale bot closed this May 17, 2018

@feross feross added the enhancement label May 20, 2018

@feross feross added this to the standard v12 milestone May 20, 2018

@feross feross reopened this May 20, 2018

@stale stale bot removed the stale label May 20, 2018

@feross feross modified the milestones: standard v12, standard v13 Aug 28, 2018

@feross feross modified the milestones: standard v13, standard v14 Jul 5, 2019

@feross feross modified the milestones: standard 14, standard 15 Aug 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.