You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require-parseInt-radix only matches two syntactic forms: bare parseInt(x) (Identifier callee) and Number.parseInt(x) (non-computed MemberExpression). It is blind to indirect access, mirroring exactly the false-negative class that #42000 closed for JSON["parse"] on the sibling rule.
Unflagged today:
Computed access: Number["parseInt"](x) and globalThis["parseInt"](x).
No such sites exist in actions/setup/jstoday (so impact is preventative, not a current live miss), but closing the gap keeps the two rules consistent and forecloses a future regression the way #42000 did for JSON.parse.
Acceptance criteria
Flag computed Number["parseInt"](x) (Literal property "parseInt") with missing radix, consistent with how the JSON rule now handles JSON["parse"].
Flag parseInt accessed via a global object identifier (globalThis / window / global), both dotted and computed, with missing radix.
Keep aliased/destructured bindings (const p = parseInt; p(x), const { parseInt } = Number) explicitly out of scope, with a code comment matching the rationale already documented in require-json-parse-try-catch.ts (scope-analysis cost vs. risk).
Add valid + invalid test cases for each new form (pairs with the test-suite task).
Activity
github-actions commentedon Jun 28, 2026
🍪 Issue Monster selected this for Copilot
I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.
If assignment succeeds, the Copilot coding agent will analyze the issue and create a pull request with the fix.
Om nom nom! 🍪
github-actions commentedon Jul 5, 2026
This issue was automatically closed because it expired on 2026-07-05T06:44:20.178Z.