Newer Version Available
Salesforce Lightning CLI Rules
Rules built into Lightning CLI
cover restrictions under LockerService, correct use of Lightning APIs, and a number of best
practices for writing Lightning
components code. Each rule, when triggered by your code, points to an area where your code might
have an issue.
In addition to the Lightning-specific rules we’ve created, other rules are active in Lightning CLI, included from ESLint. Documentation for these rules is available on the ESLint project site. When you encounter an error or warning from a rule not described here, search for it on the ESLint Rules page.