Add a `--fix` flag to automatically fix lint errors
See original GitHub issueIs 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:
- Created 5 years ago
- Reactions:12
- Comments:15
Top 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 >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
The problem still exists.
Thanks.
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.