Skip to content

Commit

Permalink
Remove use of deprecated context.parserServices (microsoft#57128)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey authored Jan 22, 2024
1 parent 7c31394 commit 2e3b8af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/eslint/rules/argument-trivia.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ module.exports = createRule({
}

const getSignature = memoize(() => {
if (context.parserServices?.program) {
const parserServices = ESLintUtils.getParserServices(context);
const parserServices = ESLintUtils.getParserServices(context, /*allowWithoutFullTypeInformation*/ true);
if (parserServices.program) {
const checker = parserServices.program.getTypeChecker();
const tsNode = parserServices.esTreeNodeToTSNodeMap.get(node);
return checker.getResolvedSignature(tsNode);
Expand Down

0 comments on commit 2e3b8af

Please sign in to comment.