sasjs-lint
Installation
SKILL.md
@sasjs/lint
@sasjs/lint is the linting and formatting engine for SAS code. It is a TypeScript library with no SAS dependency - it reads .sas files as text - and it is the single engine behind sasjs lint, the SASjs VS Code extension's Problems panel, and the SASjs Server Studio editor.
This skill covers the rules, the .sasjslint file, the formatter, and the ways to invoke it. It does not cover the SAS language itself (see sas) or the rest of the CLI (see sasjs-cli).
When to use
- Writing or changing a
.sasjslintfile - A
sasjs lintrun reports a warning and you need to know what it means or how to silence it - Adding lint to a CI pipeline or a git pre-commit hook
- Running the formatter (
sasjs lint fix, format-on-save,formatText) - Explaining why a rule does or does not fire in an editor