M
M
mrSeller2020-03-03 16:17:27
Linter
mrSeller, 2020-03-03 16:17:27

How to fix certain lintjs errors?

The task is to fix more than ten thousand lint errors in the project.
To make it easier, the tactic was chosen to take any error and correct it automatically (if possible) in all files, without touching other errors. For example, fix project-wide, according to lint, `comma-dangle`.

I read the doc - I did not find such opportunities (maybe I missed something), I found only this:

spoiler

--fix-type
This option allows you to specify the type of fixes to apply when using either --fix or --fix-dry-run. The three types of fixes are:

problem - fix potential errors in the code
suggestion - apply fixes to the code that improve it
layout - apply fixes that do not change the program structure (AST)



Is there any possibility to follow such tactics using linter?
Maybe you can add an auxiliary plugin for this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question