fix: linter
This commit is contained in:
@@ -8,7 +8,6 @@ module.exports = {
|
||||
'plugin:react/recommended',
|
||||
'plugin:@typescript-eslint/eslint-recommended',
|
||||
'plugin:react-hooks/recommended',
|
||||
'@react-native',
|
||||
// 'plugin:@typescript-eslint/recommended'
|
||||
],
|
||||
globals: {
|
||||
|
||||
1395
package-lock.json
generated
1395
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -59,7 +59,6 @@
|
||||
"@babel/core": "^7.20.2",
|
||||
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
|
||||
"@babel/runtime": "^7.20.1",
|
||||
"@react-native/eslint-config": "^0.73.2",
|
||||
"@react-native/metro-config": "^0.73.4",
|
||||
"@react-native/typescript-config": "^0.74.0",
|
||||
"@sentry/cli": "^2.27.0",
|
||||
@@ -74,6 +73,7 @@
|
||||
"babel-jest": "^29.3.1",
|
||||
"babel-plugin-module-resolver": "^4.1.0",
|
||||
"eslint": "^8.27.0",
|
||||
"eslint-plugin-react": "^7.33.2",
|
||||
"eslint-plugin-react-hooks": "^4.6.0",
|
||||
"jest": "^29.2.1",
|
||||
"metro-config": "^0.80.0",
|
||||
|
||||
@@ -48,7 +48,7 @@ const Playlists: React.FC = () => {
|
||||
const getImage = useGetImage();
|
||||
const listRef = useRef<FlatList<EntityId>>(null);
|
||||
|
||||
const getItemLayout = useCallback((data: EntityId[] | null | undefined, index: number): { offset: number, length: number, index: number } => {
|
||||
const getItemLayout = useCallback((data: ArrayLike<EntityId> | null | undefined, index: number): { offset: number, length: number, index: number } => {
|
||||
const length = 220;
|
||||
const offset = length * index;
|
||||
return { index, length, offset };
|
||||
|
||||
Reference in New Issue
Block a user