aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/metro.config.js
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-13 22:37:41 +0000
committerMohamed Bassem <me@mbassem.com>2024-03-14 16:40:45 +0000
commita03f1dc2ac25579df30e8cb59d2703110c3e564d (patch)
tree59315e73cd83dc391660071c70752cf23989b3da /apps/mobile/metro.config.js
parent04572a8e5081b1e4871e273cde9dbaaa44c52fe0 (diff)
downloadkarakeep-a03f1dc2ac25579df30e8cb59d2703110c3e564d.tar.zst
lint: Lint and format the entire repo with the new configs
Diffstat (limited to 'apps/mobile/metro.config.js')
-rw-r--r--apps/mobile/metro.config.js7
1 files changed, 3 insertions, 4 deletions
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;
}
-
-
-