File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,8 @@ module.exports = {
237
237
if ( candidate && isUseOfExtensionRequired ( candidate . replace ( / ^ \. / , '' ) , isPackage ) ) {
238
238
context . report ( {
239
239
node,
240
- messageId : 'missingExtension' ,
240
+ message :
241
+ `Missing file extension for "${ importPathWithQueryString } "` ,
241
242
data : {
242
243
importPath : importPathWithQueryString ,
243
244
expected : candidate ,
@@ -253,7 +254,7 @@ module.exports = {
253
254
if ( isUseOfExtensionForbidden ( extension ) && isResolvableWithoutExtension ( importPath , extension ) ) {
254
255
context . report ( {
255
256
node : source ,
256
- messageId : 'unexpectedExtension' ,
257
+ message : `Unexpected use of file extension " ${ extension } " for " ${ importPathWithQueryString } "` ,
257
258
data : {
258
259
extension,
259
260
importPath : importPathWithQueryString ,
You can’t perform that action at this time.
0 commit comments