File tree 3 files changed +12
-3
lines changed
3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ module.exports = {
15
15
16
16
create ( context ) {
17
17
// ignore non-modules
18
- if ( context . parserOptions . sourceType !== 'module' ) {
18
+ if (
19
+ context . parserOptions . sourceType !== 'module'
20
+ && ( ! context . languageOptions || context . languageOptions . sourceType !== 'module' )
21
+ ) {
19
22
return { } ;
20
23
}
21
24
Original file line number Diff line number Diff line change @@ -13,7 +13,10 @@ module.exports = {
13
13
14
14
create ( context ) {
15
15
// ignore non-modules
16
- if ( context . parserOptions . sourceType !== 'module' ) {
16
+ if (
17
+ context . parserOptions . sourceType !== 'module'
18
+ && ( ! context . languageOptions || context . languageOptions . sourceType !== 'module' )
19
+ ) {
17
20
return { } ;
18
21
}
19
22
Original file line number Diff line number Diff line change @@ -19,7 +19,10 @@ module.exports = {
19
19
20
20
create ( context ) {
21
21
// ignore non-modules
22
- if ( context . parserOptions . sourceType !== 'module' ) {
22
+ if (
23
+ context . parserOptions . sourceType !== 'module'
24
+ && ( ! context . languageOptions || context . languageOptions . sourceType !== 'module' )
25
+ ) {
23
26
return { } ;
24
27
}
25
28
You can’t perform that action at this time.
0 commit comments