问题
How do we not allow hard tabs in my codebase? We are using JSHint.
I think smarttabs only disallows mixed tabs on the same line.
What option should we be using to achieve this?
回答1:
JSCS validateIndentation is the relevant option. It corresponds to the (deprecated) JSHint indent option.
来源:https://stackoverflow.com/questions/28897776/how-do-we-not-allow-hard-tabs-in-my-codebase-we-are-using-jshint