chore(audit): Handle npm audit errors explicitly
Author: plthomasvaCreated Jul 30, 2026Updated Jul 30, 2026
In scripts/audit.js, the final catch block silently exits the process (process.exit(1)) without properly handling the error object when pm audit returns vulnerabilities (which causes execFileSync to throw).
We should refactor this to either properly inspect the error or remove this exclusion once we no longer need to silently exit without handling the error object.
References:
- PR: #4022
- File: scripts/audit.js
Source: jsx-eslint/eslint-plugin-react