Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit 15ea549

Browse files
Add no-tabs to base coding style
1 parent e7adb9b commit 15ea549

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

coding-styles/base.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ module.exports = {
213213
// with a mixture of tabs and spaces.
214214
'no-mixed-spaces-and-tabs': 1,
215215

216+
// Disallow tabs
217+
// Use of tabs is discouraged in favour of spaces because there is no "standard" width for a tab
218+
// character and many viewers/editors use their own tab width, which could cause code to be
219+
// misaligned and not formatted as intended/indented.
220+
'no-tabs': 1,
221+
216222
// Disallows multiple blank lines
217223
// Whitespace is useful for separating logical sections of code, but excess whitespace takes up
218224
// more of the screen.

0 commit comments

Comments
 (0)