FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: rename default export `webExt` by regseb · Pull Request #3789 · mozilla/web-ext · GitHub

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 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 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Looks reasonable, thanks

willdurand merged commit 8e76d7b into mozilla:master Aug 4, 2026
4 checks passed
regseb deleted the patch-1 branch August 24, 2026 17:57
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL