I'm setting up enforcement of style rules for a JavaScript project and I'd like to disallow tabs in files altogether (favoring two spaces per indent level). The only related jscs option I've found is disallowMixedSpacesAndTabs, which doesn't disallow tabs completely.
Asked
Active
Viewed 116 times
0
-
I saw http://stackoverflow.com/questions/28897776/how-do-we-not-allow-hard-tabs-in-my-codebase-we-are-using-jshint but decided to open this question because that one is specific to jshint. – Mike Ottum Sep 04 '15 at 20:27
-
How about having the build script just egrep the sources for tab characters? – Pointy Sep 04 '15 at 20:29
1 Answers
0
JSCS validateIndentation is the option I was looking for. It corresponds to the (deprecated) JSHint indent option.

Mike Ottum
- 1,361
- 1
- 12
- 20