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
/
source-type.js
9 lines
•
307 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
export
function
sourceType
(
context
) {
if
(
'sourceType'
in
context.
parserOptions
) {
return
context.
parserOptions
.
sourceType
; }
if
(
'languageOptions'
in
context && context.
languageOptions
) {
return
context.
languageOptions
.
sourceType
; } }
//# sourceMappingURL=source-type.js.map