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
fix(*): disable jsdoc/tag-lines rule and add ignore comments in FBase classes (#4495)
白熱23af71360070
diff --git a/common/shared/eslint/index.js b/common/shared/eslint/index.jsindex f234e39601..52abb19080 100644--- a/common/shared/eslint/index.js+++ b/common/shared/eslint/index.js@@ -49,6 +49,7 @@ exports.baseRules = {'react/no-unstable-context-value': 'warn','react/no-unstable-default-props': 'warn','command/command': 'off',+ 'jsdoc/tag-lines': 'off',// TODO: debatable rules'react/no-duplicate-key': 'warn',@@ -177,6 +178,7 @@ exports.facadePreset = () => {'ts/explicit-function-return-type': 'error','univer/no-external-imports-in-facade': 'error',...jsdoc.configs.recommended.rules,+ 'jsdoc/tag-lines': 'off',},};};diff --git a/packages/core/src/facade/f-base.ts b/packages/core/src/facade/f-base.tsindex 3686c515e6..f8c2ba655e 100644--- a/packages/core/src/facade/f-base.ts+++ b/packages/core/src/facade/f-base.ts@@ -22,6 +22,7 @@ import { Disposable } from '../shared';* It provides a way to extend classes with static and instance methods.* The `_initialize` as a special method that will be called after the constructor. You should never call it directly.*/+/** @ignore */export abstract class FBase extends Disposable {static extend(source: any): void {Object.getOwnPropertyNames(source.prototype).forEach((name) => {@@ -40,10 +41,12 @@ export abstract class FBase extends Disposable {}}+/** @ignore */const InitializerSymbol = Symbol('initializers');type Initializers = Array<(injector: Injector) => void>;+/** @ignore */export class FBaseInitialable extends Disposable {declare private [InitializerSymbol]: Initializers | undefined;diff --git a/packages/sheets/src/facade/f-range.ts b/packages/sheets/src/facade/f-range.tsindex a940d40aeb..1647de65a7 100644--- a/packages/sheets/src/facade/f-range.ts+++ b/packages/sheets/src/facade/f-range.ts@@ -1270,6 +1270,7 @@ export class FRange extends FBaseInitialable {* // A | B | C* // 1 | 2 | 3* // 1 | 2 | 3+ ** @example Show how to split text to columns with custom delimiter* // A1:A3 has following values:* // A | B | C