You can run the Lightning CLI linter on any folder that contains Lightning components:
heroku lightning:lint ./path/to/lightning/components/
The default output only shows errors. To see warnings too, use the verbose mode option.
See “Review and Resolve Problems” for what to do with the output of running Lightning CLI.
Filtering Files
Sometimes, you just want to scan a particular kind of file. The --files argument allows you to set a pattern to match files against.
For example, the following command allows you to scan controllers only:
heroku lightning:lint ./path/to/lightning/components/ --files **/*Controller.js
Verbose Mode
The default output only shows errors so you can focus on bigger issues. The --verbose argument allows you to see warning messages and errors during the linting process.