Skip to content

Commit

Permalink
Update package.json, set NODE_OPTIONS=--max-old-space-size=4096for es…
Browse files Browse the repository at this point in the history
…lint (#3105)

* Update package.json

* Update pr-check.yml
  • Loading branch information
dimaMachina authored Mar 19, 2023
1 parent fe63151 commit 05c16b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./",
Expand Down

0 comments on commit 05c16b9

Please sign in to comment.