← All recipes
Moderne licensed

Add radix to parseInt

Recipe IDorg.openrewrite.javascript.cleanup.add-parse-int-radixArtifact@openrewrite/rewrite

Adds 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-radix

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/rewrite