Skip to content

chore: fix JavaScript lint errors (issue #16201) - #16202

Open
wanjinhao1 wants to merge 1 commit into
stdlib-js:developfrom
wanjinhao1:agent/fix-16201-percent-encode-uppercase
Open

wanjinhao1 wants to merge 1 commit into
stdlib-js:developfrom
wanjinhao1:agent/fix-16201-percent-encode-uppercase

Conversation

@wanjinhao1

Copy link
Copy Markdown

Resolves #16201.

Description

What is the purpose of this pull request?

This pull request:

  • Fixes the no-restricted-syntax lint error in @stdlib/string/base/percent-encode/lib/main.js (line 91) by replacing the String.prototype.toUpperCase() call with the @stdlib/string/base/uppercase utility, as instructed by the lint rule message.

Related Issues

Does this pull request have any related issues?

This pull request has the following related issues:

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

Verified by running the module directly (node -e): percentEncode('a b~ç=/') returns 'a%20b~%C3%A7%3D%2F' and percentEncode('ABCxyz09-._~') returns 'ABCxyz09-._~' (unreserved characters untouched, percent-encoded octets uppercased as before). Also confirmed via ESLint that no String.prototype.toUpperCase usage remains in the file. The repository tape-based test suite could not be run locally due to a git-based tape dev dependency that fails to install in this environment; behavior is unchanged as only the uppercase mechanism was swapped for an equivalent stdlib utility.

This pull request was prepared with AI assistance (Claude) and reviewed by the contributor.

@wanjinhao1
wanjinhao1 requested a review from a team October 17, 2026 01:08
@stdlib-bot stdlib-bot added First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Needs Review A pull request which needs code review. Good First PR A pull request resolving a Good First Issue. labels Oct 17, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

First-time Contributor A pull request from a contributor who has never previously committed to the project repository. Good First PR A pull request resolving a Good First Issue. Needs Review A pull request which needs code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix JavaScript lint errors

2 participants