Skip to content

Commit 44c65ca

Browse files
committed
chore: Migrate to biome.
1 parent 9a80c3c commit 44c65ca

19 files changed

Lines changed: 304 additions & 1363 deletions

.prettierrc

Lines changed: 0 additions & 14 deletions
This file was deleted.

apps/launcher/babel.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = function (api) {
1+
module.exports = (api) => {
22
api.cache(true);
33
return {
44
presets: [

apps/launcher/eslint.config.mjs

Lines changed: 0 additions & 154 deletions
This file was deleted.

apps/launcher/package.json

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
"android": "dotenv -c -- expo run:android",
1616
"ios": "dotenv -c -- expo run:ios",
1717
"web": "dotenv -c -- expo start --web",
18-
"lint": "expo lint",
18+
"lint": "biome lint .",
1919
"typecheck": "tsc --noEmit",
20-
"prettier": "prettier **/src/**/*.{ts,tsx} --check",
21-
"format:eslint": "eslint --fix",
22-
"format:prettier": "prettier --write \"./**/*.{cjs,mjs,ts,tsx,scss,json}\""
20+
"format": "biome format --write .",
21+
"check": "biome check .",
22+
"check:fix": "biome check --write ."
2323
},
2424
"jest": {
2525
"collectCoverage": true,
@@ -89,30 +89,18 @@
8989
},
9090
"devDependencies": {
9191
"@babel/core": "7.28.5",
92-
"@eslint/eslintrc": "3.3.3",
93-
"@eslint/js": "9.39.2",
9492
"@jest/globals": "30.2.0",
9593
"@testing-library/react-native": "13.1.1",
9694
"@types/jest": "29.5.14",
9795
"@types/lodash": "4.17.21",
9896
"@types/node": "24.10.4",
9997
"@types/react": "19.2.7",
100-
"@typescript-eslint/eslint-plugin": "8.50.0",
101-
"@typescript-eslint/parser": "8.50.0",
10298
"babel-plugin-react-compiler": "19.1.0-rc.3",
10399
"babel-preset-expo": "54.0.8",
104100
"dotenv-cli": "11.0.0",
105-
"eslint-config-expo": "10.0.0",
106-
"eslint-plugin-prettier": "5.5.4",
107-
"eslint-plugin-react-compiler": "19.1.0-rc.2",
108-
"eslint-plugin-unused-imports": "4.3.0",
109-
"eslint": "9.39.2",
110101
"expo-module-scripts": "5.0.8",
111102
"jest-expo": "54.0.16",
112103
"jest": "29.7.0",
113-
"prettier-eslint": "16.4.2",
114-
"prettier-plugin-tailwindcss": "0.7.2",
115-
"prettier": "3.7.4",
116104
"react-native-svg-transformer": "1.5.2",
117105
"ts-jest": "29.4.6",
118106
"ts-node": "10.9.2",

apps/launcher/src/app/_layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import '@/styles/global.css';
22

3+
import { Stack } from 'expo-router';
4+
import { StatusBar } from 'expo-status-bar';
5+
import { GestureHandlerRootView } from 'react-native-gesture-handler';
36
import { useColorScheme } from '@/hooks/use-color-scheme';
47
import { useTheme } from '@/hooks/use-theme';
58
import { ProvidersRegistry } from '@/providers/registry';
69
import { TAILWIND_THEME } from '@/styles/theme';
7-
import { Stack } from 'expo-router';
8-
import { StatusBar } from 'expo-status-bar';
9-
import { GestureHandlerRootView } from 'react-native-gesture-handler';
1010

1111
export default function Layout() {
1212
const { theme } = useTheme();

apps/launcher/src/hooks/use-color-scheme.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { useEffect, useState, useCallback } from 'react';
2-
import { Appearance } from 'react-native';
31
import _ from 'lodash';
2+
import { useCallback, useEffect, useState } from 'react';
3+
import { Appearance } from 'react-native';
44

55
export function useColorScheme(delay = 250) {
66
const [colorScheme, setColorScheme] = useState(Appearance.getColorScheme());
@@ -14,7 +14,7 @@ export function useColorScheme(delay = 250) {
1414
delay,
1515
{ leading: false }
1616
),
17-
[delay, setColorScheme]
17+
[]
1818
);
1919

2020
useEffect(() => {

apps/launcher/src/providers/registry.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import i18next from '@/utils/i18n';
21
import type { Theme } from '@react-navigation/native';
32
import { ThemeProvider } from '@react-navigation/native';
43
import { MutationCache, QueryCache, QueryClient, QueryClientProvider } from '@tanstack/react-query';
54
import type { ReactNode } from 'react';
65
import { I18nextProvider } from 'react-i18next';
76
import { KeyboardProvider } from 'react-native-keyboard-controller';
8-
import { SafeAreaProvider, initialWindowMetrics } from 'react-native-safe-area-context';
7+
import { initialWindowMetrics, SafeAreaProvider } from 'react-native-safe-area-context';
8+
import i18next from '@/utils/i18n';
99
import SplashProvider from './splash-provider';
1010

1111
const queryClient = new QueryClient({

apps/launcher/src/providers/splash-provider.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { useColorScheme } from '@/hooks/use-color-scheme';
2-
import { cn } from '@/utils/cn';
31
import { useFonts } from 'expo-font';
42
import * as SplashScreen from 'expo-splash-screen';
53
import type { ReactNode } from 'react';
64
import { useEffect, useState } from 'react';
75
import { Text, View } from 'react-native';
86
import { SafeAreaView } from 'react-native-safe-area-context';
7+
import { useColorScheme } from '@/hooks/use-color-scheme';
8+
import { cn } from '@/utils/cn';
99

1010
SplashScreen.preventAutoHideAsync();
1111
SplashScreen.setOptions({
@@ -43,9 +43,7 @@ export default function SplashProvider({ children }: { children: ReactNode }) {
4343
)}
4444
>
4545
<SafeAreaView className="flex-1 select-none items-center justify-center gap-6">
46-
<Text className="text-center">
47-
<>{loadingState ? ` ${loadingState}` : ''}...</>
48-
</Text>
46+
<Text className="text-center">{loadingState ? ` ${loadingState}` : ''}...</Text>
4947
</SafeAreaView>
5048
</View>
5149

apps/launcher/src/utils/i18n.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
/* eslint-disable import/no-unresolved */
2-
import english from '@/i18n/en.json';
2+
33
import { getLocales } from 'expo-localization';
44
import i18n from 'i18next';
55
import { initReactI18next } from 'react-i18next';
6+
import english from '@/i18n/en.json';
67

78
export type i18nKey = keyof typeof english;
89

apps/launcher/tsconfig.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
{
2-
"$schema": "https://json.schemastore.org/tsconfig",
3-
"extends": "../../tsconfig.json",
4-
"compilerOptions": {
5-
"baseUrl": "./",
6-
"composite": true,
7-
"jsx": "react-native",
8-
"outDir": "./dist",
9-
"tsBuildInfoFile": ".tsbuildinfo",
10-
"typeRoots": ["./src/@types"],
11-
"types": ["nativewind/types"],
12-
"paths": {
13-
"*": ["*", "./src/@types/*"],
2+
"$schema": "https://json.schemastore.org/tsconfig",
3+
"extends": "../../tsconfig.json",
4+
"compilerOptions": {
5+
"baseUrl": "./",
6+
"composite": true,
7+
"jsx": "react-native",
8+
"outDir": "./dist",
9+
"tsBuildInfoFile": ".tsbuildinfo",
10+
"typeRoots": ["./src/@types"],
11+
"types": ["nativewind/types"],
12+
"paths": {
13+
"*": ["*", "./src/@types/*"],
1414

15-
"~/*": ["src/*"],
16-
"~/assets/*": ["./assets/*"],
17-
"~/utils/*": ["src/utils/*"],
18-
"~/i18n/*": ["./i18n/*"],
19-
"~/providers/*": ["src/providers/*"],
20-
"~/pages/*": ["src/app/(root)/*"],
21-
"~/hooks/*": ["src/hooks/*"],
22-
"~/styles/*": ["src/styles/*"]
23-
}
24-
},
25-
"exclude": ["dist"],
26-
"include": [
27-
"./index.ts",
28-
"src",
29-
"src/@types",
30-
"i18n/*.json",
31-
".expo/types/**/*.ts",
32-
"expo-env.d.ts",
33-
"nativewind-env.d.ts"
34-
]
15+
"~/*": ["src/*"],
16+
"~/assets/*": ["./assets/*"],
17+
"~/utils/*": ["src/utils/*"],
18+
"~/i18n/*": ["./i18n/*"],
19+
"~/providers/*": ["src/providers/*"],
20+
"~/pages/*": ["src/app/(root)/*"],
21+
"~/hooks/*": ["src/hooks/*"],
22+
"~/styles/*": ["src/styles/*"]
23+
}
24+
},
25+
"exclude": ["dist"],
26+
"include": [
27+
"./index.ts",
28+
"src",
29+
"src/@types",
30+
"i18n/*.json",
31+
".expo/types/**/*.ts",
32+
"expo-env.d.ts",
33+
"nativewind-env.d.ts"
34+
]
3535
}

0 commit comments

Comments
 (0)