feat: Replace linting commands with a new script to handle batch linting and prevent memory issues

This commit is contained in:
Simon Larsen
2025-06-24 18:23:34 +01:00
parent dfc4e2e7f8
commit 4e6e7cf354
2 changed files with 217 additions and 2 deletions

View File

@@ -37,8 +37,8 @@
"prerun": "bash configure.sh",
"typeorm": "node --require ts-node/register ./node_modules/typeorm/cli.js",
"uninstall": "bash uninstall.sh",
"lint": "export NODE_OPTIONS='--max-old-space-size=32768' && npx eslint . --cache",
"fix-lint": "export NODE_OPTIONS='--max-old-space-size=32768' && npx eslint . --fix --cache",
"lint": "bash ./Scripts/lint-batches.sh",
"fix-lint": "bash ./Scripts/lint-batches.sh --fix",
"fix": "npm run fix-lint",
"status-check": "bash ./Tests/Scripts/status-check.sh $npm_config_services",
"start": "export $(grep -v '^#' config.env | xargs) && docker compose up --remove-orphans -d $npm_config_services && npm run status-check",