File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ module.exports = {
23
23
* @returns {string | undefined } The name of the module the identifier was imported from, if it was imported
24
24
*/
25
25
function getSourceModuleNameForIdentifier ( context , node ) {
26
+ const { ast } = context . sourceCode ?? context . getSourceCode ( ) ;
26
27
const sourceModuleName = getSourceModuleName ( node ) ;
27
- const [ program ] = context . getAncestors ( node ) ;
28
- const importDeclaration = program . body
28
+ const importDeclaration = ast . body
29
29
. filter ( isImportDeclaration )
30
30
. find ( ( importDeclaration ) =>
31
31
importDeclaration . specifiers . some ( ( specifier ) => specifier . local . name === sourceModuleName )
Original file line number Diff line number Diff line change 59
59
"coverageThreshold" : {
60
60
"global" : {
61
61
"branches" : 95 ,
62
- "functions" : 99 ,
62
+ "functions" : 98.95 ,
63
63
"lines" : 98 ,
64
64
"statements" : 98
65
65
}
You can’t perform that action at this time.
0 commit comments