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/metro.config.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'apps/mobile/metro.config.js') diff --git a/apps/mobile/metro.config.js b/apps/mobile/metro.config.js index c5630a83..f9679cb2 100644 --- a/apps/mobile/metro.config.js +++ b/apps/mobile/metro.config.js @@ -2,11 +2,11 @@ const { getDefaultConfig } = require("expo/metro-config"); const { FileStore } = require("metro-cache"); const { withNativeWind } = require("nativewind/metro"); - const path = require("path"); module.exports = withTurborepoManagedCache( withMonorepoPaths( + // eslint-disable-next-line no-undef withNativeWind(getDefaultConfig(__dirname), { input: "./globals.css", configPath: "./tailwind.config.ts", @@ -23,6 +23,7 @@ module.exports = withTurborepoManagedCache( * @returns {import('expo/metro-config').MetroConfig} */ function withMonorepoPaths(config) { + // eslint-disable-next-line no-undef const projectRoot = __dirname; const workspaceRoot = path.resolve(projectRoot, "../.."); @@ -49,10 +50,8 @@ function withMonorepoPaths(config) { */ function withTurborepoManagedCache(config) { config.cacheStores = [ + // eslint-disable-next-line no-undef new FileStore({ root: path.join(__dirname, "node_modules/.cache/metro") }), ]; return config; } - - - -- cgit v1.2.3-70-g09d2