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.

[multline-comment-style] fix breaks code

See original GitHub issue

Tell us about your environment

  • ESLint Version: 6.7.2
  • Node Version: 12.14.1
  • npm Version: 6.13.4

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

Please show your full configuration:


What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint. When autofixing the following code it resulted in non-parseable js code. This is a minimal reproducible example.

/* eslint-enable multiline-comment-style */
  // a line comment

What did you expect to happen? I expect it to not yield non-parseable code.

What actually happened? Please include the actual, raw output from ESLint. It yielded non-parseable code

Issue Analytics

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

github_iconTop GitHub Comments

jpramassinicommented, Jan 16, 2020

I’d be interested in jumping on this one if there aren’t any other takers.

karthikkpcommented, Jan 22, 2020

@jpramassini Thank you. I am taking up this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

eslint --fix breaks code when no-duplicate-imports happens
The issue has been resolved, it was a bug with eslint itself and the latest version (8.11.0) has applied a fix.
Read more >
Rules - ESLint - Pluggable JavaScript Linter
These rules relate to possible logic errors in code: ... Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements. Categories:.
Read more >
Automatically fix ESLint code validation errors in Visual Studio ...
Automatically fix ESLint code validation errors in Visual Studio Code ... It turns out that if you break a style rule, and you...
Read more >
Using Prettier and ESLint to automate formatting and fixing ...
Learn how to use ESLint and Prettier together to automatically format and fix JavaScript code in your projects.
Read more >
How To Enable Linting on Save with Visual Studio Code and ...
Learn how to lint your code on every file save using ESLint rules and VS ... Next, create a JavaScript file that intentionally...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found