Newer Version Available
Use force:lightning:lint
Run force:lightning:lint just like any other lint
command-line tool. The only trick is invoking it through the sfdx command. Your shell window shows the results.
Normal Use
You can run the force:lightning:lint lint tool on any folder that contains Aura components:
1sfdx force: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 Validation Errors and Warnings” for what to do with the output of running force:lightning:lint.