From 0dfd1fb85b23be6a9a548776427dcff26eb468ce Mon Sep 17 00:00:00 2001 From: Sabir Hassan Date: Mon, 17 Apr 2023 15:12:21 +0500 Subject: [PATCH] fix: pass lintConfig as param to isIgnored function --- src/lint/lintFile.ts | 2 +- src/lint/lintFolder.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lint/lintFile.ts b/src/lint/lintFile.ts index 33884f1..1de300f 100644 --- a/src/lint/lintFile.ts +++ b/src/lint/lintFile.ts @@ -13,7 +13,7 @@ export const lintFile = async ( filePath: string, configuration?: LintConfig ): Promise => { - if (await isIgnored(filePath)) return [] + if (await isIgnored(filePath, configuration)) return [] const config = configuration || (await getLintConfig()) const text = await readFile(filePath) diff --git a/src/lint/lintFolder.ts b/src/lint/lintFolder.ts index 2ae85c4..122630b 100644 --- a/src/lint/lintFolder.ts +++ b/src/lint/lintFolder.ts @@ -26,7 +26,7 @@ export const lintFolder = async ( const config = configuration || (await getLintConfig()) let diagnostics: Map = new Map() - if (await isIgnored(folderPath)) return diagnostics + if (await isIgnored(folderPath, config)) return diagnostics const fileNames = await listSasFiles(folderPath) await asyncForEach(fileNames, async (fileName) => {