diff --git a/biome.jsonc b/biome.jsonc index ed53544..cacca48 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -6,7 +6,8 @@ }, "formatter": { "indentStyle": "space", - "lineWidth": 100 + "lineWidth": 100, + "ignore": ["**/*.json"] }, "javascript": { "formatter": { diff --git a/src/compileTypes/helpers/getTSConfigCompilerOptions.ts b/src/compileTypes/helpers/getTSConfigCompilerOptions.ts index 3bad96b..1ebbd91 100644 --- a/src/compileTypes/helpers/getTSConfigCompilerOptions.ts +++ b/src/compileTypes/helpers/getTSConfigCompilerOptions.ts @@ -32,5 +32,7 @@ export function getTSConfigCompilerOptions( return parsedConfig.options; } - return require(tsconfigPath).compilerOptions; + const { allowJs, ...compilerOptions } = require(tsconfigPath); + + return compilerOptions; }