Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 746 Bytes

no-tabs.md

File metadata and controls

41 lines (26 loc) · 746 Bytes

Disallow tabs in file (no-tabs)

some style guides don't allow the use of tab characters anywhere. So they would want to disallow tab anywhere inside a file including comments.

Rule Details

This rule looks for tabs inside the file. It can abe anywhere inside code or comments or anything.

Examples of incorrect code for this rule:

var a /t= 2;

/**
* /t/t its a test function
*/
function test(){}

var x = 1; // /t test

Examples of correct code for this rule:

var a = 2;

/**
* its a test function
*/
function test(){}

var x = 1; // test

When Not To Use It

If you have established a standard where having tabs is fine.

Compatibility