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

Commit

Permalink
fix(rule): restore compatibility with ESLint <=v7
Browse files Browse the repository at this point in the history
  • Loading branch information
gund committed Dec 14, 2021
1 parent 30984da commit daace2a
Showing 1 changed file with 3 additions and 0 deletions.
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 daace2a

Please sign in to comment.