Skip to content

Commit 479bc86

Browse files
committed
chore: fix lint
1 parent 1614b4a commit 479bc86

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"@types/node": "^24.5.2",
5252
"@types/react": "^18.0.28",
5353
"@types/react-dom": "^18.0.11",
54-
"@umijs/fabric": "^2.0.9",
54+
"@umijs/fabric": "^4.0.0",
5555
"cheerio": "1.0.0-rc.12",
5656
"coveralls": "^3.0.6",
5757
"cross-env": "^7.0.2",
@@ -68,19 +68,20 @@
6868
"rc-test": "^7.0.15",
6969
"react": "^16.0.0",
7070
"react-dom": "^16.0.0",
71-
"regenerator-runtime": "^0.14.0"
71+
"regenerator-runtime": "^0.14.0",
72+
"eslint": "8.x"
7273
},
7374
"peerDependencies": {
7475
"react": ">=16.9.0",
7576
"react-dom": ">=16.9.0"
7677
},
7778
"resolutions": {
78-
"@types/minimatch": "5.1.2"
79-
},
79+
"@types/minimatch": "5.1.2"
80+
},
8081
"cnpm": {
8182
"mode": "npm"
8283
},
8384
"tnpm": {
8485
"mode": "npm"
8586
}
86-
}
87+
}

src/SingleObserver/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getDOM } from '@rc-component/util/lib/Dom/findDOMNode';
22
import { supportRef, useComposeRef, getNodeRef } from '@rc-component/util/lib/ref';
33
import * as React from 'react';
4-
import type { ResizeObserverProps, SizeInfo } from '..';
4+
import type { ResizeObserverProps } from '..';
55
import { CollectionContext } from '../Collection';
66
import useResizeObserver from '../useResizeObserver';
77

src/useResizeObserver.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,5 @@ export default function useResizeObserver(
7575
unobserve(target, onInternalResize);
7676
}
7777
};
78-
}, [enabled, getTarget]);
78+
}, [enabled]);
7979
}

0 commit comments

Comments
 (0)