I
I
Ivan2020-11-10 15:11:55
JavaScript
Ivan, 2020-11-10 15:11:55

Is it possible to somehow arrange for all linter errors to ignore warning and errors?

I came to a new project, there was no concept of code-style at all, I am implementing eslint with rules. Linter found about 2k problems that cannot be fixed (only manually). Is it possible to somehow temporarily ignore all errors at once, so that the project does not get up?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aetae, 2020-11-11
@Aetae

Without eslint-plugin-only-warn , it is impossible to work with eslint. The fact that every little thing, guaranteed not to cause real errors, they have by default error, and not warningalways freezes me.
Next, you will need eslint-plugin-autofix , which will autofix "dangerous" things (which are not fixed by default). Only here you already need to do it carefully and look at the changes with your eyes after the fix (git for help).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question