chore: fix linter

This commit is contained in:
Lei Nelissen
2023-06-19 22:26:41 +02:00
parent ac4388c927
commit 0c02467e26
61 changed files with 281 additions and 269 deletions

View File

@@ -1,4 +1,4 @@
import { SafeScrollView } from 'components/SafeNavigatorView';
import { SafeScrollView } from '@/components/SafeNavigatorView';
import styled from 'styled-components';
const Container = styled(SafeScrollView)`

View File

@@ -1,7 +1,7 @@
import React from 'react';
import styled from 'styled-components/native';
import { Paragraph } from 'components/Typography';
import { SafeScrollView } from 'components/SafeNavigatorView';
import { Paragraph } from '@/components/Typography';
import { SafeScrollView } from '@/components/SafeNavigatorView';
import policy from '../../../../docs/privacy-policy.md';
const Container = styled(SafeScrollView)`

View File

@@ -1,10 +1,10 @@
import React, { useCallback } from 'react';
import styled from 'styled-components/native';
import CheckmarkIcon from 'assets/icons/checkmark.svg';
import { Text } from 'components/Typography';
import useDefaultStyles from 'components/Colors';
import { THEME_COLOR } from 'CONSTANTS';
import { Gap } from 'components/Utility';
import { Text } from '@/components/Typography';
import useDefaultStyles from '@/components/Colors';
import { THEME_COLOR } from '@/CONSTANTS';
import { Gap } from '@/components/Utility';
import { View } from 'react-native';
export const RadioList = styled.View`

View File

@@ -1,4 +1,4 @@
import { Text } from 'components/Typography';
import { Text } from '@/components/Typography';
import styled from 'styled-components/native';
export const SwitchContainer = styled.View`

View File

@@ -1,11 +1,11 @@
import React, { useCallback } from 'react';
import { StyleSheet } from 'react-native';
import { t } from '@localisation';
import { t } from '@/localisation';
import { createStackNavigator } from '@react-navigation/stack';
import { useNavigation } from '@react-navigation/native';
import { THEME_COLOR } from 'CONSTANTS';
import ListButton from 'components/ListButton';
import useDefaultStyles, { ColoredBlurView } from 'components/Colors';
import { THEME_COLOR } from '@/CONSTANTS';
import ListButton from '@/components/ListButton';
import useDefaultStyles, { ColoredBlurView } from '@/components/Colors';
import { SettingsNavigationProp } from './types';
@@ -14,7 +14,7 @@ import Sentry from './stacks/Sentry';
import Library from './stacks/Library';
import ColorScheme from './stacks/ColorScheme';
import PlaybackReporting from './stacks/PlaybackReporting';
import { SafeScrollView } from 'components/SafeNavigatorView';
import { SafeScrollView } from '@/components/SafeNavigatorView';
import PrivacyPolicy from './components/PrivacyPolicy';
export function SettingsList() {

View File

@@ -1,11 +1,11 @@
import React, { useCallback } from 'react';
import TrackPlayer from 'react-native-track-player';
import music from 'store/music';
import { t } from '@localisation';
import Button from 'components/Button';
import music from '@/store/music';
import { t } from '@/localisation';
import Button from '@/components/Button';
import styled from 'styled-components/native';
import { Paragraph } from 'components/Typography';
import { useAppDispatch } from 'store';
import { Paragraph } from '@/components/Typography';
import { useAppDispatch } from '@/store';
import Container from '../components/Container';
const ClearCache = styled(Button)`

View File

@@ -1,11 +1,11 @@
import React, { useCallback } from 'react';
import { Paragraph } from 'components/Typography';
import { Paragraph } from '@/components/Typography';
import Container from '../components/Container';
import { t } from '@localisation';
import { t } from '@/localisation';
import { RadioItem, RadioList } from '../components/Radio';
import { ColorScheme } from 'store/settings/types';
import { useAppDispatch, useTypedSelector } from 'store';
import { setColorScheme } from 'store/settings/actions';
import { ColorScheme } from '@/store/settings/types';
import { useAppDispatch, useTypedSelector } from '@/store';
import { setColorScheme } from '@/store/settings/actions';
export default function ColorSchemeSetting() {
const dispatch = useAppDispatch();

View File

@@ -1,11 +1,11 @@
import { useNavigation } from '@react-navigation/native';
import React, { useCallback } from 'react';
import useDefaultStyles from 'components/Colors';
import useDefaultStyles from '@/components/Colors';
import { NavigationProp } from '../..';
import { useTypedSelector } from 'store';
import { t } from '@localisation';
import Button from 'components/Button';
import { Paragraph } from 'components/Typography';
import { useTypedSelector } from '@/store';
import { t } from '@/localisation';
import Button from '@/components/Button';
import { Paragraph } from '@/components/Typography';
import Container from '../components/Container';
import { InputContainer, Input } from '../components/Input';

View File

@@ -1,10 +1,10 @@
import { Paragraph } from 'components/Typography';
import { Paragraph } from '@/components/Typography';
import React, { useCallback } from 'react';
import { Switch } from 'react-native-gesture-handler';
import { t } from '@localisation';
import { SafeScrollView } from 'components/SafeNavigatorView';
import { useAppDispatch, useTypedSelector } from 'store';
import { setEnablePlaybackReporting } from 'store/settings/actions';
import { t } from '@/localisation';
import { SafeScrollView } from '@/components/SafeNavigatorView';
import { useAppDispatch, useTypedSelector } from '@/store';
import { setEnablePlaybackReporting } from '@/store/settings/actions';
import Container from '../components/Container';
import { SwitchContainer, SwitchLabel } from '../components/Switch';

View File

@@ -1,15 +1,15 @@
import { Paragraph, Text } from 'components/Typography';
import { Paragraph, Text } from '@/components/Typography';
import React, { useEffect, useState } from 'react';
import { Switch } from 'react-native-gesture-handler';
import styled, { css } from 'styled-components/native';
import { isSentryEnabled, setSentryStatus } from 'utility/Sentry';
import { isSentryEnabled, setSentryStatus } from '@/utility/Sentry';
import Accordion from 'react-native-collapsible/Accordion';
import ChevronIcon from 'assets/icons/chevron-right.svg';
import { THEME_COLOR } from 'CONSTANTS';
import useDefaultStyles, { DefaultStylesProvider } from 'components/Colors';
import { t } from '@localisation';
import { SafeScrollView } from 'components/SafeNavigatorView';
import { THEME_COLOR } from '@/CONSTANTS';
import useDefaultStyles, { DefaultStylesProvider } from '@/components/Colors';
import { t } from '@/localisation';
import { SafeScrollView } from '@/components/SafeNavigatorView';
const Container = styled.View`
padding: 24px;