From b2edd33ca54426500b85a0596da08cf1f0c32634 Mon Sep 17 00:00:00 2001 From: Anna Claire Fields <58918237+franklovefrank@users.noreply.github.com> Date: Wed, 10 Jun 2026 11:45:51 +0200 Subject: [PATCH] [PnP Migration] update ESLint cache location to use a unified .cache directory (#34485) GitOrigin-RevId: 3b4551405e4b9fa552d6f289a31dd4eb2a73d875 --- libraries/access-token-encryptor/package.json | 4 ++-- libraries/fetch-utils/package.json | 4 ++-- libraries/logger/package.json | 4 ++-- libraries/metrics/package.json | 4 ++-- libraries/mongo-utils/package.json | 4 ++-- libraries/o-error/package.json | 4 ++-- libraries/object-persistor/package.json | 4 ++-- libraries/overleaf-editor-core/package.json | 4 ++-- libraries/promise-utils/package.json | 4 ++-- libraries/ranges-tracker/package.json | 4 ++-- libraries/redis-wrapper/package.json | 4 ++-- libraries/settings/package.json | 4 ++-- libraries/stream-utils/package.json | 4 ++-- libraries/validation-tools/package.json | 4 ++-- package.json | 24 +++++++++---------- server-ce/test/package.json | 4 ++-- services/chat/Makefile | 12 +++++----- services/chat/package.json | 4 ++-- services/clsi/Makefile | 12 +++++----- services/clsi/package.json | 4 ++-- services/docstore/Makefile | 12 +++++----- services/docstore/package.json | 4 ++-- services/document-updater/Makefile | 12 +++++----- services/document-updater/package.json | 4 ++-- services/filestore/Makefile | 12 +++++----- services/filestore/package.json | 4 ++-- services/history-v1/Makefile | 12 +++++----- services/history-v1/package.json | 4 ++-- services/notifications/Makefile | 12 +++++----- services/notifications/package.json | 4 ++-- services/project-history/Makefile | 12 +++++----- services/project-history/package.json | 4 ++-- services/real-time/Makefile | 12 +++++----- services/real-time/package.json | 4 ++-- services/web/.mocharc.js | 2 +- services/web/Makefile | 18 +++++++------- .../invalidate-babel-cache-if-needed.js | 2 +- services/web/package.json | 8 +++---- services/web/webpack.config.js | 4 ++-- tools/migrations/package.json | 4 ++-- 40 files changed, 133 insertions(+), 133 deletions(-) diff --git a/libraries/access-token-encryptor/package.json b/libraries/access-token-encryptor/package.json index 96492a4dfa..0564415b79 100644 --- a/libraries/access-token-encryptor/package.json +++ b/libraries/access-token-encryptor/package.json @@ -5,8 +5,8 @@ "main": "index.js", "scripts": { "test": "yarn run lint && yarn run types:check && yarn run test:unit", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test:ci": "yarn run test:unit", "test:unit": "mocha --exit test/**/*.{js,cjs}", "types:check": "tsc --noEmit" diff --git a/libraries/fetch-utils/package.json b/libraries/fetch-utils/package.json index 7f339bdf06..bbde709617 100644 --- a/libraries/fetch-utils/package.json +++ b/libraries/fetch-utils/package.json @@ -5,8 +5,8 @@ "main": "index.js", "scripts": { "test": "yarn run lint && yarn run types:check && yarn run test:unit", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test:ci": "yarn run test:unit", "test:unit": "mocha --exit test/**/*.{js,cjs}", "types:check": "tsc --noEmit" diff --git a/libraries/logger/package.json b/libraries/logger/package.json index f2a5579c14..bdd86292df 100644 --- a/libraries/logger/package.json +++ b/libraries/logger/package.json @@ -11,8 +11,8 @@ "version": "3.1.1", "scripts": { "test": "yarn run lint && yarn run types:check && yarn run test:unit", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test:ci": "yarn run test:unit", "test:unit": "mocha --exit test/**/*.{js,cjs}", "types:check": "tsc --noEmit" diff --git a/libraries/metrics/package.json b/libraries/metrics/package.json index c0afc29952..bd04dbd6fd 100644 --- a/libraries/metrics/package.json +++ b/libraries/metrics/package.json @@ -31,8 +31,8 @@ "typescript": "^5.0.4" }, "scripts": { - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test:unit": "mocha --exit test/**/*.{js,cjs}", "test:acceptance": "mocha --recursive --exit --grep=${MOCHA_GREP:-} test/acceptance", "test": "yarn run lint && yarn run types:check && yarn run test:unit", diff --git a/libraries/mongo-utils/package.json b/libraries/mongo-utils/package.json index daeeacea6f..74561728b4 100644 --- a/libraries/mongo-utils/package.json +++ b/libraries/mongo-utils/package.json @@ -6,8 +6,8 @@ "scripts": { "test": "yarn run lint && yarn run types:check && yarn run test:unit", "test:unit": "mocha --exit test/**/*.{js,cjs}", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test:ci": "yarn run test:unit", "types:check": "tsc --noEmit" }, diff --git a/libraries/o-error/package.json b/libraries/o-error/package.json index e92ac4901a..f0d2617788 100644 --- a/libraries/o-error/package.json +++ b/libraries/o-error/package.json @@ -18,8 +18,8 @@ ], "scripts": { "build": "yarn run --silent test", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test": "yarn run lint && yarn run types:check && yarn run test:unit", "test:ci": "yarn run test:unit", "test:unit": "mocha --exit test/**/*.{js,cjs}", diff --git a/libraries/object-persistor/package.json b/libraries/object-persistor/package.json index 2378878bd1..ed553c207a 100644 --- a/libraries/object-persistor/package.json +++ b/libraries/object-persistor/package.json @@ -6,8 +6,8 @@ "scripts": { "test": "yarn run lint && yarn run types:check && yarn run test:unit", "test:unit": "mocha --exit test/**/*.{js,cjs}", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test:ci": "yarn run test:unit", "types:check": "tsc --noEmit" }, diff --git a/libraries/overleaf-editor-core/package.json b/libraries/overleaf-editor-core/package.json index dc82f0536c..4c7718199d 100644 --- a/libraries/overleaf-editor-core/package.json +++ b/libraries/overleaf-editor-core/package.json @@ -5,8 +5,8 @@ "main": "index.js", "scripts": { "test": "yarn run lint && yarn run types:check && yarn run test:unit", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test:ci": "yarn run test:unit", "test:unit": "mocha --exit test/**/*.{js,cjs}", "types:check": "tsc --noEmit" diff --git a/libraries/promise-utils/package.json b/libraries/promise-utils/package.json index eb347ba21c..833135292c 100644 --- a/libraries/promise-utils/package.json +++ b/libraries/promise-utils/package.json @@ -6,8 +6,8 @@ "scripts": { "test": "yarn run lint && yarn run types:check && yarn run test:unit", "test:unit": "mocha --exit test/**/*.{js,cjs}", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test:ci": "yarn run test:unit", "types:check": "tsc --noEmit" }, diff --git a/libraries/ranges-tracker/package.json b/libraries/ranges-tracker/package.json index 9f74ff7bde..1509a9a99a 100644 --- a/libraries/ranges-tracker/package.json +++ b/libraries/ranges-tracker/package.json @@ -9,8 +9,8 @@ "author": "Overleaf (https://www.overleaf.com)", "private": true, "scripts": { - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test": "yarn run lint && yarn run types:check && yarn run test:unit", "test:ci": "yarn run test:unit", "test:unit": "mocha --exit test/**/*.{js,cjs}", diff --git a/libraries/redis-wrapper/package.json b/libraries/redis-wrapper/package.json index ff373d8c4c..544d9b89c4 100644 --- a/libraries/redis-wrapper/package.json +++ b/libraries/redis-wrapper/package.json @@ -13,8 +13,8 @@ "repository": "github:overleaf/redis-wrapper", "license": "ISC", "scripts": { - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test": "yarn run lint && yarn run types:check && yarn run test:unit", "test:ci": "yarn run test:unit", "test:unit": "mocha --exit test/**/*.{js,cjs}", diff --git a/libraries/settings/package.json b/libraries/settings/package.json index 6afd0cc51e..e3b8aa4d5e 100644 --- a/libraries/settings/package.json +++ b/libraries/settings/package.json @@ -5,8 +5,8 @@ "repository": "overleaf/settings-module", "main": "index.js", "scripts": { - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test": "yarn run lint && yarn run types:check && yarn run test:unit", "test:ci": "yarn run test:unit", "test:unit": "mocha --exit test/**/*.{js,cjs}", diff --git a/libraries/stream-utils/package.json b/libraries/stream-utils/package.json index a82fadaa1c..a130a00257 100644 --- a/libraries/stream-utils/package.json +++ b/libraries/stream-utils/package.json @@ -6,8 +6,8 @@ "scripts": { "test": "yarn run lint && yarn run types:check && yarn run test:unit", "test:unit": "mocha --exit test/**/*.{js,cjs}", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test:ci": "yarn run test:unit", "types:check": "tsc --noEmit" }, diff --git a/libraries/validation-tools/package.json b/libraries/validation-tools/package.json index b614edd150..4668ce48f7 100644 --- a/libraries/validation-tools/package.json +++ b/libraries/validation-tools/package.json @@ -11,8 +11,8 @@ "version": "1.0.0", "scripts": { "test": "yarn run lint && yarn run types:check && yarn run test:unit", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts .", "test:ci": "yarn run test:unit", "test:unit": "vitest --config vitest.config.ts", "types:check": "tsc --noEmit" diff --git a/package.json b/package.json index 2cd3968970..fff7e1383f 100644 --- a/package.json +++ b/package.json @@ -181,18 +181,18 @@ "systeminformation": "5.31.6" }, "scripts": { - "format": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --check", - "format:fix": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --write --check", - "format:styles": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --check '**/*.{css,scss}'", - "format:styles:fix": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --write --check '**/*.{css,scss}'", - "format:pug": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --check '**/*.pug'", - "format:pug:fix": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --write --check '**/*.pug'", - "format:jenkins": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --check '**/Jenkinsfile'", - "format:jenkins:fix": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --write --check '**/Jenkinsfile'", - "format:monorepo-check": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --check '**/Jenkinsfile' '**/*.md' '**/docker-compose.yml' '**/docker-compose.*.yml' '.agents/**/*.js' '.agents/**/*.md'", - "format:monorepo-check:fix": "prettier --cache --cache-location ./node_modules/.cache/prettier/.prettier-cache --write --check '**/Jenkinsfile' '**/*.md' '**/docker-compose.yml' '**/docker-compose.*.yml' '.agents/**/*.js' '.agents/**/*.md'", - "lint": "eslint --cache --cache-location ./node_modules/.cache/eslint/ --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ./node_modules/.cache/eslint/ --fix ." + "format": "prettier --cache --cache-location ./.cache/prettier/.prettier-cache --check", + "format:fix": "prettier --cache --cache-location ./.cache/prettier/.prettier-cache --write --check", + "format:styles": "prettier --cache --cache-location ./.cache/prettier/.prettier-cache --check '**/*.{css,scss}'", + "format:styles:fix": "prettier --cache --cache-location ./.cache/prettier/.prettier-cache --write --check '**/*.{css,scss}'", + "format:pug": "prettier --cache --cache-location ./.cache/prettier/.prettier-cache --check '**/*.pug'", + "format:pug:fix": "prettier --cache --cache-location ./.cache/prettier/.prettier-cache --write --check '**/*.pug'", + "format:jenkins": "prettier --cache --cache-location ./.cache/prettier/.prettier-cache --check '**/Jenkinsfile'", + "format:jenkins:fix": "prettier --cache --cache-location ./.cache/prettier/.prettier-cache --write --check '**/Jenkinsfile'", + "format:monorepo-check": "prettier --cache --cache-location ./.cache/prettier/.prettier-cache --check '**/Jenkinsfile' '**/*.md' '**/docker-compose.yml' '**/docker-compose.*.yml' '.agents/**/*.js' '.agents/**/*.md'", + "format:monorepo-check:fix": "prettier --cache --cache-location ./.cache/prettier/.prettier-cache --write --check '**/Jenkinsfile' '**/*.md' '**/docker-compose.yml' '**/docker-compose.*.yml' '.agents/**/*.js' '.agents/**/*.md'", + "lint": "eslint --cache --cache-location ./.cache/eslint/ --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ./.cache/eslint/ --fix ." }, "workspaces": [ "jobs/mirror-documentation", diff --git a/server-ce/test/package.json b/server-ce/test/package.json index a08df15195..1e16326d10 100644 --- a/server-ce/test/package.json +++ b/server-ce/test/package.json @@ -6,8 +6,8 @@ "scripts": { "cypress:open": "cypress open --e2e --browser chrome", "cypress:run": "cypress run --e2e --browser chrome", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --max-warnings 0 --format unix --ext .js,.jsx,.mjs,.ts,.tsx .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .js,.jsx,.mjs,.ts,.tsx ." + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --max-warnings 0 --format unix --ext .js,.jsx,.mjs,.ts,.tsx .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .js,.jsx,.mjs,.ts,.tsx ." }, "devDependencies": { "@isomorphic-git/lightning-fs": "^4.6.0", diff --git a/services/chat/Makefile b/services/chat/Makefile index 873220c25a..298a93fb50 100644 --- a/services/chat/Makefile +++ b/services/chat/Makefile @@ -70,8 +70,8 @@ clean: RUN_LINTING = ../../bin/run -w /overleaf/services/$(PROJECT_NAME) monorepo yarn run --silent RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent -RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/chat/reports:/overleaf/services/chat/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache $(IMAGE_CI) yarn run --silent -RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/chat/reports:/overleaf/services/chat/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache -w /overleaf $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/chat/reports:/overleaf/services/chat/reports --volume $(MONOREPO)/.cache:/overleaf/.cache $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/chat/reports:/overleaf/services/chat/reports --volume $(MONOREPO)/.cache:/overleaf/.cache -w /overleaf $(IMAGE_CI) yarn run --silent SHELLCHECK_OPTS = \ --shell=bash \ @@ -101,12 +101,12 @@ WITH_CACHE_FOLDER = \ typecheck \ typecheck_ci \ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/ -../../node_modules/.cache/prettier/: +$(WITH_CACHE_FOLDER): ../../.cache/prettier/ +../../.cache/prettier/: mkdir -p $@ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/ -../../node_modules/.cache/eslint/: +$(WITH_CACHE_FOLDER): ../../.cache/eslint/ +../../.cache/eslint/: mkdir -p $@ format: diff --git a/services/chat/package.json b/services/chat/package.json index a3484e46ec..bfe2516de0 100644 --- a/services/chat/package.json +++ b/services/chat/package.json @@ -11,8 +11,8 @@ "nodemon": "node --watch app.js", "test:acceptance:_run": "mocha --recursive --timeout 15000 --exit --retries=$RETRIES $@ test/acceptance/js", "test:unit:_run": "mocha --recursive --exit $@ test/unit/js", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix .", "types:check": "tsc --noEmit" }, "dependencies": { diff --git a/services/clsi/Makefile b/services/clsi/Makefile index 8115d127d6..bf2f86592a 100644 --- a/services/clsi/Makefile +++ b/services/clsi/Makefile @@ -72,8 +72,8 @@ clean: RUN_LINTING = ../../bin/run -w /overleaf/services/$(PROJECT_NAME) monorepo yarn run --silent RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent -RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/clsi/reports:/overleaf/services/clsi/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache $(IMAGE_CI) yarn run --silent -RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/clsi/reports:/overleaf/services/clsi/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache -w /overleaf $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/clsi/reports:/overleaf/services/clsi/reports --volume $(MONOREPO)/.cache:/overleaf/.cache $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/clsi/reports:/overleaf/services/clsi/reports --volume $(MONOREPO)/.cache:/overleaf/.cache -w /overleaf $(IMAGE_CI) yarn run --silent SHELLCHECK_OPTS = \ --shell=bash \ @@ -103,12 +103,12 @@ WITH_CACHE_FOLDER = \ typecheck \ typecheck_ci \ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/ -../../node_modules/.cache/prettier/: +$(WITH_CACHE_FOLDER): ../../.cache/prettier/ +../../.cache/prettier/: mkdir -p $@ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/ -../../node_modules/.cache/eslint/: +$(WITH_CACHE_FOLDER): ../../.cache/eslint/ +../../.cache/eslint/: mkdir -p $@ format: diff --git a/services/clsi/package.json b/services/clsi/package.json index 908f35e70b..97e7a1d0d5 100644 --- a/services/clsi/package.json +++ b/services/clsi/package.json @@ -11,8 +11,8 @@ "test:unit:_run": "vitest --config ./vitest.config.unit.cjs", "test:unit": "yarn run test:unit:_run", "nodemon": "node --watch app.js", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix .", "types:check": "tsc --noEmit" }, "dependencies": { diff --git a/services/docstore/Makefile b/services/docstore/Makefile index 75d456c6fe..ebf48d5a42 100644 --- a/services/docstore/Makefile +++ b/services/docstore/Makefile @@ -72,8 +72,8 @@ clean: RUN_LINTING = ../../bin/run -w /overleaf/services/$(PROJECT_NAME) monorepo yarn run --silent RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent -RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/docstore/reports:/overleaf/services/docstore/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache $(IMAGE_CI) yarn run --silent -RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/docstore/reports:/overleaf/services/docstore/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache -w /overleaf $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/docstore/reports:/overleaf/services/docstore/reports --volume $(MONOREPO)/.cache:/overleaf/.cache $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/docstore/reports:/overleaf/services/docstore/reports --volume $(MONOREPO)/.cache:/overleaf/.cache -w /overleaf $(IMAGE_CI) yarn run --silent SHELLCHECK_OPTS = \ --shell=bash \ @@ -103,12 +103,12 @@ WITH_CACHE_FOLDER = \ typecheck \ typecheck_ci \ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/ -../../node_modules/.cache/prettier/: +$(WITH_CACHE_FOLDER): ../../.cache/prettier/ +../../.cache/prettier/: mkdir -p $@ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/ -../../node_modules/.cache/eslint/: +$(WITH_CACHE_FOLDER): ../../.cache/eslint/ +../../.cache/eslint/: mkdir -p $@ format: diff --git a/services/docstore/package.json b/services/docstore/package.json index 8eda9bc05e..de6bbb79a0 100644 --- a/services/docstore/package.json +++ b/services/docstore/package.json @@ -11,8 +11,8 @@ "test:unit:_run": "vitest --config ./vitest.config.unit.cjs", "test:unit": "yarn run test:unit:_run", "nodemon": "node --watch app.js", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix .", "types:check": "tsc --noEmit" }, "dependencies": { diff --git a/services/document-updater/Makefile b/services/document-updater/Makefile index bd3d585112..423bb66349 100644 --- a/services/document-updater/Makefile +++ b/services/document-updater/Makefile @@ -73,8 +73,8 @@ clean: RUN_LINTING = ../../bin/run -w /overleaf/services/$(PROJECT_NAME) monorepo yarn run --silent RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent -RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/document-updater/reports:/overleaf/services/document-updater/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache $(IMAGE_CI) yarn run --silent -RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/document-updater/reports:/overleaf/services/document-updater/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache -w /overleaf $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/document-updater/reports:/overleaf/services/document-updater/reports --volume $(MONOREPO)/.cache:/overleaf/.cache $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/document-updater/reports:/overleaf/services/document-updater/reports --volume $(MONOREPO)/.cache:/overleaf/.cache -w /overleaf $(IMAGE_CI) yarn run --silent SHELLCHECK_OPTS = \ --shell=bash \ @@ -104,12 +104,12 @@ WITH_CACHE_FOLDER = \ typecheck \ typecheck_ci \ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/ -../../node_modules/.cache/prettier/: +$(WITH_CACHE_FOLDER): ../../.cache/prettier/ +../../.cache/prettier/: mkdir -p $@ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/ -../../node_modules/.cache/eslint/: +$(WITH_CACHE_FOLDER): ../../.cache/eslint/ +../../.cache/eslint/: mkdir -p $@ format: diff --git a/services/document-updater/package.json b/services/document-updater/package.json index a0ec8cceff..15627e738c 100644 --- a/services/document-updater/package.json +++ b/services/document-updater/package.json @@ -11,8 +11,8 @@ "test:unit": "yarn run test:unit:_run -- --grep=$MOCHA_GREP", "nodemon": "node --watch app.js", "benchmark:apply": "node benchmarks/apply", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix .", "types:check": "tsc --noEmit" }, "dependencies": { diff --git a/services/filestore/Makefile b/services/filestore/Makefile index 29cc6d3180..171633c975 100644 --- a/services/filestore/Makefile +++ b/services/filestore/Makefile @@ -70,8 +70,8 @@ clean: RUN_LINTING = ../../bin/run -w /overleaf/services/$(PROJECT_NAME) monorepo yarn run --silent RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent -RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/filestore/reports:/overleaf/services/filestore/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache $(IMAGE_CI) yarn run --silent -RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/filestore/reports:/overleaf/services/filestore/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache -w /overleaf $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/filestore/reports:/overleaf/services/filestore/reports --volume $(MONOREPO)/.cache:/overleaf/.cache $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/filestore/reports:/overleaf/services/filestore/reports --volume $(MONOREPO)/.cache:/overleaf/.cache -w /overleaf $(IMAGE_CI) yarn run --silent SHELLCHECK_OPTS = \ --shell=bash \ @@ -101,12 +101,12 @@ WITH_CACHE_FOLDER = \ typecheck \ typecheck_ci \ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/ -../../node_modules/.cache/prettier/: +$(WITH_CACHE_FOLDER): ../../.cache/prettier/ +../../.cache/prettier/: mkdir -p $@ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/ -../../node_modules/.cache/eslint/: +$(WITH_CACHE_FOLDER): ../../.cache/eslint/ +../../.cache/eslint/: mkdir -p $@ format: diff --git a/services/filestore/package.json b/services/filestore/package.json index ce31b5ebbe..13ef2fdacc 100644 --- a/services/filestore/package.json +++ b/services/filestore/package.json @@ -11,10 +11,10 @@ "test:unit": "yarn run test:unit:_run", "start": "node app.js", "nodemon": "node --watch app.js", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --max-warnings 0 --format unix .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --max-warnings 0 --format unix .", "test:acceptance:_run": "mocha --recursive --timeout 15000 --exit --retries=$RETRIES $@ test/acceptance/js", "test:unit:_run": "vitest --config ./vitest.config.unit.cjs", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix .", "types:check": "tsc --noEmit" }, "dependencies": { diff --git a/services/history-v1/Makefile b/services/history-v1/Makefile index 4db9e3059c..eb3e7556f8 100644 --- a/services/history-v1/Makefile +++ b/services/history-v1/Makefile @@ -75,8 +75,8 @@ clean: RUN_LINTING = ../../bin/run -w /overleaf/services/$(PROJECT_NAME) monorepo yarn run --silent RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent -RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/history-v1/reports:/overleaf/services/history-v1/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache $(IMAGE_CI) yarn run --silent -RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/history-v1/reports:/overleaf/services/history-v1/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache -w /overleaf $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/history-v1/reports:/overleaf/services/history-v1/reports --volume $(MONOREPO)/.cache:/overleaf/.cache $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/history-v1/reports:/overleaf/services/history-v1/reports --volume $(MONOREPO)/.cache:/overleaf/.cache -w /overleaf $(IMAGE_CI) yarn run --silent SHELLCHECK_OPTS = \ --shell=bash \ @@ -106,12 +106,12 @@ WITH_CACHE_FOLDER = \ typecheck \ typecheck_ci \ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/ -../../node_modules/.cache/prettier/: +$(WITH_CACHE_FOLDER): ../../.cache/prettier/ +../../.cache/prettier/: mkdir -p $@ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/ -../../node_modules/.cache/eslint/: +$(WITH_CACHE_FOLDER): ../../.cache/eslint/ +../../.cache/eslint/: mkdir -p $@ format: diff --git a/services/history-v1/package.json b/services/history-v1/package.json index e1c276d807..8dd6cdafc8 100644 --- a/services/history-v1/package.json +++ b/services/history-v1/package.json @@ -63,8 +63,8 @@ }, "scripts": { "start": "node app.js", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix .", "test:unit": "yarn run test:unit:_run -- --grep=$MOCHA_GREP", "test:acceptance": "yarn run test:acceptance:_run -- --grep=$MOCHA_GREP", "test:unit:_run": "mocha --recursive --exit $@ test/unit/js", diff --git a/services/notifications/Makefile b/services/notifications/Makefile index 994fa502f0..e161b7651a 100644 --- a/services/notifications/Makefile +++ b/services/notifications/Makefile @@ -71,8 +71,8 @@ clean: RUN_LINTING = ../../bin/run -w /overleaf/services/$(PROJECT_NAME) monorepo yarn run --silent RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent -RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/notifications/reports:/overleaf/services/notifications/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache $(IMAGE_CI) yarn run --silent -RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/notifications/reports:/overleaf/services/notifications/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache -w /overleaf $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/notifications/reports:/overleaf/services/notifications/reports --volume $(MONOREPO)/.cache:/overleaf/.cache $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/notifications/reports:/overleaf/services/notifications/reports --volume $(MONOREPO)/.cache:/overleaf/.cache -w /overleaf $(IMAGE_CI) yarn run --silent SHELLCHECK_OPTS = \ --shell=bash \ @@ -102,12 +102,12 @@ WITH_CACHE_FOLDER = \ typecheck \ typecheck_ci \ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/ -../../node_modules/.cache/prettier/: +$(WITH_CACHE_FOLDER): ../../.cache/prettier/ +../../.cache/prettier/: mkdir -p $@ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/ -../../node_modules/.cache/eslint/: +$(WITH_CACHE_FOLDER): ../../.cache/eslint/ +../../.cache/eslint/: mkdir -p $@ format: diff --git a/services/notifications/package.json b/services/notifications/package.json index 4ba39dcff5..d144b7ab09 100644 --- a/services/notifications/package.json +++ b/services/notifications/package.json @@ -10,8 +10,8 @@ "test:acceptance": "yarn run test:acceptance:_run", "test:unit:_run": "vitest --config ./vitest.config.unit.cjs", "test:unit": "yarn run test:unit:_run", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix .", "types:check": "tsc --noEmit", "nodemon": "node --watch app.ts" }, diff --git a/services/project-history/Makefile b/services/project-history/Makefile index e853d08624..29a1d82601 100644 --- a/services/project-history/Makefile +++ b/services/project-history/Makefile @@ -74,8 +74,8 @@ clean: RUN_LINTING = ../../bin/run -w /overleaf/services/$(PROJECT_NAME) monorepo yarn run --silent RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent -RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/document-updater/app/js/types.ts:/overleaf/services/document-updater/app/js/types.ts --volume $(MONOREPO)/services/project-history/reports:/overleaf/services/project-history/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache $(IMAGE_CI) yarn run --silent -RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/document-updater/app/js/types.ts:/overleaf/services/document-updater/app/js/types.ts --volume $(MONOREPO)/services/project-history/reports:/overleaf/services/project-history/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache -w /overleaf $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/document-updater/app/js/types.ts:/overleaf/services/document-updater/app/js/types.ts --volume $(MONOREPO)/services/project-history/reports:/overleaf/services/project-history/reports --volume $(MONOREPO)/.cache:/overleaf/.cache $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/document-updater/app/js/types.ts:/overleaf/services/document-updater/app/js/types.ts --volume $(MONOREPO)/services/project-history/reports:/overleaf/services/project-history/reports --volume $(MONOREPO)/.cache:/overleaf/.cache -w /overleaf $(IMAGE_CI) yarn run --silent SHELLCHECK_OPTS = \ --shell=bash \ @@ -105,12 +105,12 @@ WITH_CACHE_FOLDER = \ typecheck \ typecheck_ci \ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/ -../../node_modules/.cache/prettier/: +$(WITH_CACHE_FOLDER): ../../.cache/prettier/ +../../.cache/prettier/: mkdir -p $@ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/ -../../node_modules/.cache/eslint/: +$(WITH_CACHE_FOLDER): ../../.cache/eslint/ +../../.cache/eslint/: mkdir -p $@ format: diff --git a/services/project-history/package.json b/services/project-history/package.json index 2eb92985b8..f8eaff45a7 100644 --- a/services/project-history/package.json +++ b/services/project-history/package.json @@ -11,8 +11,8 @@ "nodemon": "node --watch app.js", "test:acceptance:_run": "mocha --loader=esmock --recursive --timeout 15000 --exit --retries=$RETRIES $@ test/acceptance/js", "test:unit:_run": "mocha --loader=esmock --recursive --exit $@ test/unit/js", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix .", "types:check": "tsc --noEmit" }, "dependencies": { diff --git a/services/real-time/Makefile b/services/real-time/Makefile index 69fa55ca78..452f140e4a 100644 --- a/services/real-time/Makefile +++ b/services/real-time/Makefile @@ -70,8 +70,8 @@ clean: RUN_LINTING = ../../bin/run -w /overleaf/services/$(PROJECT_NAME) monorepo yarn run --silent RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent -RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/real-time/reports:/overleaf/services/real-time/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache $(IMAGE_CI) yarn run --silent -RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/real-time/reports:/overleaf/services/real-time/reports --volume $(MONOREPO)/node_modules/.cache:/overleaf/node_modules/.cache -w /overleaf $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/real-time/reports:/overleaf/services/real-time/reports --volume $(MONOREPO)/.cache:/overleaf/.cache $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/real-time/reports:/overleaf/services/real-time/reports --volume $(MONOREPO)/.cache:/overleaf/.cache -w /overleaf $(IMAGE_CI) yarn run --silent SHELLCHECK_OPTS = \ --shell=bash \ @@ -101,12 +101,12 @@ WITH_CACHE_FOLDER = \ typecheck \ typecheck_ci \ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/ -../../node_modules/.cache/prettier/: +$(WITH_CACHE_FOLDER): ../../.cache/prettier/ +../../.cache/prettier/: mkdir -p $@ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/ -../../node_modules/.cache/eslint/: +$(WITH_CACHE_FOLDER): ../../.cache/eslint/ +../../.cache/eslint/: mkdir -p $@ format: diff --git a/services/real-time/package.json b/services/real-time/package.json index 40c329e9f1..9bc153f21d 100644 --- a/services/real-time/package.json +++ b/services/real-time/package.json @@ -11,8 +11,8 @@ "test:unit:_run": "vitest --config ./vitest.config.unit.cjs", "test:unit": "yarn run test:unit:_run", "nodemon": "node --watch app.js", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix .", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix .", "types:check": "tsc --noEmit" }, "dependencies": { diff --git a/services/web/.mocharc.js b/services/web/.mocharc.js index e3ad2a5f29..97581d48a9 100644 --- a/services/web/.mocharc.js +++ b/services/web/.mocharc.js @@ -1,7 +1,7 @@ let reporterOptions = {} if (process.env.CI && process.env.JUNIT_ROOT_SUITE_NAME) { reporterOptions = { - reporter: '/overleaf/node_modules/mocha-multi-reporters', + reporter: require.resolve('mocha-multi-reporters'), 'reporter-options': ['configFile=./test/mocha-multi-reporters.js'], } } diff --git a/services/web/Makefile b/services/web/Makefile index 81731d830d..cc6d18c9e4 100644 --- a/services/web/Makefile +++ b/services/web/Makefile @@ -227,7 +227,7 @@ test_writefull: # Note: The below cypress targets are for CI only build_test_frontend_ct: $(DOCKER_COMPOSE) build test_frontend_ct - docker run --rm --volume /dev/shm:/dev/shm --user root $(IMAGE_CI) bash -ec 'for path in /overleaf/services/web/cypress/results /overleaf/services/web/cypress/support /overleaf/services/web/node_modules/.cache; do mkdir -p $$path; chown -R node:node $$path; done && tar -cC / overleaf | tar -xC /dev/shm' + docker run --rm --volume /dev/shm:/dev/shm --user root $(IMAGE_CI) bash -ec 'for path in /overleaf/services/web/cypress/results /overleaf/services/web/cypress/support /overleaf/services/web/.cache; do mkdir -p $$path; chown -R node:node $$path; done && tar -cC / overleaf | tar -xC /dev/shm' test_frontend_ct_core_other: export CYPRESS_DOWNLOADS=./cypress/downloads/core test_frontend_ct_core_other: export CYPRESS_RESULTS=./cypress/results/core @@ -493,13 +493,13 @@ ci: # Run the linting commands in the scope of the monorepo. # Eslint and prettier (plus some configs) are on the root. -RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/web/data/reports:/overleaf/services/web/data/reports --volume $(MONOREPO)/node_modules/.cache/:/overleaf/node_modules/.cache/ -w /overleaf $(IMAGE_CI) yarn run --silent +RUN_LINTING_CI_MONOREPO = docker run --rm --volume $(MONOREPO)/.editorconfig:/overleaf/.editorconfig --volume $(MONOREPO)/eslint.config.mjs:/overleaf/eslint.config.mjs --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume $(MONOREPO)/tsconfig.backend.json:/overleaf/tsconfig.backend.json --volume $(MONOREPO)/services/web/data/reports:/overleaf/services/web/data/reports --volume $(MONOREPO)/.cache/:/overleaf/.cache/ -w /overleaf $(IMAGE_CI) yarn run --silent RUN_LINTING = ../../bin/run -w /overleaf/services/$(PROJECT_NAME) monorepo yarn run --silent RUN_LINTING_MONOREPO = ../../bin/run monorepo yarn run --silent ORG_PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUN_LINT_FORMAT ?= \ - docker run --rm --env BRANCH_NAME --env CI --env COMMIT_SHA --env MONOREPO --env PATH=/overleaf/node_modules/.bin:$(ORG_PATH) --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume ${PWD}/data/reports:/overleaf/services/web/data/reports --volume $(MONOREPO)/node_modules/.cache/:/overleaf/node_modules/.cache/ ${IMAGE_CI} + docker run --rm --env BRANCH_NAME --env CI --env COMMIT_SHA --env MONOREPO --env PATH=/overleaf/node_modules/.bin:$(ORG_PATH) --volume $(MONOREPO)/.prettierignore:/overleaf/.prettierignore --volume $(MONOREPO)/.prettierrc.cjs:/overleaf/.prettierrc.cjs --volume ${PWD}/data/reports:/overleaf/services/web/data/reports --volume $(MONOREPO)/.cache/:/overleaf/.cache/ ${IMAGE_CI} NODE_MODULES_PATH := ${PATH}:${PWD}/node_modules/.bin:/overleaf/services/web/node_modules/.bin WITH_NODE_MODULES_PATH = \ @@ -529,16 +529,16 @@ WITH_CACHE_FOLDER = \ format_jenkins_fix \ format_in_docker \ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/prettier/ -../../node_modules/.cache/prettier/: +$(WITH_CACHE_FOLDER): ../../.cache/prettier/ +../../.cache/prettier/: mkdir -p $@ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/eslint/ -../../node_modules/.cache/eslint/: +$(WITH_CACHE_FOLDER): ../../.cache/eslint/ +../../.cache/eslint/: mkdir -p $@ -$(WITH_CACHE_FOLDER): ../../node_modules/.cache/stylelint/ -../../node_modules/.cache/stylelint/: +$(WITH_CACHE_FOLDER): ../../.cache/stylelint/ +../../.cache/stylelint/: mkdir -p $@ lint: lint_eslint diff --git a/services/web/frontend/macros/invalidate-babel-cache-if-needed.js b/services/web/frontend/macros/invalidate-babel-cache-if-needed.js index 05a1071cfd..06dbed85fa 100644 --- a/services/web/frontend/macros/invalidate-babel-cache-if-needed.js +++ b/services/web/frontend/macros/invalidate-babel-cache-if-needed.js @@ -3,7 +3,7 @@ const Path = require('path') const Settings = require('@overleaf/settings') module.exports = function invalidateBabelCacheIfNeeded() { - const cacheDir = Path.join(__dirname, '../../node_modules/.cache') + const cacheDir = Path.join(__dirname, '../../.cache') const cachePath = Path.join(cacheDir, 'babel-loader') const statePath = Path.join(cacheDir, 'last-overleafModuleImports.json') let lastState = '' diff --git a/services/web/package.json b/services/web/package.json index 896a0adf79..f3695964e5 100644 --- a/services/web/package.json +++ b/services/web/package.json @@ -28,10 +28,10 @@ "webpack:production": "webpack --config webpack.config.prod.js", "pyodide:fetch": "node scripts/fetch-pyodide-packages.mjs", "webpack:profile": "webpack --config webpack.config.prod.js --profile --json > stats.json", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix .", - "lint:styles": "stylelint --cache --cache-location ../../node_modules/.cache/stylelint/ '**/*.scss'", - "lint:styles:fix": "stylelint --cache --cache-location ../../node_modules/.cache/stylelint/ '**/*.scss' --fix", + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix .", + "lint:styles": "stylelint --cache --cache-location ../../.cache/stylelint/ '**/*.scss'", + "lint:styles:fix": "stylelint --cache --cache-location ../../.cache/stylelint/ '**/*.scss' --fix", "type-check": "tsc --noEmit", "type-check:backend": "tsc -p tsconfig.backend.json --noEmit", "extract-translations": "i18next-scanner", diff --git a/services/web/webpack.config.js b/services/web/webpack.config.js index 82c55d414b..35b4e96cd3 100644 --- a/services/web/webpack.config.js +++ b/services/web/webpack.config.js @@ -123,7 +123,7 @@ module.exports = { { loader: 'babel-loader', options: { - cacheDirectory: true, + cacheDirectory: path.join(__dirname, '.cache/babel-loader'), configFile: path.join(__dirname, './babel.config.cjs'), }, }, @@ -156,7 +156,7 @@ module.exports = { options: { // Configure babel-loader to cache compiled output so that // subsequent compile runs are much faster - cacheDirectory: true, + cacheDirectory: path.join(__dirname, '.cache/babel-loader'), configFile: path.join(__dirname, './babel.config.cjs'), plugins: [ process.env.REACT_REFRESH_ENABLED === 'true' && diff --git a/tools/migrations/package.json b/tools/migrations/package.json index e2087ee563..2f938ef412 100644 --- a/tools/migrations/package.json +++ b/tools/migrations/package.json @@ -2,8 +2,8 @@ "name": "@overleaf/migrations", "scripts": { "migrations": "MONGO_SOCKET_TIMEOUT=0 east --es-modules", - "lint": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", - "lint:fix": "eslint --cache --cache-location ../../node_modules/.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts ." + "lint": "eslint --cache --cache-location ../../.cache/eslint/ --ext .cjs,.js,.jsx,.mjs,.ts --max-warnings 0 --format unix .", + "lint:fix": "eslint --cache --cache-location ../../.cache/eslint/ --fix --ext .cjs,.js,.jsx,.mjs,.ts ." }, "dependencies": { "@overleaf/logger": "workspace:*",