Skip to content

Commit

Permalink
chore: ignore usage of deprecated property for now
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Oct 21, 2023
1 parent 854c089 commit 527c3dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/utils/src/eslint-utils/getParserServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ function getParserServices(
// This check allows us to handle bad user setups whilst providing a nice user-facing
// error message explaining the problem.
if (
// eslint-disable-next-line deprecation/deprecation
context.parserServices?.esTreeNodeToTSNodeMap == null ||
// eslint-disable-next-line deprecation/deprecation
context.parserServices.tsNodeToESTreeNodeMap == null
) {
throw new Error(ERROR_MESSAGE);
Expand All @@ -76,12 +78,14 @@ function getParserServices(
// if a rule requires full type information, then hard fail if it doesn't exist
// this forces the user to supply parserOptions.project
if (
// eslint-disable-next-line deprecation/deprecation
context.parserServices.program == null &&
!allowWithoutFullTypeInformation
) {
throw new Error(ERROR_MESSAGE);
}

// eslint-disable-next-line deprecation/deprecation
return context.parserServices;
}
/* eslint-enable @typescript-eslint/unified-signatures */
Expand Down

0 comments on commit 527c3dd

Please sign in to comment.