lint
The rs lint command uses Rslint to lint source code.
Usage
The command loads the lint configuration registered with define.lint().
Options
rs lint supports the same command-line options as Rslint. See the Rslint CLI documentation for details.
Examples:
Configuration
Configure linting through define.lint() in the Rstack configuration file. It accepts the standard Rslint configuration. A configuration function receives all exports from rstack/lint, so presets and plugins do not need to be imported manually:
rstack.config.ts
Typed linting
Type-aware presets such as ts.configs.recommendedTypeChecked apply only to files included by a tsconfig.json. In a monorepo, list the project tsconfig.json files through Rslint's parserOptions.project. See Root configuration for an example.