From d5790937c3a6a488a5d3e95f5566fca51d39d3e3 Mon Sep 17 00:00:00 2001 From: Stian Jensen Date: Tue, 12 Sep 2023 19:20:58 +0200 Subject: [PATCH] Avoid installing old typescript-eslint in BC-test --- .github/workflows/test.yml | 6 +----- tests/rules/deprecation.test.ts | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c1cd1a3..b9b0217 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,13 +46,9 @@ jobs: include: - name: 'Test with Eslint v7' cmd: | - npm i eslint@^7 \ - @typescript-eslint/parser@^4 \ - @typescript-eslint/eslint-plugin@^4 + npm i eslint@^7 cat package-lock.json | grep -A 1 \ -e "\"node_modules/eslint\": {" \ - -e "\"node_modules/@typescript-eslint/parser\": {" \ - -e "\"node_modules/@typescript-eslint/eslint-plugin\": {" test: npm run test build: npm run build - name: 'Test with Typescript v4' diff --git a/tests/rules/deprecation.test.ts b/tests/rules/deprecation.test.ts index 42006d0..c772bea 100644 --- a/tests/rules/deprecation.test.ts +++ b/tests/rules/deprecation.test.ts @@ -1,4 +1,4 @@ -import { TSESLint, ESLintUtils } from '@typescript-eslint/utils'; +import { TSESLint } from '@typescript-eslint/utils'; import { RuleTester } from '@typescript-eslint/rule-tester'; import rule, { MessageIds, Options } from '../../src/rules/deprecation'; import * as path from 'path';