Validates indentation for switch statements and block statements
Types: Integer, String or Object
Values:
Integer: A positive number of spacesString: "\t" for tab indentationObject:value: (required) the same effect as the non-object valuesincludeEmptyLines (deprecated): (default: false) require empty lines to be indented'allExcept' array of exceptions:'comments' ignores comments'emptyLines' ignore empty lines, included by defaultJSHint: indent
"validateIndentation": "\t"
2if (a) {
b=c;
function(d) {
e=f;
}
}
2if (a) {
b=c;
function(d) {
e=f;
}
}
"\t"if (a) {
b=c;
function(d) {
e=f;
}
}
"\t"if (a) {
b=c;
function(d) {
e=f;
}
}
{ "value": "\t", "allExcept": ["emptyLines"] }if (a) {
b=c;
function(d) {
e=f;
}
} // single tab character on previous line
{ "value": "\t", "allExcept": ["emptyLines"] } }if (a) {
b=c;
function(d) {
e=f;
}
} // no tab character on previous line
{ "value": "\t", "allExcept": ["comments"] }if (a) {
b=c;
// e=f
}