Skip to content

Commit e630ab1

Browse files
committed
Report semantic errors for JS files if checkJs is enabled
1 parent 3378f5c commit e630ab1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/session.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ namespace ts.server {
3131
}
3232
else {
3333
// For configured projects, require that skipLibCheck be set also
34-
return project.getCompilerOptions().skipLibCheck && project.isJsOnlyProject();
34+
const options = project.getCompilerOptions();
35+
return options.skipLibCheck && !options.checkJs && project.isJsOnlyProject();
3536
}
3637
}
3738

0 commit comments

Comments
 (0)