From 45caaf77926594e4dcd9ac360ff507eade26e19a Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Sat, 4 May 2024 18:06:30 -0400 Subject: [PATCH] Lint --- metro.config.js | 10 ---------- package.json | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/metro.config.js b/metro.config.js index bb53464d2..e91aba937 100644 --- a/metro.config.js +++ b/metro.config.js @@ -4,18 +4,8 @@ * * @format */ -const path = require('path'); -const exclusionList = require('metro-config/src/defaults/exclusionList'); module.exports = { - resolver: { - blockList: exclusionList([ - // This stops "react-native run-windows" from causing the metro server to crash if its already running - new RegExp(`${path.resolve(__dirname, 'windows').replace(/[/\\]/g, '/')}.*`), - // This prevents "react-native run-windows" from hitting: EBUSY: resource busy or locked, open msbuild.ProjectImports.zip - /.*\.ProjectImports\.zip/, - ]), - }, transformer: { getTransformOptions: async () => ({ transform: { diff --git a/package.json b/package.json index d3f41a425..e666e02ca 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "lint": " npm run tslint && node scripts/find-unused-loc.js && eslint --ext .js,.ts,.tsx '*.@(js|ts|tsx)' screen 'blue_modules/*.@(js|ts|tsx)' class models loc tests components", "lint:fix": "npm run lint -- --fix", "lint:quickfix": "git status --porcelain | grep -v '\\.json' | grep -E '\\.js|\\.ts' --color=never | awk '{print $2}' | xargs eslint --fix; exit 0", - "unit": "jest -b -i tests/unit/*", + "unit": "jest -b -i tests/unit/*" }, "jest": { "preset": "react-native",