Registry / testing / redlint

redlint

JSON →
library6.4.1jsnpmunverified

Redlint (v6.4.1) is a filesystem linter that uses Putout to transform a JSON representation (.filesystem.json) of your filesystem and apply changes directly. It supports scanning and fixing file naming, structure, and organization rules via Putout plugins for madrun, package.json, ESM, TypeScript, and more. Active development with monthly releases. Requires Node >=22. Unique differentiator: lints filesystem structure as a JSON file, not just code.

npm install redlint
INSTALL
IMPORT
SIG · REDLINT
R
redlint
testingjavascriptv6.4.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

redlint
import redlint from 'redlint'
const redlint = require('redlint')
ESM-only since v6; no CommonJS support.
scan
import { scan } from 'redlint'
const scan = require('redlint/scan')
Named export; not a subpath export.

Shows basic usage of redlint: import main module and scan function, then scan filesystem.

import redlint from 'redlint'; import { scan } from 'redlint'; // Initialize with default options const lint = redlint(); // Scan current directory const results = await scan(); console.log(results); // Or run via CLI: npx redlint scan
redlint --version
Debug
Known issues
breakingNode >=22 required. Older versions cause runtime errors.
fix
Upgrade Node to 22 or later.
affects: >=6.0.0
breakingv6.0.0 dropped CommonJS support. require() will fail.
fix
Use ESM imports (import redlint from 'redlint').
affects: >=6.0.0
gotchaCLI command changed: use 'redlint scan' instead of just 'redlint'. Running 'redlint' without subcommand opens interactive mode.
fix
Run 'npx redlint scan' for scanning.
affects: >=5.0.0
Errors
Common errors & fixes
ERR_REQUIRE_ESM
Using require() on ESM-only package.
fix
Switch to import statement or use dynamic import().
Command 'redlint' not found
Global install missing or not in PATH.
fix
Run 'npx redlint' or install globally: 'npm i -g redlint'.
Upgrade
Version history
6.4.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
redlint — npm install redlint · libregistry