Skip to content

Commit

Permalink
[REF] tsconfig: use tsconfig.base.json for common settings
Browse files Browse the repository at this point in the history
Task: 0
  • Loading branch information
pro-odoo committed Sep 20, 2024
1 parent a114706 commit 045b799
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 36 deletions.
22 changes: 22 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "ES6",
"target": "ESNext",
"preserveConstEnums": true,
"noImplicitThis": true,
"moduleResolution": "node",
"removeComments": false,
"alwaysStrict": true,
"noUnusedLocals": true,
"noUnusedParameters": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"strictPropertyInitialization": true,
"strictNullChecks": true,
"esModuleInterop": true,
"allowJs": true,
"sourceMap": true,
"strictBindCallApply": true
},
"include": ["src"]
}
20 changes: 2 additions & 18 deletions tsconfig.jest.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"preserveConstEnums": true,
"noImplicitThis": true,
"moduleResolution": "node",
"removeComments": false,
"target": "ESNext",
"outDir": "dist",
"alwaysStrict": true,
"noUnusedLocals": true,
"noUnusedParameters": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"strictPropertyInitialization": true,
"strictNullChecks": true,
"esModuleInterop": true,
"allowJs": true,
"sourceMap": true,
"strictBindCallApply": true
"outDir": "dist"
},
"include": ["src", "tests"],
"files": ["global.d.ts"]
Expand Down
20 changes: 2 additions & 18 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,8 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "ES6",
"preserveConstEnums": true,
"noImplicitThis": true,
"moduleResolution": "node",
"removeComments": false,
"target": "ESNext",
"outDir": "build/js",
"alwaysStrict": true,
"noUnusedLocals": true,
"noUnusedParameters": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"strictPropertyInitialization": true,
"strictNullChecks": true,
"esModuleInterop": true,
"allowJs": true,
"preserveWatchOutput": true,
"sourceMap": true,
"strictBindCallApply": true
"preserveWatchOutput": true
},
"include": ["src"]
}

0 comments on commit 045b799

Please sign in to comment.