Skip to content

Commit

Permalink
fix: 修复 lint 的 warnings (#1724)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyue committed Feb 13, 2023
1 parent d695095 commit 9f73318
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module.exports = {
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-namespace': 0,
'@typescript-eslint/no-explicit-any': 0,
},
settings: {
'import/parsers': {
Expand Down
2 changes: 1 addition & 1 deletion packages/f2/src/components/scrollBar/withScrollBar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Component, jsx } from '@antv/f-engine';
import Zoom, { ZoomProps } from '../zoom';
import { ZoomProps } from '../zoom';
import { ChartChildProps } from '../../chart';

export interface ScrollBarProps extends ZoomProps {
Expand Down
2 changes: 1 addition & 1 deletion packages/f2/src/components/zoom/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export default (View) => {
this.onPan(ev);
onPan(ev);
}}
onPanEnd={(ev) => {
onPanEnd={() => {
if (pan === false) return;
this.onEnd();
onPanEnd({ scale });
Expand Down
2 changes: 1 addition & 1 deletion packages/f2/src/deps/f2-adjust/src/adjusts/adjust.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default abstract class Adjust {
}

/** @override */
protected adjustDim(dim: string, values: number[], data: Data[], index?: number): void {}
protected adjustDim(_dim: string, _values: number[], _data: Data[], _index?: number): void {}

/**
* 获取可调整度量对应的值
Expand Down

0 comments on commit 9f73318

Please sign in to comment.