Skip to content

Commit 2a0ce9c

Browse files
committed
refactor: avoid shadowing global ignore
1 parent a37b5da commit 2a0ce9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/validator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ export const useChecker = (
6868
}
6969

7070
export function isIgnored(path: string, ignore: Array<string | RegExp> = []) {
71-
return ignore.some(ignore => typeof ignore === 'string' ? path === ignore : ignore.test(path))
71+
return ignore.some(i => typeof i === 'string' ? path === i : i.test(path))
7272
}

0 commit comments

Comments
 (0)