Skip to content

Commit f2374e4

Browse files
committed
Circumvent the out of memory error for eslint
1 parent c2a1c05 commit f2374e4

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/pull-request.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,16 @@ jobs:
3030
run: yarn workspaces foreach -ptW --from "./lib/*" run tsc
3131

3232
- name: Run lint for libraries
33-
run: yarn eslint ./lib
33+
run: yarn eslint lib
3434

3535
- name: Run test for libraries
3636
run: yarn test:libs
3737

38-
- name: Build, lint and run tsc for bundles and tabs
39-
run: yarn build:modules --tsc --lint
38+
- name: Build and run tsc for bundles and tabs
39+
run: yarn build:modules --tsc
40+
41+
- name: Lint bundles and tabs
42+
run: yarn lint:modules
4043

4144
- name: Test bundles and tabs
4245
run: yarn test:modules

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"devserver": "devserver",
2727
"lint:all": "eslint src lib devserver",
2828
"lint:inspect": "yarn dlx eslint --inspect-config",
29+
"lint:modules": "yarn workspaces foreach -j 5 -pW --from \"./src/{bundles,tabs}\" run lint",
2930
"preinstall": "yarn build:libs",
3031
"prepare": "husky",
3132
"serve": "http-server --cors=* -c-1 -p 8022 ./build",

0 commit comments

Comments
 (0)