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

feat(lint): add lintFolder and lintProject APIs

This commit is contained in:
Krishna Acondy
2021-03-30 08:59:38 +01:00
parent 1c09a10290
commit a8ca534b0b
7 changed files with 84 additions and 10 deletions

View File

@@ -27,6 +27,7 @@ export async function getLintConfig(): Promise<LintConfig> {
const configuration = await readFile(
path.join(projectRoot, '.sasjslint')
).catch((_) => {
console.warn('Unable to load .sasjslint file. Using default configuration.')
return JSON.stringify(DefaultLintConfiguration)
})
return new LintConfig(JSON.parse(configuration))