UNPKG
eslint-plugin-import-x
Version:
latest (4.11.0)
4.11.0
4.10.6
4.10.5
4.10.4
4.10.3
4.10.2
4.10.1
4.10.0
4.9.4
4.9.3
4.9.2
4.9.1
4.9.0
4.8.1
4.8.0
4.7.2
4.7.1
4.7.0
4.6.1
4.6.0
4.5.1
4.5.0
4.4.3
4.4.2
4.4.0
4.3.1
4.3.0
4.2.1
4.2.0
4.1.1
4.1.0
4.0.0
3.1.0
3.0.1
3.0.0
0.5.3
0.5.2
0.5.1
0.5.0
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0
0.0.0
Import with sanity.
github.com/un-ts/eslint-plugin-import-x
un-ts/eslint-plugin-import-x
eslint-plugin-import-x
/
lib
/
utils
/
declared-scope.js
6 lines
•
282 B
JavaScript
View Raw
1
2
3
4
5
6
export
function
declaredScope
(
context, node, name
) {
const
references = context.
sourceCode
.
getScope
(node).
references
;
const
reference = references.
find
(
x
=>
x.
identifier
.
name
=== name);
return
reference?.
resolved
?.
scope
.
type
; }
//# sourceMappingURL=declared-scope.js.map