1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-08 04:50:07 +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

@@ -0,0 +1,6 @@
import { listFilesInFolder } from '@sasjs/utils/file'
export const listSasFiles = async (folderPath: string): Promise<string[]> => {
const files = await listFilesInFolder(folderPath)
return files.filter((f) => f.endsWith('.sas'))
}