Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Validation During Development Using ESLint
Validations using ESLint are done separately from saving your code to Salesforce. The results are informational only.
Salesforce DX used to include a force:lightning:lint command but the command was removed in February, 2022. Instead, we recommend the Aura plugin for ESLint for linting.
To install the Aura plugin for ESLint, see this GitHub repo.
- ESLint uses many more rules to analyze your component code. Save-time validations prevent you from making the most fundamental mistakes only. Validation with ESLint errs on the side of giving you more information.
- Validation via ESLint ignores the API version of your components. Save-time validations are performed only for components set to API 41.0 and later.