From 3a5793f948e85423249908838b2333b0700dfa1e Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Fri, 21 Jun 2024 14:40:47 +0530 Subject: [PATCH] chore: Enable eslint in CI --- .github/workflows/lint.yml | 4 ++-- package.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8f5995d717..ef532a89d8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -37,9 +37,9 @@ jobs: - name: Run Linting shell: bash run: | - if ! pnpm run lint; then + if ! pnpm run lint:ci; then # print a nice error message on lint failure - ERROR_MESSAGE='Running `pnpm run lint` failed.' + ERROR_MESSAGE='Running `pnpm run lint:ci` failed.' ERROR_MESSAGE+=' Running `pnpm -w run lint:fix` may fix this issue. ' ERROR_MESSAGE+=" If this error doesn't occur on your local machine," ERROR_MESSAGE+=' make sure your packages are up-to-date by running `pnpm install`.' diff --git a/package.json b/package.json index 303c1ca962..99e6f1c08f 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,9 @@ "dev:vite": "tsx .vite/server.ts", "dev:coverage": "pnpm coverage:cypress:clean && VITE_COVERAGE=true pnpm dev:vite", "release": "pnpm build", - "lint": "pnpm biome check", + "lint": "pnpm biome check && pnpm lint:jison", "lint:fix": "pnpm biome check --write", + "lint:ci": "cross-env NODE_OPTIONS=--max_old_space_size=8192 eslint --cache --cache-strategy content . && pnpm lint", "lint:jison": "tsx ./scripts/jison/lint.mts", "contributors": "tsx scripts/updateContributors.ts", "cypress": "cypress run",