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
ci: add complexity check (#1630)
Wenzhao Hufabb032f1dbb
diff --git a/eslint.config.js b/eslint.config.jsindex f9d4997f5e..b5ef76f14b 100644--- a/eslint.config.js+++ b/eslint.config.js@@ -21,6 +21,13 @@ export default antfu({html: true,},rules: baseRules,+}, {+ files: ['**/*.ts', '**/*.tsx'],+ ignores: ['**/*.d.ts', '**/vite.config.ts', 'playwright.config.ts', '**/*.spec.ts', '**/*.spec.tsx'], // do not check test files+ rules: {+ complexity: ['warn', { max: 20 }],+ 'max-lines-per-function': ['warn', 80],+ },}, {files: ['**/*.ts', '**/*.tsx'],ignores: ['**/*.d.ts', '**/vite.config.ts', 'playwright.config.ts'],