-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[babel 8] Bump eslint parser deps (#14872)
* breaking: bump eslint-parser deps * bump eslint dev deps * Use `@nicolo-ribaudo/eslint-scope-5-internals` * Fix tests relying on ESLint 7 API * drop Node.js v10 test * swap eslint with eslint-8 * chore: mark ecmaVersion as latest * add parseForESLint7 * fix: forward the original rule in ESLint 8 * test: remove parseForESLint7 * remove dynamicESLintVersionCheck plugin * Add eslint-7 test workflow * cleanup parseAndAssertSame interface * remove unreachable warning Co-authored-by: Nicolò Ribaudo <[email protected]>
- Loading branch information
1 parent
580d730
commit 091ac3d
Showing
20 changed files
with
316 additions
and
489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,18 +197,15 @@ jobs: | |
- name: Downgrade Jest for node <= 10 | ||
if: matrix.node-version == '6' || matrix.node-version == '8' || matrix.node-version == '10' | ||
run: | | ||
yarn remove jest | ||
yarn add --dev jest@24 | ||
yarn up jest@24 | ||
# Deduplicate dependencies, because duplicate copies of graceful-fs cause | ||
# problems with the "path" module: https://github.com/facebook/jest/issues/9656 | ||
yarn dedupe | ||
- name: Downgrade Jest for node == 12 | ||
- name: Downgrade Jest and jest-light-runner for node == 12 | ||
if: matrix.node-version == '12' | ||
run: | | ||
yarn remove jest | ||
yarn remove jest-light-runner | ||
yarn add --dev jest@28 | ||
yarn add --dev [email protected] | ||
yarn up jest@28 | ||
yarn up [email protected] | ||
# Deduplicate dependencies, because duplicate copies of graceful-fs cause | ||
# problems with the "path" module: https://github.com/facebook/jest/issues/9656 | ||
yarn dedupe | ||
|
@@ -430,3 +427,25 @@ jobs: | |
node-version: 16.6 | ||
- name: Test Node.js 16.6 | ||
run: yarn test:runtime:node | ||
|
||
eslint7-test: | ||
name: Test @babel/eslint-* with ESLint 7.5.0 | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js latest | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "*" | ||
cache: "yarn" | ||
- name: Install | ||
run: yarn install | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: babel-artifact | ||
- name: Downgrade ESLint to 7.5.0 | ||
run: yarn up [email protected] | ||
- name: Run babel/eslint tests | ||
run: node ./node_modules/.bin/jest eslint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.