1
0
mirror of https://github.com/sasjs/lint.git synced 2025-12-10 17:34:36 +00:00

chore(*): throw error when project root is not found

This commit is contained in:
Krishna Acondy
2021-03-31 08:34:02 +01:00
parent c0d27fa254
commit 28d5e7121a

View File

@@ -8,5 +8,9 @@ import { lintFolder } from './lintFolder'
export const lintProject = async () => {
const projectRoot =
(await getProjectRoot()) || process.projectDir || process.currentDir
if (!projectRoot) {
throw new Error('SASjs Project Root was not found.')
}
return await lintFolder(projectRoot)
}