Skip to content

Commit 3e558ae

Browse files
Update src/rules/extensions.js
Co-authored-by: Jordan Harband <ljharb@gmail.com>
1 parent 8744256 commit 3e558ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/extensions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ module.exports = {
249249
}
250250
} else {
251251
// Case 2: Unexpected extension provided.
252-
const extension = extensionWithDot.substring(1);
252+
const extension = extensionWithDot.slice(1);
253253
if (isUseOfExtensionForbidden(extension) && isResolvableWithoutExtension(importPath, extension)) {
254254
context.report({
255255
node: source,

0 commit comments

Comments
 (0)