Skip to content

Commit 6407d4d

Browse files
committedNov 28, 2023
Remove target, module and moduleResolution from compiler option overrides
1 parent db951b2 commit 6407d4d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed
 

‎packages/knip/src/ProjectPrincipal.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,13 @@ import type { GlobbyFilterFunction } from 'globby';
1919
// These compiler options override local options
2020
const baseCompilerOptions = {
2121
allowJs: true,
22-
jsx: ts.JsxEmit.Preserve,
23-
jsxImportSource: undefined,
2422
allowSyntheticDefaultImports: true,
2523
esModuleInterop: true,
24+
jsx: ts.JsxEmit.Preserve,
25+
jsxImportSource: undefined,
26+
lib: [],
2627
skipDefaultLibCheck: true,
2728
skipLibCheck: true,
28-
lib: [],
29-
target: ts.ScriptTarget.Latest,
30-
module: ts.ModuleKind.CommonJS,
31-
moduleResolution: ts.ModuleResolutionKind.NodeNext,
3229
};
3330

3431
const tsCreateProgram = timerify(ts.createProgram);

0 commit comments

Comments
 (0)
Please sign in to comment.