File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
packages/eslint-plugin-svelte/src Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ import type { Variable } from '@typescript-eslint/scope-manager';
3
3
import { createRule } from '../utils/index.js' ;
4
4
import type { RuleContext } from '../types.js' ;
5
5
import { extractStoreReferences } from './reference-helpers/svelte-store.js' ;
6
- import { getSourceCode } from '../utils/compat .js' ;
6
+ import { getScope } from '../utils/ast-utils .js' ;
7
7
8
8
function findVariableForName (
9
9
context : RuleContext ,
10
10
node : TSESTree . Node ,
11
11
name : string ,
12
12
expectedName : string
13
13
) : { hasConflict : boolean ; variable : Variable | null } {
14
- const scope = getSourceCode ( context ) . getScope ( node ) ;
14
+ const scope = getScope ( context , node ) ;
15
15
let hasConflict = false ;
16
16
let variable : Variable | null = null ;
17
17
Original file line number Diff line number Diff line change @@ -366,6 +366,4 @@ export interface SourceCode {
366
366
getCommentsAfter(nodeOrToken: NodeOrToken | AST.Token): AST.Comment[];
367
367
368
368
getCommentsInside(node: NodeOrToken): AST.Comment[];
369
-
370
- getScope(node: NodeOrToken): Scope;
371
369
}
You can’t perform that action at this time.
0 commit comments