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: add more strict ts config and fix lint files

Wenzhao Huaa1a76f641d4
diff --git a/cli/src/templates/base/tsconfig.json b/cli/src/templates/base/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/cli/src/templates/base/tsconfig.json
+++ b/cli/src/templates/base/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/cli/src/templates/common-plugin/tsconfig.json b/cli/src/templates/common-plugin/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/cli/src/templates/common-plugin/tsconfig.json
+++ b/cli/src/templates/common-plugin/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/cli/src/templates/docs-plugin/tsconfig.json b/cli/src/templates/docs-plugin/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/cli/src/templates/docs-plugin/tsconfig.json
+++ b/cli/src/templates/docs-plugin/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/cli/src/templates/sheets-plugin/tsconfig.json b/cli/src/templates/sheets-plugin/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/cli/src/templates/sheets-plugin/tsconfig.json
+++ b/cli/src/templates/sheets-plugin/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/cli/src/templates/slides-plugin/tsconfig.json b/cli/src/templates/slides-plugin/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/cli/src/templates/slides-plugin/tsconfig.json
+++ b/cli/src/templates/slides-plugin/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/examples/univer-doc-ts/tsconfig.json b/examples/univer-doc-ts/tsconfig.json
index 85bc6506d2..53d53c5e18 100644
--- a/examples/univer-doc-ts/tsconfig.json
+++ b/examples/univer-doc-ts/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"downlevelIteration": true,
"baseUrl": "./",
@@ -25,7 +26,7 @@
"jsxImportSource": "preact",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
-
+
"strictPropertyInitialization": false,
},
"include": [
diff --git a/examples/univer-preact-ts/tsconfig.json b/examples/univer-preact-ts/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/examples/univer-preact-ts/tsconfig.json
+++ b/examples/univer-preact-ts/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/examples/univer-sheet-ts/tsconfig.json b/examples/univer-sheet-ts/tsconfig.json
index 3b486529f8..60ad8a2091 100644
--- a/examples/univer-sheet-ts/tsconfig.json
+++ b/examples/univer-sheet-ts/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"downlevelIteration": true,
"baseUrl": "./",
@@ -25,7 +26,7 @@
"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 85bc6506d2..53d53c5e18 100644
--- a/examples/univer-slide-ts/tsconfig.json
+++ b/examples/univer-slide-ts/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"downlevelIteration": true,
"baseUrl": "./",
@@ -25,7 +26,7 @@
"jsxImportSource": "preact",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
-
+
"strictPropertyInitialization": false,
},
"include": [
diff --git a/examples/univer-vanilla-ts/tsconfig.json b/examples/univer-vanilla-ts/tsconfig.json
index 85bc6506d2..53d53c5e18 100644
--- a/examples/univer-vanilla-ts/tsconfig.json
+++ b/examples/univer-vanilla-ts/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"downlevelIteration": true,
"baseUrl": "./",
@@ -25,7 +26,7 @@
"jsxImportSource": "preact",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
-
+
"strictPropertyInitialization": false,
},
"include": [
diff --git a/packages/base-docs/tsconfig.json b/packages/base-docs/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/base-docs/tsconfig.json
+++ b/packages/base-docs/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/base-formula-engine/tsconfig.json b/packages/base-formula-engine/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/base-formula-engine/tsconfig.json
+++ b/packages/base-formula-engine/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/base-render/tsconfig.json b/packages/base-render/tsconfig.json
index d5bf531fae..b6a930b5f9 100644
--- a/packages/base-render/tsconfig.json
+++ b/packages/base-render/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
// "paths": {
diff --git a/packages/base-sheets/tsconfig.json b/packages/base-sheets/tsconfig.json
index 97e7e48578..f2cda65bcb 100644
--- a/packages/base-sheets/tsconfig.json
+++ b/packages/base-sheets/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"paths": {
diff --git a/packages/base-slides/tsconfig.json b/packages/base-slides/tsconfig.json
index c591a919b8..de38bf48b9 100644
--- a/packages/base-slides/tsconfig.json
+++ b/packages/base-slides/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/base-ui/tsconfig.json b/packages/base-ui/tsconfig.json
index 62520bc381..27e67b18ed 100644
--- a/packages/base-ui/tsconfig.json
+++ b/packages/base-ui/tsconfig.json
@@ -17,6 +17,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/common-plugin-collaboration/tsconfig.json b/packages/common-plugin-collaboration/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/common-plugin-collaboration/tsconfig.json
+++ b/packages/common-plugin-collaboration/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/common-plugin-data/tsconfig.json b/packages/common-plugin-data/tsconfig.json
index 0314d846bc..b19e8df0b2 100644
--- a/packages/common-plugin-data/tsconfig.json
+++ b/packages/common-plugin-data/tsconfig.json
@@ -14,6 +14,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
@@ -21,7 +22,7 @@
"esModuleInterop": true, // auto allowSyntheticDefaultImports true
"jsx": "preserve",
"experimentalDecorators": true,
-
+
"strictPropertyInitialization": false,
"types": ["jest", "node", "@types/jest"]
},
diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json
index 4043b8bf9f..6ec6c94ea3 100644
--- a/packages/core/tsconfig.json
+++ b/packages/core/tsconfig.json
@@ -14,6 +14,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"downlevelIteration": true,
"baseUrl": "./",
@@ -22,7 +23,7 @@
"jsx": "preserve",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
-
+
"strictPropertyInitialization": false,
"types": ["jest", "node", "@types/jest"]
},
diff --git a/packages/sheets-plugin-alternating-colors/tsconfig.json b/packages/sheets-plugin-alternating-colors/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-alternating-colors/tsconfig.json
+++ b/packages/sheets-plugin-alternating-colors/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-comment/tsconfig.json b/packages/sheets-plugin-comment/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-comment/tsconfig.json
+++ b/packages/sheets-plugin-comment/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-conditional-format/tsconfig.json b/packages/sheets-plugin-conditional-format/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-conditional-format/tsconfig.json
+++ b/packages/sheets-plugin-conditional-format/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-data-validation/tsconfig.json b/packages/sheets-plugin-data-validation/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-data-validation/tsconfig.json
+++ b/packages/sheets-plugin-data-validation/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-filter/tsconfig.json b/packages/sheets-plugin-filter/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-filter/tsconfig.json
+++ b/packages/sheets-plugin-filter/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-find/tsconfig.json b/packages/sheets-plugin-find/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-find/tsconfig.json
+++ b/packages/sheets-plugin-find/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-formula/tsconfig.json b/packages/sheets-plugin-formula/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-formula/tsconfig.json
+++ b/packages/sheets-plugin-formula/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-freeze/tsconfig.json b/packages/sheets-plugin-freeze/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-freeze/tsconfig.json
+++ b/packages/sheets-plugin-freeze/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-group/tsconfig.json b/packages/sheets-plugin-group/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-group/tsconfig.json
+++ b/packages/sheets-plugin-group/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-image/tsconfig.json b/packages/sheets-plugin-image/tsconfig.json
index 1cb9948847..b637d3ae3b 100644
--- a/packages/sheets-plugin-image/tsconfig.json
+++ b/packages/sheets-plugin-image/tsconfig.json
@@ -16,11 +16,12 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
"esModuleInterop": true,
-
+
"experimentalDecorators": true,
"jsx": "react-jsx",
"jsxImportSource": "preact",
diff --git a/packages/sheets-plugin-import-xlsx/tsconfig.json b/packages/sheets-plugin-import-xlsx/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-import-xlsx/tsconfig.json
+++ b/packages/sheets-plugin-import-xlsx/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-link/tsconfig.json b/packages/sheets-plugin-link/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-link/tsconfig.json
+++ b/packages/sheets-plugin-link/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-numfmt/tsconfig.json b/packages/sheets-plugin-numfmt/tsconfig.json
index 1cb9948847..b637d3ae3b 100644
--- a/packages/sheets-plugin-numfmt/tsconfig.json
+++ b/packages/sheets-plugin-numfmt/tsconfig.json
@@ -16,11 +16,12 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
"esModuleInterop": true,
-
+
"experimentalDecorators": true,
"jsx": "react-jsx",
"jsxImportSource": "preact",
diff --git a/packages/sheets-plugin-operation/tsconfig.json b/packages/sheets-plugin-operation/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-operation/tsconfig.json
+++ b/packages/sheets-plugin-operation/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-pivot-table/tsconfig.json b/packages/sheets-plugin-pivot-table/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-pivot-table/tsconfig.json
+++ b/packages/sheets-plugin-pivot-table/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-print/tsconfig.json b/packages/sheets-plugin-print/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-print/tsconfig.json
+++ b/packages/sheets-plugin-print/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-protection/tsconfig.json b/packages/sheets-plugin-protection/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-protection/tsconfig.json
+++ b/packages/sheets-plugin-protection/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-screenshot/tsconfig.json b/packages/sheets-plugin-screenshot/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-screenshot/tsconfig.json
+++ b/packages/sheets-plugin-screenshot/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-sort/tsconfig.json b/packages/sheets-plugin-sort/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-sort/tsconfig.json
+++ b/packages/sheets-plugin-sort/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/sheets-plugin-split-column/tsconfig.json b/packages/sheets-plugin-split-column/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/sheets-plugin-split-column/tsconfig.json
+++ b/packages/sheets-plugin-split-column/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/ui-plugin-docs/tsconfig.json b/packages/ui-plugin-docs/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/ui-plugin-docs/tsconfig.json
+++ b/packages/ui-plugin-docs/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/ui-plugin-sheets/tsconfig.json b/packages/ui-plugin-sheets/tsconfig.json
index 1ab164c8fb..68b667116f 100644
--- a/packages/ui-plugin-sheets/tsconfig.json
+++ b/packages/ui-plugin-sheets/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/packages/ui-plugin-slides/tsconfig.json b/packages/ui-plugin-slides/tsconfig.json
index 89460c7a67..bb244c6545 100644
--- a/packages/ui-plugin-slides/tsconfig.json
+++ b/packages/ui-plugin-slides/tsconfig.json
@@ -16,6 +16,7 @@
"sourceMap": true,
"resolveJsonModule": true,
"strict": true,
+ "noImplicitOverride": true,
"allowJs": true,
"baseUrl": "./",
"skipLibCheck": true,
diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json
index e23d9c4f2c..3c8533226d 100644
--- a/tsconfig.eslint.json
+++ b/tsconfig.eslint.json
@@ -7,5 +7,6 @@
"packages/**/*",
"examples/**/*",
"scripts/**/*",
+ ".eslintrc.js"
],
}
\ No newline at end of file