1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-08 04:50:07 +00:00

chore(*): split lint module into smaller submodules, added tests

This commit is contained in:
Krishna Acondy
2021-03-31 08:32:42 +01:00
parent a8ca534b0b
commit c0d27fa254
16 changed files with 472 additions and 298 deletions

View File

@@ -11,7 +11,7 @@ const test = (value: string, lineNumber: number, config?: LintConfig) => {
const indentationMultiple = isNaN(config?.indentationMultiple as number)
? 2
: config?.indentationMultiple
: config!.indentationMultiple
if (indentationMultiple === 0) return []
const numberOfSpaces = value.search(/\S|$/)