Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the ESLint globals list (PR 17055 follow-up) #17123

Merged
merged 2 commits into from
Oct 15, 2023

Conversation

Snuffleupagus
Copy link
Collaborator

Given that we only use standard import/export statements now, after recent PRs, the "exports" global is unused.
Instead we add "__non_webpack_import__" to the globals to avoid having to sprinkle disable statements throughout the code.

Finally, the way that globals are defined has changed in ESLint and we should thus explicitly specify them as "readonly"; please find additional details at https://eslint.org/docs/latest/use/configure/language-options#specifying-globals

Given that we only use standard `import`/`export` statements now, after recent PRs, the "exports" global is unused.
Instead we add "__non_webpack_import__" to the `globals` to avoid having to sprinkle disable statements throughout the code.

Finally, the way that `globals` are defined has changed in ESLint and we should thus explicitly specify them as "readonly"; please find additional details at https://eslint.org/docs/latest/use/configure/language-options#specifying-globals
@Snuffleupagus Snuffleupagus marked this pull request as draft October 15, 2023 09:44
@Snuffleupagus Snuffleupagus marked this pull request as ready for review October 15, 2023 09:48
@Snuffleupagus
Copy link
Collaborator Author

/botio lint

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Received

Command cmd_lint from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.193.163.58:8877/301a6d95e064be0/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Received

Command cmd_lint from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.241.84.105:8877/4fd1dac87973d33/output.txt

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/4fd1dac87973d33/output.txt

Total script time: 1.25 mins

  • Lint: Passed

@moz-tools-bot
Copy link
Collaborator

From: Bot.io (Windows)


Success

Full output at http://54.193.163.58:8877/301a6d95e064be0/output.txt

Total script time: 8.12 mins

  • Lint: Passed

@timvandermeij timvandermeij merged commit a9a1195 into mozilla:master Oct 15, 2023
3 checks passed
@timvandermeij
Copy link
Contributor

Looks good!

@Snuffleupagus Snuffleupagus deleted the eslint-globals branch October 15, 2023 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants