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.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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.jsonindex 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