Add radix to parseInt
Recipe ID
org.openrewrite.javascript.cleanup.add-parse-int-radixArtifact@openrewrite/rewriteAdds the radix parameter (base 10) to parseInt() calls that are missing it, preventing potential parsing issues.
Single recipeMSAL
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe org.openrewrite.javascript.cleanup.add-parse-int-radixIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/rewrite