Skip to content

Commit

Permalink
fix: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jikkai committed Jan 26, 2025
1 parent 53a07a5 commit 038b2ce
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions common/shared/eslint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ exports.baseRules = {
'react/no-unstable-default-props': 'warn',
'command/command': 'off',
'jsdoc/tag-lines': 'off',
'import/consistent-type-specifier-style': 'warn',

// IMPORTANT: To ensure compatibility, some features of React 19 will be disabled.
'react/no-forward-ref': 'off',
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default antfu(
],
},
}, {
// Not penetrating for source files
// Not penetrating for source files
files: ['**/*.ts', '**/*.tsx'],
plugins: {
penetrating,
Expand Down
7 changes: 4 additions & 3 deletions packages/engine-formula/src/functions/math/trunc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@
* limitations under the License.
*/

import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';
import type { BaseValueObject } from '../../../engine/value-object/base-value-object';
import { ErrorType } from '../../../basics/error-type';
import { expandArrayValueObject } from '../../../engine/utils/array-object';
import type { ArrayValueObject } from '../../../engine/value-object/array-value-object';
import { type BaseValueObject, ErrorValueObject } from '../../../engine/value-object/base-value-object';
import { baseEpsilon, multiply } from '../../../engine/utils/math-kit';
import { ErrorValueObject } from '../../../engine/value-object/base-value-object';
import { NumberValueObject } from '../../../engine/value-object/primitive-object';
import { BaseFunction } from '../../base-function';
import { baseEpsilon, multiply } from '../../../engine/utils/math-kit';

export class Trunc extends BaseFunction {
override minParams = 1;
Expand Down
1 change: 0 additions & 1 deletion packages/ui/src/views/components/ribbon/Ribbon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import type { ComponentType } from 'react';
import type { IMenuSchema } from '../../../services/menu/menu-manager.service';
import { LocaleService, useDependency } from '@univerjs/core';
import { clsx } from '@univerjs/design';

import { MoreFunctionSingle } from '@univerjs/icons';
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { IMenuManagerService } from '../../../services/menu/menu-manager.service';
Expand Down
3 changes: 2 additions & 1 deletion packages/watermark/src/views/extensions/watermark-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@

import type { IUser, Nullable } from '@univerjs/core';
import type { UniverRenderingContext } from '@univerjs/engine-render';
import type { IWatermarkConfigWithType } from '../../common/type';
import { Layer } from '@univerjs/engine-render';
import { type IWatermarkConfigWithType, IWatermarkTypeEnum } from '../../common/type';
import { IWatermarkTypeEnum } from '../../common/type';
import { renderWatermark } from '../../util';

export class WatermarkLayer extends Layer {
Expand Down

0 comments on commit 038b2ce

Please sign in to comment.