From a03f1dc2ac25579df30e8cb59d2703110c3e564d Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Wed, 13 Mar 2024 22:37:41 +0000 Subject: lint: Lint and format the entire repo with the new configs --- apps/mobile/app/dashboard/(tabs)/_layout.tsx | 2 +- apps/mobile/app/dashboard/(tabs)/index.tsx | 5 ++--- apps/mobile/app/dashboard/(tabs)/lists.tsx | 3 +-- apps/mobile/app/dashboard/(tabs)/search.tsx | 5 ++--- apps/mobile/app/dashboard/(tabs)/settings.tsx | 3 +-- 5 files changed, 7 insertions(+), 11 deletions(-) (limited to 'apps/mobile/app/dashboard/(tabs)') diff --git a/apps/mobile/app/dashboard/(tabs)/_layout.tsx b/apps/mobile/app/dashboard/(tabs)/_layout.tsx index 5b2d810a..ce73a5c9 100644 --- a/apps/mobile/app/dashboard/(tabs)/_layout.tsx +++ b/apps/mobile/app/dashboard/(tabs)/_layout.tsx @@ -1,6 +1,6 @@ +import React from "react"; import { Tabs } from "expo-router"; import { ClipboardList, Home, Search, Settings } from "lucide-react-native"; -import React from "react"; export default function TabLayout() { return ( diff --git a/apps/mobile/app/dashboard/(tabs)/index.tsx b/apps/mobile/app/dashboard/(tabs)/index.tsx index b2349525..fe15956c 100644 --- a/apps/mobile/app/dashboard/(tabs)/index.tsx +++ b/apps/mobile/app/dashboard/(tabs)/index.tsx @@ -1,8 +1,7 @@ -import { Link, Stack } from "expo-router"; -import { SquarePen, Link as LinkIcon } from "lucide-react-native"; import { View } from "react-native"; - +import { Link, Stack } from "expo-router"; import BookmarkList from "@/components/bookmarks/BookmarkList"; +import { Link as LinkIcon, SquarePen } from "lucide-react-native"; function HeaderRight() { return ( diff --git a/apps/mobile/app/dashboard/(tabs)/lists.tsx b/apps/mobile/app/dashboard/(tabs)/lists.tsx index b534ddda..a293757b 100644 --- a/apps/mobile/app/dashboard/(tabs)/lists.tsx +++ b/apps/mobile/app/dashboard/(tabs)/lists.tsx @@ -1,7 +1,6 @@ -import { Link } from "expo-router"; import { useEffect, useState } from "react"; import { FlatList, View } from "react-native"; - +import { Link } from "expo-router"; import { api } from "@/lib/trpc"; export default function Lists() { diff --git a/apps/mobile/app/dashboard/(tabs)/search.tsx b/apps/mobile/app/dashboard/(tabs)/search.tsx index 980cab36..0025262e 100644 --- a/apps/mobile/app/dashboard/(tabs)/search.tsx +++ b/apps/mobile/app/dashboard/(tabs)/search.tsx @@ -1,12 +1,11 @@ -import { keepPreviousData } from "@tanstack/react-query"; import { useState } from "react"; import { View } from "react-native"; -import { useDebounce } from "use-debounce"; - import BookmarkList from "@/components/bookmarks/BookmarkList"; import { Divider } from "@/components/ui/Divider"; import { Input } from "@/components/ui/Input"; import { api } from "@/lib/trpc"; +import { keepPreviousData } from "@tanstack/react-query"; +import { useDebounce } from "use-debounce"; export default function Search() { const [search, setSearch] = useState(""); diff --git a/apps/mobile/app/dashboard/(tabs)/settings.tsx b/apps/mobile/app/dashboard/(tabs)/settings.tsx index 9f86d5ec..81b21fc8 100644 --- a/apps/mobile/app/dashboard/(tabs)/settings.tsx +++ b/apps/mobile/app/dashboard/(tabs)/settings.tsx @@ -1,7 +1,6 @@ -import { useRouter } from "expo-router"; import { useEffect } from "react"; import { Text, View } from "react-native"; - +import { useRouter } from "expo-router"; import Logo from "@/components/Logo"; import { Button } from "@/components/ui/Button"; import { useSession } from "@/lib/session"; -- cgit v1.2.3-70-g09d2