Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #41 from gund/fix-eslint-bc
Browse files Browse the repository at this point in the history
[Fix] ESlint backwards compatibility support
  • Loading branch information
gund authored Dec 15, 2021
2 parents 30984da + 99d3a44 commit 8f4a60d
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,45 @@ 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: test
name: 'Test Typescript v3.7.5'
script:
- npm i [email protected]
- |
cat package-lock.json | grep -A 1 \
-e "\"typescript\": {"
- npm run test
- stage: build
name: 'Build and Release'
script:
- npm run build
deploy:
provider: script
Expand Down
3 changes: 3 additions & 0 deletions src/rules/deprecation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8f4a60d

Please sign in to comment.