What does the number in eslint rule arrays mean?

I’ve found it myself by using another number than 0,1 or 2. I defines the severity of a rule.

Severity should be one of the following: 0 = off, 1 = warning, 2 = error (you passed "3").

Documentation: https://eslint.org/docs/user-guide/configuring/rules

Leave a Comment