Salesforce Lightning CLI (v3.0.0) is a code review tool for scanning Lightning component code for issues related to LockerService. It is based on ESLint and flags unsupported/private APIs, incorrect component code, and general JS issues. It is bundled with Salesforce CLI and also available as a Heroku plugin. It has two rule sets: unmodifiable security rules and customizable style rules. The project appears to be in maintenance mode, with the preferred usage now being through sfdx force:lightning:lint. No updates since 2018.
npm install salesforce-lightning-cliVerified import paths — ran on the pinned version, not inferred.
Runs Lightning CLI linting on a directory, filtering to controller files, and showing warnings.
Install Salesforce CLI from https://developer.salesforce.com/tools/sfdxcli and run `sfdx force:lightning:lint`.
Use Metadata API or Force.com IDE to download components to your machine before linting.
Security rules are non-modifiable. Copy the default style rules file from lib/code-style-rules.js and modify those.
Consider migrating to newer linting tools that support Lightning Web Security.
Install Heroku Toolbelt from https://devcenter.heroku.com/articles/getting-started-with-nodejs#set-up, or use Salesforce CLI instead.
Run `heroku plugins:install salesforce-lightning-cli` or use `sfdx force:lightning:lint` which is bundled with Salesforce CLI.
Verify the directory path and the glob pattern. Use recursive glob (double asterisk) if files are in subdirectories.