From 6ccfd19dea656169ada8a2db3bd0af81d4391d67 Mon Sep 17 00:00:00 2001 From: Lei Nelissen Date: Sun, 23 Apr 2023 01:15:07 +0200 Subject: [PATCH] fix: linter issues --- package.json | 2 +- src/screens/modals/TrackPopupMenu.tsx | 4 ++-- src/utility/ErrorReportingAlert.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 29c8e92..037b61f 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "ios": "react-native run-ios --scheme \"Fintunes\"", "start": "react-native start", "test": "jest", - "lint": "eslint . --ext .js,.jsx,.ts,.tsx && tsc --noEmit", + "lint": "eslint ./src --ext .js,.jsx,.ts,.tsx && tsc --noEmit", "build:ios": "react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'", "postinstall": "patch-package" }, diff --git a/src/screens/modals/TrackPopupMenu.tsx b/src/screens/modals/TrackPopupMenu.tsx index 5d2e5a5..4bd8dc0 100644 --- a/src/screens/modals/TrackPopupMenu.tsx +++ b/src/screens/modals/TrackPopupMenu.tsx @@ -1,6 +1,6 @@ import React, { useCallback } from 'react'; import { useNavigation, StackActions, useRoute, RouteProp } from '@react-navigation/native'; -import { ModalStackParams } from 'screens/types'; +import { StackParams } from 'screens/types'; import { useAppDispatch, useTypedSelector } from 'store'; import { Header, SubHeader } from 'components/Typography'; import styled from 'styled-components/native'; @@ -17,7 +17,7 @@ import usePlayTracks from 'utility/usePlayTracks'; import { selectIsDownloaded } from 'store/downloads/selectors'; import { useGetImage } from 'utility/JellyfinApi'; -type Route = RouteProp; +type Route = RouteProp; const Container = styled.View` padding: 40px; diff --git a/src/utility/ErrorReportingAlert.ts b/src/utility/ErrorReportingAlert.ts index dd2815c..e38adff 100644 --- a/src/utility/ErrorReportingAlert.ts +++ b/src/utility/ErrorReportingAlert.ts @@ -5,7 +5,7 @@ import { t } from '@localisation'; import { setReceivedErrorReportingAlert } from 'store/settings/actions'; import { setSentryStatus } from './Sentry'; import { useNavigation } from '@react-navigation/native'; -import { ModalNavigationProp } from 'screens/types'; +import { NavigationProp } from 'screens/types'; /** * This will send out an alert message asking the user if they want to enable @@ -13,7 +13,7 @@ import { ModalNavigationProp } from 'screens/types'; */ export default function ErrorReportingAlert() { const { hasReceivedErrorReportingAlert } = useTypedSelector(state => state.settings); - const navigation = useNavigation(); + const navigation = useNavigation(); const dispatch = useAppDispatch(); useEffect(() => {