Skip to content

chore: rename default export webExt - #3789

Merged
willdurand merged 1 commit into
mozilla:masterfrom
regseb:patch-1
Aug 4, 2026
Merged

chore: rename default export webExt#3789
willdurand merged 1 commit into
mozilla:masterfrom
regseb:patch-1

Conversation

@regseb

@regseb regseb commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

When importing the default export, it's recommended to use the same name as the exported variable (cf. import-x/no-rename-default).

This package exports a variable named webext (lowercase). With the following file:

import webExt from 'web-ext';

webExt.cmd.run("...");

ESLint and import-x/no-rename-default report this error:

Caution: index.js has a default export webext. This imports webext as webExt. Check if you meant to write import webext from 'web-ext' instead.


With this pull request, we will be able to use the name webExt (camelCase).

@willdurand willdurand left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, thanks

@willdurand
willdurand merged commit 8e76d7b into mozilla:master Aug 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants