diff --git a/.env_example b/.env_example index 520521fe0..a6987ae26 100644 --- a/.env_example +++ b/.env_example @@ -33,3 +33,4 @@ DISABLE_VUE_PLUGINS=false # Algolia credentials required for developing with the new custom node manager. ALGOLIA_APP_ID=4E0RO38HS8 ALGOLIA_API_KEY=684d998c36b67a9a9fce8fc2d8860579 + diff --git a/package.json b/package.json index 8e3876eb9..693a3b30a 100644 --- a/package.json +++ b/package.json @@ -25,10 +25,10 @@ "preinstall": "npx only-allow pnpm", "prepare": "husky || true && git config blame.ignoreRevsFile .git-blame-ignore-revs || true", "preview": "nx preview", - "lint": "eslint src --cache --concurrency=auto", - "lint:fix": "eslint src --cache --fix --concurrency=auto", - "lint:no-cache": "eslint src", - "lint:fix:no-cache": "eslint src --fix", + "lint": "eslint src --cache --concurrency=$npm_package_config_eslint_concurrency", + "lint:fix": "eslint src --fix --cache --concurrency=$npm_package_config_eslint_concurrency", + "lint:no-cache": "eslint src --concurrency=$npm_package_config_eslint_concurrency", + "lint:fix:no-cache": "eslint src --fix --concurrency=$npm_package_config_eslint_concurrency", "knip": "knip --cache", "knip:no-cache": "knip", "locale": "lobe-i18n locale", @@ -37,6 +37,9 @@ "storybook": "nx storybook -p 6006", "build-storybook": "storybook build" }, + "config": { + "eslint_concurrency": "4" + }, "devDependencies": { "@eslint/js": "^9.8.0", "@iconify/tailwind": "^1.2.0",