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: jsdoc only on facade (#4436)

lumixbf69eab2ea3f
diff --git a/common/shared/eslint/index.js b/common/shared/eslint/index.js
index 2ef4db4673..f234e39601 100644
--- a/common/shared/eslint/index.js
+++ b/common/shared/eslint/index.js
@@ -176,6 +176,7 @@ exports.facadePreset = () => {
rules: {
'ts/explicit-function-return-type': 'error',
'univer/no-external-imports-in-facade': 'error',
+ ...jsdoc.configs.recommended.rules,
},
};
};
@@ -214,12 +215,3 @@ exports.specPreset = () => {
},
};
};
-
-exports.jsdocPreset = () => {
- return {
- files: ['**/*.{ts,tsx}'],
- rules: {
- ...jsdoc.configs.recommended.rules,
- },
- };
-};
diff --git a/eslint.config.js b/eslint.config.js
index f1ab152014..6c18da9ec8 100644
--- a/eslint.config.js
+++ b/eslint.config.js
@@ -1,5 +1,5 @@
import antfu from '@antfu/eslint-config';
-import { baseRules, facadePreset, jsdocPreset, specPreset, tailwindcssPreset, typescriptPreset, univerSourcePreset } from '@univerjs-infra/shared/eslint';
+import { baseRules, facadePreset, specPreset, tailwindcssPreset, typescriptPreset, univerSourcePreset } from '@univerjs-infra/shared/eslint';
import header from 'eslint-plugin-header';
import barrel from 'eslint-plugin-no-barrel-import';
import penetrating from 'eslint-plugin-no-penetrating-import';
@@ -102,6 +102,5 @@ export default antfu(
univerSourcePreset(),
facadePreset(),
tailwindcssPreset(),
- specPreset(),
- jsdocPreset()
+ specPreset()
);