Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

chore: merge child tsconfig files into base tsconfig (#83)

白熱0e75e4454592
diff --git a/cli/src/templates/base/tsconfig.json b/cli/src/templates/base/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/cli/src/templates/base/tsconfig.json
+++ b/cli/src/templates/base/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/cli/src/templates/common-plugin/tsconfig.json b/cli/src/templates/common-plugin/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/cli/src/templates/common-plugin/tsconfig.json
+++ b/cli/src/templates/common-plugin/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/cli/src/templates/docs-plugin/tsconfig.json b/cli/src/templates/docs-plugin/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/cli/src/templates/docs-plugin/tsconfig.json
+++ b/cli/src/templates/docs-plugin/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/cli/src/templates/sheets-plugin/tsconfig.json b/cli/src/templates/sheets-plugin/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/cli/src/templates/sheets-plugin/tsconfig.json
+++ b/cli/src/templates/sheets-plugin/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/cli/src/templates/slides-plugin/tsconfig.json b/cli/src/templates/slides-plugin/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/cli/src/templates/slides-plugin/tsconfig.json
+++ b/cli/src/templates/slides-plugin/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/examples/univer-doc-ts/tsconfig.json b/examples/univer-doc-ts/tsconfig.json
index 53d53c5e18..6d32a92259 100644
--- a/examples/univer-doc-ts/tsconfig.json
+++ b/examples/univer-doc-ts/tsconfig.json
@@ -1,30 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"downlevelIteration": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "experimentalDecorators": true,
"emitDecoratorMetadata": true,
"strictPropertyInitialization": false,
diff --git a/examples/univer-preact-ts/tsconfig.json b/examples/univer-preact-ts/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/examples/univer-preact-ts/tsconfig.json
+++ b/examples/univer-preact-ts/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/examples/univer-sheet-ts/tsconfig.json b/examples/univer-sheet-ts/tsconfig.json
index 60ad8a2091..9cd855187e 100644
--- a/examples/univer-sheet-ts/tsconfig.json
+++ b/examples/univer-sheet-ts/tsconfig.json
@@ -1,32 +1,14 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
"module": "commonjs",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"downlevelIteration": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "experimentalDecorators": true,
"emitDecoratorMetadata": true,
-
"strictPropertyInitialization": false,
},
"include": [
diff --git a/examples/univer-slide-ts/tsconfig.json b/examples/univer-slide-ts/tsconfig.json
index 53d53c5e18..6d32a92259 100644
--- a/examples/univer-slide-ts/tsconfig.json
+++ b/examples/univer-slide-ts/tsconfig.json
@@ -1,30 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"downlevelIteration": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "experimentalDecorators": true,
"emitDecoratorMetadata": true,
"strictPropertyInitialization": false,
diff --git a/examples/univer-vanilla-ts/tsconfig.json b/examples/univer-vanilla-ts/tsconfig.json
index 53d53c5e18..6d32a92259 100644
--- a/examples/univer-vanilla-ts/tsconfig.json
+++ b/examples/univer-vanilla-ts/tsconfig.json
@@ -1,30 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"downlevelIteration": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "experimentalDecorators": true,
"emitDecoratorMetadata": true,
"strictPropertyInitialization": false,
diff --git a/packages/base-docs/tsconfig.json b/packages/base-docs/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/packages/base-docs/tsconfig.json
+++ b/packages/base-docs/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/base-formula-engine/tsconfig.json b/packages/base-formula-engine/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/packages/base-formula-engine/tsconfig.json
+++ b/packages/base-formula-engine/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/base-numfmt-engine/tsconfig.json b/packages/base-numfmt-engine/tsconfig.json
index 6923af48df..d59c3caa7b 100644
--- a/packages/base-numfmt-engine/tsconfig.json
+++ b/packages/base-numfmt-engine/tsconfig.json
@@ -1,33 +1,11 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node",
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true,
-
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
},
"include": [
"src/**/*",
diff --git a/packages/base-render/tsconfig.json b/packages/base-render/tsconfig.json
index b6a930b5f9..08bec9af04 100644
--- a/packages/base-render/tsconfig.json
+++ b/packages/base-render/tsconfig.json
@@ -1,38 +1,15 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
// "paths": {
// "@*": ["src/*"]
// },
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/base-sheets/tsconfig.json b/packages/base-sheets/tsconfig.json
index e75011f8d5..46f5f6b59e 100644
--- a/packages/base-sheets/tsconfig.json
+++ b/packages/base-sheets/tsconfig.json
@@ -1,39 +1,16 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
"paths": {
"@*": [
"src/*"
]
},
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
}
}
\ No newline at end of file
diff --git a/packages/base-slides/tsconfig.json b/packages/base-slides/tsconfig.json
index de38bf48b9..9c073276de 100644
--- a/packages/base-slides/tsconfig.json
+++ b/packages/base-slides/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/base-ui/tsconfig.json b/packages/base-ui/tsconfig.json
index 27e67b18ed..970ff91209 100644
--- a/packages/base-ui/tsconfig.json
+++ b/packages/base-ui/tsconfig.json
@@ -1,36 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker",
- "dom.iterable"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
"strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
},
"include": [
"src/**/*",
diff --git a/packages/common-plugin-collaboration/tsconfig.json b/packages/common-plugin-collaboration/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/packages/common-plugin-collaboration/tsconfig.json
+++ b/packages/common-plugin-collaboration/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/common-plugin-data/tsconfig.json b/packages/common-plugin-data/tsconfig.json
index b19e8df0b2..118e8279ff 100644
--- a/packages/common-plugin-data/tsconfig.json
+++ b/packages/common-plugin-data/tsconfig.json
@@ -1,30 +1,13 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
-
- "lib": ["ESNext", "DOM", "WebWorker"],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
-
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
-
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
"jsx": "preserve",
- "experimentalDecorators": true,
-
- "strictPropertyInitialization": false,
- "types": ["jest", "node", "@types/jest"]
+ "strictPropertyInitialization": false
},
"include": ["src/**/*", "test/**/*.test.(ts|tsx|js)"]
}
diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json
index 6ec6c94ea3..b16fb124d0 100644
--- a/packages/core/tsconfig.json
+++ b/packages/core/tsconfig.json
@@ -1,31 +1,16 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
-
- "lib": ["ESNext", "DOM", "WebWorker"],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
-
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"downlevelIteration": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
"jsx": "preserve",
- "experimentalDecorators": true,
"emitDecoratorMetadata": true,
- "strictPropertyInitialization": false,
- "types": ["jest", "node", "@types/jest"]
+ "strictPropertyInitialization": false
},
"include": ["src/**/*", "test/**/*"]
}
diff --git a/packages/sheets-plugin-filter/tsconfig.json b/packages/sheets-plugin-filter/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/packages/sheets-plugin-filter/tsconfig.json
+++ b/packages/sheets-plugin-filter/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/sheets-plugin-find/tsconfig.json b/packages/sheets-plugin-find/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/packages/sheets-plugin-find/tsconfig.json
+++ b/packages/sheets-plugin-find/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/sheets-plugin-formula/tsconfig.json b/packages/sheets-plugin-formula/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/packages/sheets-plugin-formula/tsconfig.json
+++ b/packages/sheets-plugin-formula/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/sheets-plugin-image/tsconfig.json b/packages/sheets-plugin-image/tsconfig.json
index b637d3ae3b..22e90e4c5a 100644
--- a/packages/sheets-plugin-image/tsconfig.json
+++ b/packages/sheets-plugin-image/tsconfig.json
@@ -1,36 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node",
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true,
-
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/sheets-plugin-import-xlsx/tsconfig.json b/packages/sheets-plugin-import-xlsx/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/packages/sheets-plugin-import-xlsx/tsconfig.json
+++ b/packages/sheets-plugin-import-xlsx/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/sheets-plugin-numfmt/tsconfig.json b/packages/sheets-plugin-numfmt/tsconfig.json
index b637d3ae3b..22e90e4c5a 100644
--- a/packages/sheets-plugin-numfmt/tsconfig.json
+++ b/packages/sheets-plugin-numfmt/tsconfig.json
@@ -1,36 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node",
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true,
-
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/sheets-plugin-operation/tsconfig.json b/packages/sheets-plugin-operation/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/packages/sheets-plugin-operation/tsconfig.json
+++ b/packages/sheets-plugin-operation/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/ui-plugin-docs/tsconfig.json b/packages/ui-plugin-docs/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/packages/ui-plugin-docs/tsconfig.json
+++ b/packages/ui-plugin-docs/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/ui-plugin-sheets/tsconfig.json b/packages/ui-plugin-sheets/tsconfig.json
index 68b667116f..47cf38c4cb 100644
--- a/packages/ui-plugin-sheets/tsconfig.json
+++ b/packages/ui-plugin-sheets/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/packages/ui-plugin-slides/tsconfig.json b/packages/ui-plugin-slides/tsconfig.json
index bb244c6545..69b5c31f0b 100644
--- a/packages/ui-plugin-slides/tsconfig.json
+++ b/packages/ui-plugin-slides/tsconfig.json
@@ -1,35 +1,12 @@
{
+ "extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "./",
"outDir": "lib",
- "target": "ESNext",
- "lib": [
- "ESNext",
- "DOM",
- "WebWorker"
- ],
- "module": "ESNext",
"moduleResolution": "Node", //This value is needed for Node.js.
- "declaration": true,
- "declarationDir": "./lib",
- "declarationMap": true,
- "sourceMap": true,
- "resolveJsonModule": true,
- "strict": true,
- "noImplicitOverride": true,
- "allowJs": true,
"baseUrl": "./",
- "skipLibCheck": true,
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
- "experimentalDecorators": true,
- "jsx": "react-jsx",
- "jsxImportSource": "preact",
- "strictPropertyInitialization": false,
- "types": [
- "jest",
- "node",
- "@types/jest"
- ]
+ "strictPropertyInitialization": false
},
"include": [
"src/**/*",
diff --git a/test.html b/test.html
deleted file mode 100644
index 9cfaf35336..0000000000
--- a/test.html
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-
-<head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
-</head>
-
-<body>
-
-</body>
-<script>
- let a = {
- b: {
- f: 2
- }
- }
-
- let c = a.b
-
- a.b.f = 5
-
- console.dir(a.b)
- console.dir(c)
-</script>
-
-</html>
\ No newline at end of file
diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json
index 3c8533226d..d7bff36713 100644
--- a/tsconfig.eslint.json
+++ b/tsconfig.eslint.json
@@ -1,7 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
- "allowJs": true,
},
"include": [
"packages/**/*",
diff --git a/tsconfig.json b/tsconfig.json
index fc039f13ae..e7a8d005ca 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,6 +1,31 @@
{
"compilerOptions": {
- "experimentalDecorators": true
+ "lib": [
+ "ESNext",
+ "DOM",
+ "WebWorker",
+ "dom.iterable"
+ ],
+ "target": "ESNext",
+ "module": "ESNext",
+ "declaration": true,
+ "declarationDir": "./lib",
+ "declarationMap": true,
+ "experimentalDecorators": true,
+ "jsx": "react-jsx",
+ "jsxImportSource": "preact",
+ "sourceMap": true,
+ "resolveJsonModule": true,
+ "strict": true,
+ "noImplicitOverride": true,
+ "allowJs": true,
+ "skipLibCheck": true,
+ "types": [
+ "jest",
+ "node",
+ "@types/jest",
+ "esbuild-style-plugin"
+ ]
},
"include": [
"packages/*/src",