File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ This change log adheres to standards from [Keep a CHANGELOG](http://keepachangel
8
8
9
9
### Fixed
10
10
- [ ` no-duplicates ` ] : ensure autofix avoids excessive newlines ([ #2028 ] , thanks [ @ertrzyiks ] )
11
+ - [ ` extensions ` ] : avoid crashing on partially typed import/export statements ([ #2118 ] , thanks [ @ljharb ] )
11
12
12
13
## [ 2.23.4] - 2021-05-29
13
14
@@ -1043,6 +1044,7 @@ for info on changes for earlier releases.
1043
1044
[ #211 ] : https://github.com/benmosher/eslint-plugin-import/pull/211
1044
1045
[ #164 ] : https://github.com/benmosher/eslint-plugin-import/pull/164
1045
1046
[ #157 ] : https://github.com/benmosher/eslint-plugin-import/pull/157
1047
+ [ #2118 ] : https://github.com/benmosher/eslint-plugin-import/issues/2118
1046
1048
[ #2067 ] : https://github.com/benmosher/eslint-plugin-import/issues/2067
1047
1049
[ #2056 ] : https://github.com/benmosher/eslint-plugin-import/issues/2056
1048
1050
[ #2063 ] : https://github.com/benmosher/eslint-plugin-import/issues/2063
Original file line number Diff line number Diff line change @@ -136,8 +136,8 @@ module.exports = {
136
136
}
137
137
138
138
function checkFileExtension ( source ) {
139
- // bail if the declaration doesn't have a source, e.g. "export { foo };"
140
- if ( ! source ) return ;
139
+ // bail if the declaration doesn't have a source, e.g. "export { foo };", or if it's only partially typed like in an editor
140
+ if ( ! source || ! source . value ) return ;
141
141
142
142
const importPathWithQueryString = source . value ;
143
143
You can’t perform that action at this time.
0 commit comments