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.

Add a `--fix` flag to automatically fix lint errors

See original GitHub issue

Is your feature request related to a problem? Please describe. No way to automatically format a HTML file to obey the linting rules. This is especially problematic on large files.

Describe the solution you’d like Support a --fix flag like other linters such as ESLint.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:12
  • Comments:15

github_iconTop GitHub Comments

4reactions
Kristinitacommented, Jan 17, 2021

The problem still exists.

Thanks.

4reactions
tom-shermancommented, Jul 20, 2020

I’d just like to notify you all that eslint is currently discussing how to support languages other than JavaScript.

I believe that this would offer a much better platform for a more modern HTML/XML linter.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Auto-fix and format your JavaScript with ESLint - IBM Developer
One of my favorite features is the ability to auto-fix using the --fix flag. Integrating auto-fix provides constant feedback by cleaning up mistakes...
Read more >
Grunt-eslint & enabling `--fix` flag to auto fix violations
For the --fix flag, you only have to add an options: { fix: true } to your gruntfile. Here is an example of...
Read more >
How to Use ESLint "fix": Options, Issue Types, Exit Codes, and ...
In this article I'll discuss the flags available for 'fix', the types of issues ( problem , suggestion , layout ) that 'fix'...
Read more >
Don't just lint your code - fix it with Prettier - freeCodeCamp
When using these in practice, your best bet is to always run format first to let it try to automatically fix anything it...
Read more >
Command Line Interface - ESLint - Pluggable JavaScript Linter
The ESLint Command Line Interface (CLI) lets you execute linting from the ... Deprecated: Use rules from plugins Fix problems: --fix Automatically fix...
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