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:
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user