diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8f5995d71..ef532a89d 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 303c1ca96..99e6f1c08 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",