File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
plugins/eslint-plugin-react-web-api/src/rules Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import * as VAR from "@eslint-react/var";
88import type { Scope } from "@typescript-eslint/scope-manager" ;
99import type { TSESTree } from "@typescript-eslint/utils" ;
1010import { AST_NODE_TYPES } from "@typescript-eslint/utils" ;
11- import { getStaticValue } from "@typescript-eslint/utils/ast-utils" ;
1211import type { ReportDescriptor } from "@typescript-eslint/utils/ts-eslint" ;
1312import { isMatching , match , P } from "ts-pattern" ;
1413
Original file line number Diff line number Diff line change 11import { F , O } from "@eslint-react/tools" ;
22import type { Scope , Variable } from "@typescript-eslint/scope-manager" ;
33import type { TSESTree } from "@typescript-eslint/types" ;
4- import { findVariable as TSEFindVariable } from "@typescript-eslint/utils/ast-utils" ;
4+ import * as ASTUtils from "@typescript-eslint/utils/ast-utils" ;
55
66export const findVariable : {
77 ( initialScope : Scope ) : ( nameOrNode : string | TSESTree . Identifier ) => O . Option < Variable > ;
88 ( nameOrNode : string | TSESTree . Identifier , initialScope : Scope ) : O . Option < Variable > ;
99} = F . dual ( 2 , ( nameOrNode : string | TSESTree . Identifier , initialScope : Scope ) => {
10- return O . fromNullable ( TSEFindVariable ( initialScope , nameOrNode ) ) ;
10+ return O . fromNullable ( ASTUtils . findVariable ( initialScope , nameOrNode ) ) ;
1111} ) ;
You can’t perform that action at this time.
0 commit comments