Skip to content

Commit 6c9a025

Browse files
committed
fix: fix warnings
1 parent 3b455f3 commit 6c9a025

23 files changed

Lines changed: 23 additions & 11 deletions

app.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import type { ConfigContext, ExpoConfig } from '@expo/config';
2+
23
import type { AppIconBadgeConfig } from 'app-icon-badge/types';
3-
import Env from './env';
44

55
import 'tsx/cjs';
66

7+
// adding lint exception as we need to import tsx/cjs before env.ts is imported
8+
// eslint-disable-next-line perfectionist/sort-imports
9+
import Env from './env';
10+
711
const EXPO_ACCOUNT_OWNER = 'obytes';
812
const EAS_PROJECT_ID = 'c3e1075b-6fe7-4686-aa49-35b46a229044';
913

env.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/* eslint-env node */
2-
31
import z from 'zod';
42

53
import packageJSON from './package.json';

src/app/(app)/_layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ export default function TabLayout() {
1919
}, []);
2020
useEffect(() => {
2121
if (status !== 'idle') {
22-
setTimeout(() => {
22+
const timer = setTimeout(() => {
2323
hideSplash();
2424
}, 1000);
25+
return () => clearTimeout(timer);
2526
}
2627
}, [hideSplash, status]);
2728

src/app/+html.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default function Root({ children }: { children: React.ReactNode }) {
2727
<ScrollViewStyleReset />
2828

2929
{/* Using raw CSS styles as an escape-hatch to ensure the background color never flickers in dark-mode. */}
30+
{/* eslint-disable-next-line react-dom/no-dangerously-set-innerhtml */}
3031
<style dangerouslySetInnerHTML={{ __html: responsiveBackground }} />
3132
{/* Add any additional <head> elements that you want globally available on web... */}
3233
</head>

src/app/_layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import '../global.css';
1818

1919
export { ErrorBoundary } from 'expo-router';
2020

21+
// eslint-disable-next-line react-refresh/only-export-components
2122
export const unstable_settings = {
2223
initialRouteName: '(app)',
2324
};
@@ -49,6 +50,7 @@ function Providers({ children }: { children: React.ReactNode }) {
4950
return (
5051
<GestureHandlerRootView
5152
style={styles.container}
53+
// eslint-disable-next-line better-tailwindcss/no-unknown-classes
5254
className={theme.dark ? `dark` : undefined}
5355
>
5456
<KeyboardProvider>

src/components/ui/button.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable max-lines-per-function */
21
import * as React from 'react';
32
import { Text } from 'react-native';
43

src/components/ui/button.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable better-tailwindcss/no-unknown-classes */
12
import type { PressableProps, View } from 'react-native';
23
import type { VariantProps } from 'tailwind-variants';
34
import * as React from 'react';

src/components/ui/icons/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react-refresh/only-export-components */
12
export * from './arrow-right';
23
export * from './caret-down';
34
export * from './feed';

src/components/ui/image.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react-refresh/only-export-components */
12
import type { ImageProps } from 'expo-image';
23
import { Image as NImage } from 'expo-image';
34
import * as React from 'react';

src/components/ui/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable react-refresh/only-export-components */
12
import Svg from 'react-native-svg';
23
import { withUniwind } from 'uniwind';
34

0 commit comments

Comments
 (0)