diff --git a/tsconfig.base.json b/tsconfig.base.json new file mode 100644 index 0000000000..a7cf5da0a2 --- /dev/null +++ b/tsconfig.base.json @@ -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"] +} diff --git a/tsconfig.jest.json b/tsconfig.jest.json index 47e7269e38..05fe2c8c11 100644 --- a/tsconfig.jest.json +++ b/tsconfig.jest.json @@ -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"] diff --git a/tsconfig.json b/tsconfig.json index 81cdc34018..e8195e9eae 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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"] }