[multline-comment-style] fix breaks code
See original GitHub issueTell 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:
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
some.code();
*/
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:
- Created 4 years ago
- Comments:8 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’d be interested in jumping on this one if there aren’t any other takers.
@jpramassini Thank you. I am taking up this issue