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

feat(lint): add rules for lowercase file names, max line length and no tab indentation

This commit is contained in:
Krishna Acondy
2021-03-26 09:09:42 +00:00
parent 1be358ca51
commit 3631f5c25c
15 changed files with 265 additions and 12 deletions

View File

@@ -18,6 +18,7 @@ describe('getLintConfig', () => {
expect(config).toBeInstanceOf(LintConfig)
expect(config.fileLintRules.length).toEqual(1)
expect(config.lineLintRules.length).toEqual(2)
expect(config.lineLintRules.length).toEqual(4)
expect(config.pathLintRules.length).toEqual(2)
})
})

View File

@@ -6,7 +6,11 @@ import { getProjectRoot } from './getProjectRoot'
const defaultConfiguration = {
noTrailingSpaces: true,
noEncodedPasswords: true,
hasDoxygenHeader: true
hasDoxygenHeader: true,
noSpacesInFileNames: true,
lowerCaseFileNames: true,
maxLineLength: 80,
noTabIndentation: true
}
/**
* Fetches the config from the .sasjslint file and creates a LintConfig object.