-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Preventing chained calls on multiple lines doesn't work #109
Comments
I don't know if we can solve this, but I'm open to suggestions. I recommend using |
Did this get resolved? I'm currently having this same exact issue. |
I'm having this issue too! And I'm using eslint. In some old projects I'm using jquery code with so much chains so I wanna turn off this behavior in prettier but can't. |
I am having the same issue ... so is there a way to stop breaking the chained calls ... eslint-config-prettier didn't worked for me. |
The way to solve this, at the moment, is to not use prettier and only use There's an open issue about fixing this behaviour in Today, I'm closing this as it's out of our hands. Edit: |
prettier-eslint-cli
version: 4.4.0prettier
version: 1.7.4eslint
version: 4.8.0Relevant code/config.
.eslintrc.json
.prettierrc.json
What you did:
I would like to stop Prettier from turning this:
Into:
Therefore I defined "newline-per-chained-call" in my ESLint config and as far as I understood, Prettier runs before ESLint, so my ESLint should override Prettier's output but it doesn't seem to happen.
What happened / Problem:
Prettier is still breaking up my chained method calls.
The text was updated successfully, but these errors were encountered: