question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto fix conflict (implicit-arrow-linebreak and max-len)

See original GitHub issue

Tell us about your environment

  • ESLint Version: 5.3.0
  • Node Version: 10.10.0
  • npm Version: 6.4.1

What parser (default, Babel-ESLint, etc.) are you using? babel-eslint

Please show your full configuration:

Configuration
"eslintConfig": {
  "parser": "babel-eslint",
  "rules": {
    "max-len": ["error", 100],
    "implicit-arrow-linebreak": ["error", "beside"]
  }
}

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

const someIncrediblyRidiculousSuperLongFnName = (foo, bar) =>
  someOtherIncrediblyRidiculousSuperLongFnName(foo, bar);
eslint --fix

What did you expect to happen?

const someIncrediblyRidiculousSuperLongFnName = (foo, bar) => (
  someOtherIncrediblyRidiculousSuperLongFnName(foo, bar)
);

What actually happened? Please include the actual, raw output from ESLint.

// FIXME: Fixed implicit-arrow-linebreak, but broke max-len
const someIncrediblyRidiculousSuperLongFnName = (foo, bar) => someOtherIncrediblyRidiculousSuperLongFnName(foo, bar);

Are you willing to submit a pull request to fix this bug? Not in the near future, but would be willing to eventually.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

16reactions
eslint-deprecated[bot]commented, Mar 21, 2019

Unfortunately, it looks like there wasn’t enough interest from the team or community to implement this change. While we wish we’d be able to accommodate everyone’s requests, we do need to prioritize. We’ve found that issues failing to reach accepted status after 21 days tend to never be accepted, and as such, we close those issues. This doesn’t mean the idea isn’t interesting or useful, just that it’s not something the team can commit to.

Thanks for contributing to ESLint and we appreciate your understanding.

1reaction
DZuz14commented, Jul 12, 2019

Was looking for this tonight. C’mon eslint bot, show us and them sweet arrow functions some love.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Automatically Resolve Git Merge Conflicts in Favor ...
Read this tutorial and solve the problem of resolving git merge conflicts in favor of pulled changes. Get overall understanding of Git merge...
Read more >
How to automatically resolve merge conflicts by selecting ...
Is there any way to specify to git to automatically resolve the conflicts for a pack of files by taking the remote version...
Read more >
Git merge conflicts | Atlassian Git Tutorial
What is a git merge conflict? A merge conflict arises when Git cannot automatically resolve code differences between two commits. Learn more here....
Read more >
How to Resolve Merge Conflicts in Git?
What is a Git Merge Conflict? A merge conflict is an event that takes place when Git is unable to automatically resolve differences...
Read more >
How to Resolve Merge Conflicts in Git Tutorial
The `git merge` command's primary job is to combine two branches and automatically resolve the conflicts. However, from time to time conflicts surface...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found