We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8744256 commit 3e558aeCopy full SHA for 3e558ae
src/rules/extensions.js
@@ -249,7 +249,7 @@ module.exports = {
249
}
250
} else {
251
// Case 2: Unexpected extension provided.
252
- const extension = extensionWithDot.substring(1);
+ const extension = extensionWithDot.slice(1);
253
if (isUseOfExtensionForbidden(extension) && isResolvableWithoutExtension(importPath, extension)) {
254
context.report({
255
node: source,
0 commit comments