npx loadwise check without adding a project dependency. Run npx loadwise --version to check the installed version. Editor integration is optional.
By default loadwise check runs all five checkers; see the corpus rule scorecard for measured precision and recall across real-world open-source backends.
Use npx loadwise explain <rule-id> to understand a finding and npx loadwise fix to preview automatic edits. To focus on local changes, pass --uncommitted to both check and fix.
Autofix example: npx loadwise fix --apply rewrites eligible issues in place and verifies TypeScript projects with a post-edit typecheck:
Try a finding and a fix
From a project where you rannpm install --save-dev loadwise, copy the bundled example to a disposable file and scan it. The copy command refuses to overwrite an existing file.
FINDING_ID below with the ID printed after # on that finding.
npx loadwise check from its root. Check the coverage notes for skipped inputs. Start with --min-impact high to triage a large report, then run without that filter to review the rest.
Use Loadwise alongside a linter
Keep your existing linter for syntax-level rules and use Loadwise for checks that depend on how code behaves. In a local comparison with Oxlint 1.95.0 and Loadwise 0.7.0 at revisionf3a3342d, Oxlint’s no-debugger caught an added debugger statement. Loadwise’s array-repeated-membership caught repeated array searches in the bundled example. Both reported a JSX image without alt text when the comparison enabled Oxlint’s jsx-a11y/alt-text rule. Other projects may enable different rules and have different results. Oxlint no-debugger · Oxlint rule reference
Create a fresh companion file with this command.
debugger; statement to companion-demo.ts. Add a separate file called picture.tsx containing this component.
tsconfig.json only includes src.
If Oxlint owns alt text in JSX, disable only the duplicate Loadwise rule for JSX and TSX files. The example keeps Loadwise’s alt-text reports for standalone HTML. Alternatively, let Loadwise own the rule and turn off Oxlint’s jsx-a11y/alt-text rule.
.oxlintrc.json, use these as separate CI steps so each publishes its own result.