Newer Version Available
Validate Aura API (aura-api)
- Features built into JavaScript (“intrinsic” features)
- Published, supported features built into the Lightning Component framework
- Published, supported features built into LockerService SecureObject objects
This rule deals with the supported, public framework APIs, for example, those available through the framework global $A.
Why is this rule called “Aura API”? Because the core of the the Lightning Component framework is the open source Aura Framework. And this rule verifies permitted uses of that framework, rather than anything specific to Lightning Components.
Rule Details
1Aura.something(); // Use $A instead
2$A.util.fake(); // fake is not available in $A.utilFurther Reading
For details of all of the methods available in the framework, including $A, see the JavaScript API at https://myDomain.lightning.force.com/auradocs/reference.app, where myDomain is the name of your custom Salesforce domain.