Skip to content

Commit 2297f0a

Browse files
committed
Revert "[Tests] always use legacy peer-deps on eslint-8- and node-minors matrices"
This reverts commit e47c827.
1 parent 6b4f702 commit 2297f0a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/eslint-8-.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
after_install: |
103103
npm install --no-save "eslint@${{ matrix.eslint }}" "@typescript-eslint/parser@${{ matrix.typescript-eslint == 8 && 8.17 || matrix.typescript-eslint }}" "babel-eslint@${{ matrix.babel-eslint }}"
104104
env:
105-
NPM_CONFIG_LEGACY_PEER_DEPS: "true"
105+
NPM_CONFIG_LEGACY_PEER_DEPS: "${{ matrix.typescript-eslint >= 6 && 'false' || 'true' }}"
106106
- run: npx ls-engines
107107
- run: npm run unit-test
108108
- uses: codecov/codecov-action@v3.1.5

.github/workflows/node-minors.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
npm install --no-save "eslint@${{ matrix.eslint }}" "@typescript-eslint/parser@${{ matrix.node-version >= 18 && matrix.eslint >= 8 && '8.17' || (matrix.node-version >= 16 && matrix.eslint >= 7 && '6' || (matrix.node-version >= 14 && '5' || (matrix.node-version >= 12 && '4' || (matrix.node-version >= 10 && '4.0' || (matrix.node-version >= 8 && '3' || '2'))))) }}" "babel-eslint@${{ matrix.babel-eslint }}"
107107
skip-ls-check: ${{ matrix.node-version < 10 && true || false }}
108108
env:
109-
NPM_CONFIG_LEGACY_PEER_DEPS: "true"
109+
NPM_CONFIG_LEGACY_PEER_DEPS: "${{ matrix.node-version >= 16 && matrix.eslint >= 7 && 'false' || 'true' }}"
110110
- run: npx ls-engines
111111
if: ${{ matrix.node-version >= 12 }}
112112
- run: npm run unit-test

0 commit comments

Comments
 (0)