format all root files

This commit is contained in:
Arjun Patel
2026-06-02 07:43:37 -07:00
parent 89b828a576
commit d75ce88f04
8 changed files with 86 additions and 97 deletions
+29 -30
View File
@@ -1,80 +1,79 @@
import type { ExpoConfig } from "expo/config"; import type { ExpoConfig } from 'expo/config';
const APP_ENV = (process.env.EXPO_PUBLIC_APP_ENV ?? "dev") as "dev" | "prod"; const APP_ENV = (process.env.EXPO_PUBLIC_APP_ENV ?? 'dev') as 'dev' | 'prod';
const config: ExpoConfig = { const config: ExpoConfig = {
name: "Flowy", name: 'Flowy',
slug: "flowy", slug: 'flowy',
version: "0.1.0", version: '0.1.0',
orientation: "portrait", orientation: 'portrait',
icon: "./assets/icon.png", icon: './assets/icon.png',
scheme: "flowy", scheme: 'flowy',
userInterfaceStyle: "dark", userInterfaceStyle: 'dark',
newArchEnabled: true, newArchEnabled: true,
splash: { splash: {
image: "./assets/icon.png", image: './assets/icon.png',
resizeMode: "contain", resizeMode: 'contain',
backgroundColor: "#2B2B2B", backgroundColor: '#2B2B2B',
}, },
ios: { ios: {
supportsTablet: true, supportsTablet: true,
bundleIdentifier: "ai.flowylabs.llink", bundleIdentifier: 'ai.flowylabs.llink',
infoPlist: { infoPlist: {
ITSAppUsesNonExemptEncryption: false, ITSAppUsesNonExemptEncryption: false,
}, },
}, },
android: { android: {
adaptiveIcon: { adaptiveIcon: {
foregroundImage: "./assets/icon.png", foregroundImage: './assets/icon.png',
backgroundColor: "#2B2B2B", backgroundColor: '#2B2B2B',
}, },
}, },
plugins: [ plugins: [
[ [
"expo-build-properties", 'expo-build-properties',
{ {
ios: { ios: {
deploymentTarget: "16.0", deploymentTarget: '16.0',
}, },
}, },
], ],
"expo-secure-store", 'expo-secure-store',
[ [
"expo-camera", 'expo-camera',
{ {
cameraPermission: cameraPermission: 'Flowy uses your camera to record video messages.',
"Flowy uses your camera to record video messages.",
microphonePermission: microphonePermission:
"Flowy uses your microphone to record voice and video messages.", 'Flowy uses your microphone to record voice and video messages.',
recordAudioAndroid: true, recordAudioAndroid: true,
}, },
], ],
[ [
"expo-audio", 'expo-audio',
{ {
microphonePermission: microphonePermission:
"Flowy uses your microphone to record voice messages.", 'Flowy uses your microphone to record voice messages.',
}, },
], ],
[ [
"expo-notifications", 'expo-notifications',
{ {
icon: "./assets/notification-icon.png", icon: './assets/notification-icon.png',
color: "#000000", color: '#000000',
}, },
], ],
// LiveKit needs WebRTC native modules. The two plugins below patch the // LiveKit needs WebRTC native modules. The two plugins below patch the
// iOS/Android prebuild so camera/mic permissions and the webrtc pod are // iOS/Android prebuild so camera/mic permissions and the webrtc pod are
// wired up correctly for huddles. // wired up correctly for huddles.
"@config-plugins/react-native-webrtc", '@config-plugins/react-native-webrtc',
"@livekit/react-native-expo-plugin", '@livekit/react-native-expo-plugin',
], ],
experiments: { experiments: {
typedRoutes: false, typedRoutes: false,
}, },
extra: { extra: {
eas: { eas: {
projectId: "e902f7e5-e514-42bd-9591-75738e3494ed" projectId: 'e902f7e5-e514-42bd-9591-75738e3494ed',
}, },
appEnv: APP_ENV, appEnv: APP_ENV,
+3 -3
View File
@@ -2,9 +2,9 @@ module.exports = function (api) {
api.cache(true); api.cache(true);
return { return {
presets: [ presets: [
["babel-preset-expo", { jsxImportSource: "nativewind" }], ['babel-preset-expo', { jsxImportSource: 'nativewind' }],
"nativewind/babel", 'nativewind/babel',
], ],
plugins: ["react-native-worklets/plugin"], plugins: ['react-native-worklets/plugin'],
}; };
}; };
+9 -9
View File
@@ -1,7 +1,7 @@
// https://docs.expo.dev/guides/using-eslint/ // https://docs.expo.dev/guides/using-eslint/
const { defineConfig } = require("eslint/config"); const { defineConfig } = require('eslint/config');
const expoConfig = require("eslint-config-expo/flat"); const expoConfig = require('eslint-config-expo/flat');
const eslintConfigPrettier = require("eslint-config-prettier"); const eslintConfigPrettier = require('eslint-config-prettier');
module.exports = defineConfig([ module.exports = defineConfig([
expoConfig, expoConfig,
@@ -9,17 +9,17 @@ module.exports = defineConfig([
eslintConfigPrettier, eslintConfigPrettier,
{ {
rules: { rules: {
"@typescript-eslint/no-unused-vars": [ '@typescript-eslint/no-unused-vars': [
"error", 'error',
{ {
argsIgnorePattern: "^_", argsIgnorePattern: '^_',
varsIgnorePattern: "^_", varsIgnorePattern: '^_',
caughtErrorsIgnorePattern: "^_", caughtErrorsIgnorePattern: '^_',
}, },
], ],
}, },
}, },
{ {
ignores: ["dist/*", ".expo/*"], ignores: ['dist/*', '.expo/*'],
}, },
]); ]);
+4 -4
View File
@@ -1,7 +1,7 @@
import "./global.css"; import './global.css';
import { registerGlobals } from "@livekit/react-native"; import { registerGlobals } from '@livekit/react-native';
import { registerRootComponent } from "expo"; import { registerRootComponent } from 'expo';
import App from "./src/App"; import App from './src/App';
// LiveKit pipes WebRTC globals (RTCPeerConnection, mediaDevices, ...) onto the // LiveKit pipes WebRTC globals (RTCPeerConnection, mediaDevices, ...) onto the
// JS global. Must run before any LiveKit client is constructed, so do it at // JS global. Must run before any LiveKit client is constructed, so do it at
+3 -3
View File
@@ -1,6 +1,6 @@
const { getDefaultConfig } = require("expo/metro-config"); const { getDefaultConfig } = require('expo/metro-config');
const { withNativeWind } = require("nativewind/metro"); const { withNativeWind } = require('nativewind/metro');
const config = getDefaultConfig(__dirname); const config = getDefaultConfig(__dirname);
module.exports = withNativeWind(config, { input: "./global.css" }); module.exports = withNativeWind(config, { input: './global.css' });
+2 -2
View File
@@ -10,8 +10,8 @@
"android": "expo run:android", "android": "expo run:android",
"compile": "tsc --noEmit", "compile": "tsc --noEmit",
"lint": "expo lint", "lint": "expo lint",
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"", "format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md}\" \"*.{ts,tsx,js,cjs,json}\"",
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"" "format:check": "prettier --check \"src/**/*.{ts,tsx,js,jsx,json,css,md}\" \"*.{ts,tsx,js,cjs,json}\""
}, },
"packageManager": "[email protected]", "packageManager": "[email protected]",
"dependencies": { "dependencies": {
+32 -32
View File
@@ -8,43 +8,43 @@
// written against `bg-background`, `text-foreground`, etc. behave identically // written against `bg-background`, `text-foreground`, etc. behave identically
// to the desktop app in dark mode. // to the desktop app in dark mode.
module.exports = { module.exports = {
content: ["./index.ts", "./src/**/*.{ts,tsx}"], content: ['./index.ts', './src/**/*.{ts,tsx}'],
presets: [require("nativewind/preset")], presets: [require('nativewind/preset')],
theme: { theme: {
extend: { extend: {
colors: { colors: {
background: "#252525", // oklch(0.145 0 0) background: '#252525', // oklch(0.145 0 0)
foreground: "#fafafa", // oklch(0.985 0 0) foreground: '#fafafa', // oklch(0.985 0 0)
card: "#363636", // oklch(0.205 0 0) card: '#363636', // oklch(0.205 0 0)
"card-foreground": "#fafafa", 'card-foreground': '#fafafa',
popover: "#363636", popover: '#363636',
"popover-foreground": "#fafafa", 'popover-foreground': '#fafafa',
primary: "#ebebeb", // oklch(0.922 0 0) primary: '#ebebeb', // oklch(0.922 0 0)
"primary-foreground": "#363636", 'primary-foreground': '#363636',
secondary: "#454545", // oklch(0.269 0 0) secondary: '#454545', // oklch(0.269 0 0)
"secondary-foreground": "#fafafa", 'secondary-foreground': '#fafafa',
muted: "#454545", muted: '#454545',
"muted-foreground": "#a6a6a6", // oklch(0.708 0 0) 'muted-foreground': '#a6a6a6', // oklch(0.708 0 0)
accent: "#454545", accent: '#454545',
"accent-foreground": "#fafafa", 'accent-foreground': '#fafafa',
destructive: "#ef4444", // oklch(0.704 0.191 22.216) destructive: '#ef4444', // oklch(0.704 0.191 22.216)
border: "rgba(255,255,255,0.1)", // oklch(1 0 0 / 10%) border: 'rgba(255,255,255,0.1)', // oklch(1 0 0 / 10%)
input: "rgba(255,255,255,0.15)", // oklch(1 0 0 / 15%) input: 'rgba(255,255,255,0.15)', // oklch(1 0 0 / 15%)
ring: "#878787", // oklch(0.556 0 0) ring: '#878787', // oklch(0.556 0 0)
sidebar: "#363636", sidebar: '#363636',
"sidebar-foreground": "#fafafa", 'sidebar-foreground': '#fafafa',
"sidebar-primary": "#6366f1", // chart-1 dark = oklch(0.488 0.243 264.376) 'sidebar-primary': '#6366f1', // chart-1 dark = oklch(0.488 0.243 264.376)
"sidebar-primary-foreground": "#fafafa", 'sidebar-primary-foreground': '#fafafa',
"sidebar-accent": "#454545", 'sidebar-accent': '#454545',
"sidebar-accent-foreground": "#fafafa", 'sidebar-accent-foreground': '#fafafa',
"sidebar-border": "rgba(255,255,255,0.1)", 'sidebar-border': 'rgba(255,255,255,0.1)',
"sidebar-ring": "#878787", 'sidebar-ring': '#878787',
}, },
borderRadius: { borderRadius: {
lg: "10px", // --radius: 0.625rem lg: '10px', // --radius: 0.625rem
md: "8px", md: '8px',
sm: "6px", sm: '6px',
xl: "14px", xl: '14px',
}, },
}, },
}, },
+4 -14
View File
@@ -4,20 +4,10 @@
"strict": true, "strict": true,
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": [ "@/*": ["src/*"]
"src/*"
]
}, },
"types": [ "types": ["nativewind/types"]
"nativewind/types"
]
}, },
"include": [ "include": ["**/*.ts", "**/*.tsx", "nativewind-env.d.ts"],
"**/*.ts", "exclude": ["node_modules"]
"**/*.tsx",
"nativewind-env.d.ts"
],
"exclude": [
"node_modules"
]
} }