From daace2acc0e53a77ea1ac06f375cc9cd15660357 Mon Sep 17 00:00:00 2001 From: Alex Malkevich Date: Wed, 15 Dec 2021 00:23:24 +0100 Subject: [PATCH 1/3] fix(rule): restore compatibility with ESLint <=v7 --- src/rules/deprecation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rules/deprecation.ts b/src/rules/deprecation.ts index 01cca04..d496c8f 100644 --- a/src/rules/deprecation.ts +++ b/src/rules/deprecation.ts @@ -132,6 +132,9 @@ function isDeclaration( // Prevent considering initializer, extends, or implements to be declaration return parent.id === id; + //@ts-ignore + case 'ClassProperty': + //@ts-ignore case 'PropertyDefinition': // Prevent considering value to be a declaration return parent.key === id; From 1e42bcfef048c0807287d7e33a1138dcefbd19fa Mon Sep 17 00:00:00 2001 From: Alex Malkevich Date: Wed, 15 Dec 2021 00:31:14 +0100 Subject: [PATCH 2/3] ci(travis): setup test stages for ESLint backwards compatibility --- .travis.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4b51f18..18ab560 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,12 +5,37 @@ notifications: node_js: lts/* stages: - test + - build jobs: include: - stage: test + name: 'Test ESLint Current' script: - npm run format:check - npm run test + - stage: test + name: 'Test ESLint v7' + script: + - npm i eslint@^7 @typescript-eslint/parser@^4 @typescript-eslint/eslint-plugin@^4 + - | + cat package-lock.json | grep -A 1 \ + -e "\"eslint\": {" \ + -e "\"@typescript-eslint/parser\": {" \ + -e "\"@typescript-eslint/eslint-plugin\": {" + - npm run test + - stage: test + name: 'Test ESLint v6' + script: + - npm i eslint@^6 @typescript-eslint/parser@^3 @typescript-eslint/eslint-plugin@^3 + - | + cat package-lock.json | grep -A 1 \ + -e "\"eslint\": {" \ + -e "\"@typescript-eslint/parser\": {" \ + -e "\"@typescript-eslint/eslint-plugin\": {" + - npm run test + - stage: build + name: 'Build and Release' + script: - npm run build deploy: provider: script From 99d3a4484b78d4c7b61f2e535ed9774b9d387991 Mon Sep 17 00:00:00 2001 From: Alex Malkevich Date: Wed, 15 Dec 2021 00:59:01 +0100 Subject: [PATCH 3/3] ci(travis): setup test stage for Typescript backward compatibility --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index 18ab560..cb075c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -33,6 +33,14 @@ jobs: -e "\"@typescript-eslint/parser\": {" \ -e "\"@typescript-eslint/eslint-plugin\": {" - npm run test + - stage: test + name: 'Test Typescript v3.7.5' + script: + - npm i typescript@3.7.5 + - | + cat package-lock.json | grep -A 1 \ + -e "\"typescript\": {" + - npm run test - stage: build name: 'Build and Release' script: