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

Unnecessary new line in arrow function #925

Closed
michaelgmcd opened this issue Mar 7, 2017 · 7 comments
Closed

Unnecessary new line in arrow function #925

michaelgmcd opened this issue Mar 7, 2017 · 7 comments
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Comments

@michaelgmcd
Copy link

michaelgmcd commented Mar 7, 2017

Before:

export const selectShapeData = (
  state : AppState,
  containerId : string,
  shapeId : string,
  entityName : string,
) => getPath(['shapeData', containerId, shapeId, entityName], state) || null;

After:

export const selectShapeData = (
  state : AppState,
  containerId : string,
  shapeId : string,
  entityName : string,
) =>
  getPath(['shapeData', containerId, shapeId, entityName], state) || null;

Note that the "Before" satisfies my configured line length of 100 characters.

@michaelgmcd
Copy link
Author

Sorry if I wasn't clear enough, what kind of information do you need?

@vjeux
Copy link
Contributor

vjeux commented Mar 7, 2017

Can you upgrade your version of prettier to 0.21 and see if that fixes your problem?

@michaelgmcd
Copy link
Author

Happened through prettier-atom 0.22.0. Wasn't sure if I should make an issue here or there.

@vjeux
Copy link
Contributor

vjeux commented Mar 7, 2017

Hmm, this is weird, this is up to date. I'm not sure what is going on. If you look at the web version, it does work and break correctly. Maybe restart atom so it makes sure to use the latest version?

@michaelgmcd
Copy link
Author

I found it.
screen shot 2017-03-07 at 2 24 59 pm
prettier-eslint uses prettier 0.19.0. Enabling the eslint integration option in the plugin uses prettier-eslint which in turn uses the outdated prettier version.

@vjeux
Copy link
Contributor

vjeux commented Mar 7, 2017

Good catch! We need to figure out how to get all the tools to use a canonical version. See #918 for discussions around it.

I'll close this issue for now.

@vjeux vjeux closed this as completed Mar 7, 2017
@azz azz added status:awaiting response Issues that require answers to questions from maintainers before action can be taken and removed needs more info labels Oct 1, 2017
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jul 6, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 6, 2018
@j-f1 j-f1 removed the status:awaiting response Issues that require answers to questions from maintainers before action can be taken label Aug 19, 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

4 participants