CLI Reference
Usage
Options
File and Directory Arguments
You can pass file paths, directory paths, or a mix of both. Rslint discovers the config file by walking upward from the target location.
When no arguments are given, rslint scopes linting to the current working directory.
Config Discovery
For each target file or directory, rslint searches for rslint.config.{js,mjs,ts,mts} starting from that location and walking upward to the filesystem root. The first config found is used.
In monorepo setups, rslint automatically discovers nested configs and applies the nearest one to each file:
Use --config to override automatic config discovery:
Rule Overrides
Use --rule to override a rule's severity or options from the command line, without modifying your config file. This is useful for quick debugging, CI one-offs, or temporarily enabling/disabling rules.
--rule can appear anywhere in the argument list — before or after file paths and other flags:
Behavior:
- CLI rules have the highest precedence and override all config file entries, including per-file overrides.
- When the same rule is specified multiple times, the last one wins.
- Rules that don't exist in the registry are silently ignored.