From e80dd98e912a79707ce52eeb4206e4b522f43a54 Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Fri, 21 Jun 2024 18:40:31 +0200 Subject: [PATCH] build: give linting more memory (#55265) --- .husky/pre-commit | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 2312dc587f6..e82b8d5eeff 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -npx lint-staged +NODE_OPTIONS=\"--max-old-space-size=7168\" npx lint-staged diff --git a/package.json b/package.json index 812920bf3b7..8fa223dbb50 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "knip": "npx -y knip@1 --include files", "knip:all": "npx -y knip@1", "prelint": "pnpm run -F=client predevelop", - "lint": "npm-run-all create:shared -p lint:*", + "lint": "NODE_OPTIONS=\"--max-old-space-size=7168\" npm-run-all create:shared -p lint:*", "lint:challenges": "cd ./curriculum && pnpm run lint", "lint:js": "eslint --cache --max-warnings 0 .", "lint:ts": "tsc && tsc -p shared && tsc -p api",