tweak tsconfig
This commit is contained in:
parent
657d48aac0
commit
409b5e2f6b
4 changed files with 31 additions and 20 deletions
2
.github/workflows/test-and-publish.yml
vendored
2
.github/workflows/test-and-publish.yml
vendored
|
|
@ -52,7 +52,7 @@ jobs:
|
||||||
needs: [version]
|
needs: [version]
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [16.x, 18.x]
|
node-version: [16.x, 18.x, 20.x]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,5 @@ export class Diff2HtmlUI extends Diff2HtmlUIBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export { Diff2HtmlUIConfig, defaultDiff2HtmlUIConfig };
|
export { defaultDiff2HtmlUIConfig };
|
||||||
|
export type { Diff2HtmlUIConfig };
|
||||||
|
|
|
||||||
|
|
@ -9,4 +9,5 @@ export class Diff2HtmlUI extends Diff2HtmlUIBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export { Diff2HtmlUIConfig, defaultDiff2HtmlUIConfig };
|
export { defaultDiff2HtmlUIConfig };
|
||||||
|
export type { Diff2HtmlUIConfig };
|
||||||
|
|
|
||||||
|
|
@ -1,28 +1,37 @@
|
||||||
{
|
{
|
||||||
|
"include": ["*env.d.ts", "src/**/*", "./typings/**/*"],
|
||||||
|
"exclude": ["node_modules", "src/__tests__/**"],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./_target",
|
"outDir": "_target",
|
||||||
"target": "es5",
|
"module": "CommonJS",
|
||||||
"module": "commonjs",
|
"moduleResolution": "Node",
|
||||||
"moduleResolution": "node",
|
"target": "ES6",
|
||||||
"lib": ["es2020", "dom"],
|
"lib": ["ES6", "DOM"],
|
||||||
|
"jsx": "preserve",
|
||||||
"allowJs": false,
|
"allowJs": false,
|
||||||
|
"checkJs": false,
|
||||||
|
"importHelpers": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"allowSyntheticDefaultImports": true,
|
||||||
|
"strict": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"noImplicitReturns": true,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"resolveJsonModule": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"declarationMap": true,
|
"declarationMap": true,
|
||||||
|
"sourceMap": true,
|
||||||
|
"noEmit": false,
|
||||||
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"incremental": false,
|
||||||
"strictNullChecks": true,
|
"strictNullChecks": true,
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"preserveConstEnums": true,
|
"preserveConstEnums": true,
|
||||||
"sourceMap": true,
|
|
||||||
"alwaysStrict": true,
|
"alwaysStrict": true,
|
||||||
"strict": true,
|
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"noImplicitThis": true,
|
"noImplicitThis": true
|
||||||
"noUnusedParameters": true,
|
}
|
||||||
"noUnusedLocals": true,
|
|
||||||
"noImplicitReturns": true,
|
|
||||||
"noFallthroughCasesInSwitch": true,
|
|
||||||
"forceConsistentCasingInFileNames": true,
|
|
||||||
"esModuleInterop": true
|
|
||||||
},
|
|
||||||
"include": ["./src/**/*", "./typings/**/*"],
|
|
||||||
"exclude": ["node_modules", "./src/__tests__/*"]
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue