diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 328ed095f..0839b0c54 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -66,7 +66,7 @@ jobs: test-node: name: # prettier-ignore - Test on Node.js v${{ matrix.node-version }}, eslint v${{ matrix.eslint-version }}, and ts-eslint/plugin v${{ matrix.ts-eslint-plugin-version }} + Test on Node.js v${{ matrix.node-version }}, eslint v${{ matrix.eslint-version }}, and ts-eslint v${{ matrix.ts-eslint-plugin-version }} needs: prepare-yarn-cache-ubuntu strategy: fail-fast: false @@ -100,6 +100,7 @@ jobs: install with eslint v${{ matrix.eslint-version }} and ts-eslint/plugin v${{ matrix.ts-eslint-plugin-version }} run: | yarn + yarn add @typescript-eslint/utils@${{ matrix.ts-eslint-plugin-version }} yarn add --dev eslint@${{ matrix.eslint-version }} @typescript-eslint/eslint-plugin@${{ matrix.ts-eslint-plugin-version }} @typescript-eslint/parser@${{ matrix.ts-eslint-plugin-version }} - name: run tests # only collect coverage on eslint versions that support dynamic import diff --git a/package.json b/package.json index 439c03127..996378761 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ ] }, "dependencies": { - "@typescript-eslint/utils": "^6.0.0" + "@typescript-eslint/utils": "^6.0.0 || ^7.0.0" }, "devDependencies": { "@babel/cli": "^7.4.4", @@ -83,6 +83,7 @@ "@types/node": "^14.18.26", "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", + "@typescript-eslint/utils": "^6.0.0", "babel-jest": "^29.0.0", "babel-plugin-replace-ts-export-assignment": "^0.0.2", "dedent": "^1.5.0",