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 = {
198
198
"Program:exit" ( programNode ) {
199
199
const sourceCode = getSourceCode ( context )
200
200
const globalScope =
201
+ // @ts -ignore
201
202
sourceCode . getScope ?. ( programNode ) ?? context . getScope ( )
202
203
const tracker = new ReferenceTracker ( globalScope )
203
204
/** @type {Set<import('estree').Node> } */
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ exports.getScope = function (
17
17
/** @type {Node } */ node
18
18
) {
19
19
const sourceCode = exports . getSourceCode ( context )
20
+ // @ts -ignore
20
21
return sourceCode . getScope ?. ( node || sourceCode . ast ) || context . getScope ( )
21
22
}
22
23
@@ -25,6 +26,7 @@ exports.getAncestors = function (
25
26
/** @type {Node } */ node
26
27
) {
27
28
const sourceCode = exports . getSourceCode ( context )
29
+ // @ts -ignore
28
30
return sourceCode . getAncestors ?. ( node ) || context . getAncestors ( )
29
31
}
30
32
Original file line number Diff line number Diff line change 34
34
"@types/node" : " ^20.17.5" ,
35
35
"@typescript-eslint/parser" : " ^8.26.1" ,
36
36
"@typescript-eslint/typescript-estree" : " ^8.26.1" ,
37
- "eslint" : " ^9.14 .0" ,
37
+ "eslint" : " ^9.31 .0" ,
38
38
"eslint-config-prettier" : " ^9.1.0" ,
39
39
"eslint-doc-generator" : " ^1.7.1" ,
40
40
"eslint-plugin-eslint-plugin" : " ^6.3.1" ,
You can’t perform that action at this time.
0 commit comments