Skip to content

v0.9.0 - Config File Support

Latest

Choose a tag to compare

@twinedo twinedo released this 13 Jul 01:16

React Native Auditor v0.9.0

React Native Auditor v0.9.0 adds optional project-level configuration support.

Highlights

  • Added support for rn-auditor.config.json

  • Added configurable default fail threshold through failOn

  • Added rule suppression through ignoreRules

  • CLI flags continue to override project configuration

  • Missing configuration files preserve the existing default behavior

  • Invalid configuration now produces a clear non-zero error

  • Ignored rules are excluded consistently from:

    • Terminal reports
    • JSON reports
    • HTML reports
    • Quality-gate evaluation
    • Fix previews
    • Interactive fix prompts

Example configuration

{
  "failOn": "warning",
  "ignoreRules": ["RNA_ENV_001"]
}

The configuration file is optional and should be placed at the project root:

rn-auditor.config.json

Configuration precedence

CLI flags
> rn-auditor.config.json
> built-in defaults

Install or run

npx react-native-auditor@0.9.0 audit

Or install globally:

npm install -g react-native-auditor@0.9.0
rn-auditor audit

This release preserves the existing CLI commands and JSON report schema.