Skip to content

Commit 07c52ae

Browse files
committed
oss sensible path for "checkFileToBeIgnored"
1 parent b4582b2 commit 07c52ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eslint-adapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class ESLintAdapter {
127127
}
128128

129129
public checkFileToBeIgnored(fileName: string) {
130-
if (fileName.indexOf("node_modules/") !== -1) return;
130+
if (fileName.indexOf("node_modules" + path.sep) !== -1) return;
131131
if (!fileName.endsWith(".ts") && !fileName.endsWith(".tsx")) return;
132132
Promise.resolve()
133133
.then(() => new ESLint())

0 commit comments

Comments
 (0)