Newer Version Available
force:lightning:lint Options
Use options to modify the behavior of force:lightning:lint.
Common Options
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:
1sfdx force:lightning:lint ./path/to/lightning/components/ --files **/*Controller.jsVerbose Mode
The default output shows only errors so you can focus on bigger issues. The --verbose argument allows you to see both warning messages and errors during the linting process.
For a complete list of command line parameters and how they affect tool behavior, see the Salesforce CLI Command Reference.
force:lightning:lint has built-in help, which you can
access with the following
command:
1sfdx force:lightning:lint --help