Some style guides don’t allow the use of tab characters at all, including within comments.
This rule looks for tabs anywhere inside a file: code, comments or anything else.
Examples of incorrect code for this rule:
var a /t= 2; /** * /t/t it's a test function */ function test(){} var x = 1; // /t test
Examples of correct code for this rule:
var a = 2; /** * it's a test function */ function test(){} var x = 1; // test
If you have established a standard where having tabs is fine.
This rule was introduced in ESLint 3.2.0.
© JS Foundation and other contributors
Licensed under the MIT License.
https://eslint.org/docs/rules/no-tabs