1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-05 03:30:06 +00:00

fix: check tab indentation in whole line

This commit is contained in:
2022-12-09 16:36:09 +05:00
parent 8be59ac591
commit 3701253302
8 changed files with 163 additions and 116 deletions

View File

@@ -10,7 +10,7 @@ import {
indentationMultiple,
maxLineLength,
noEncodedPasswords,
noTabIndentation,
noTabs,
noTrailingSpaces
} from '../rules/line'
import { lowerCaseFileNames, noSpacesInFileNames } from '../rules/path'
@@ -60,8 +60,8 @@ export class LintConfig {
this.lineLintRules.push(noEncodedPasswords)
}
if (json?.noTabIndentation) {
this.lineLintRules.push(noTabIndentation)
if (json?.noTabs || json?.noTabIndentation) {
this.lineLintRules.push(noTabs)
}
if (json?.maxLineLength) {