Skip to content

fix: lint errors for atob/btoa redefinition #4509

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

Conversation

pooja-bruno
Copy link
Collaborator

@pooja-bruno pooja-bruno commented Apr 15, 2025

Description

This PR fixes the JSHint lint errors (W079) that appear when using const atob = require("atob") or const btoa = require("btoa") in the editor. These errors occur because atob and btoa are built-in browser functions, but users sometimes need to explicitly require them in Node.js environments.
The solution filters out these specific redefinition warnings while preserving other lint checks, improving the developer experience when working with Base64 encoding/decoding functions.

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.
image

@helloanoop helloanoop merged commit 54a03fd into usebruno:main Apr 15, 2025
2 checks passed
@helloanoop
Copy link
Contributor

Merged. Thanks @pooja-bruno !

jonman5 pushed a commit to jonman5/bruno that referenced this pull request Apr 15, 2025
pooja-bruno added a commit to pooja-bruno/bruno that referenced this pull request May 7, 2025
* fix: lint errors for atob/btoa redefinition
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.

2 participants