diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index cf3bba65056..4352a19cc01 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -26,8 +26,7 @@ jobs: run: yarn build - name: ESLint - # Fixes error on CI: Allocation failed - JavaScript heap out of memory - run: NODE_OPTIONS=--max-old-space-size=4096 yarn lint + run: yarn lint - name: Prettier Check run: yarn pretty-check diff --git a/package.json b/package.json index 1c25a37b2f6..8cb54bcf6cc 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "dev-graphiql": "yarn workspace graphiql dev", "e2e": "yarn run e2e:build && yarn workspace graphiql e2e", "e2e:build": "yarn build && yarn workspace graphiql run build-bundles-min", - "eslint": "eslint --max-warnings=0 --cache --ext=ts,js,jsx,tsx .", + "eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --max-warnings=0 --cache --ext=ts,js,jsx,tsx .", "format": "yarn eslint --fix && yarn pretty", "jest": "jest", "license-check": "jsgl --local ./",