File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ module.exports = {
198198 "Program:exit" ( programNode ) {
199199 const sourceCode = getSourceCode ( context )
200200 const globalScope =
201+ // @ts -ignore
201202 sourceCode . getScope ?. ( programNode ) ?? context . getScope ( )
202203 const tracker = new ReferenceTracker ( globalScope )
203204 /** @type {Set<import('estree').Node> } */
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ exports.getScope = function (
1717 /** @type {Node } */ node
1818) {
1919 const sourceCode = exports . getSourceCode ( context )
20+ // @ts -ignore
2021 return sourceCode . getScope ?. ( node || sourceCode . ast ) || context . getScope ( )
2122}
2223
@@ -25,6 +26,7 @@ exports.getAncestors = function (
2526 /** @type {Node } */ node
2627) {
2728 const sourceCode = exports . getSourceCode ( context )
29+ // @ts -ignore
2830 return sourceCode . getAncestors ?. ( node ) || context . getAncestors ( )
2931}
3032
Original file line number Diff line number Diff line change 3434 "@types/node" : " ^20.17.5" ,
3535 "@typescript-eslint/parser" : " ^8.26.1" ,
3636 "@typescript-eslint/typescript-estree" : " ^8.26.1" ,
37- "eslint" : " ^9.14 .0" ,
37+ "eslint" : " ^9.31 .0" ,
3838 "eslint-config-prettier" : " ^9.1.0" ,
3939 "eslint-doc-generator" : " ^1.7.1" ,
4040 "eslint-plugin-eslint-plugin" : " ^6.3.1" ,
You can’t perform that action at this time.
0 commit comments