Salesforce Lightning component Code review using Heroku CLI
![]() |
Salesforce Lightning component Code review using Heroku CLI |
Salesforce Lightning CLI is a linting tool based on open source project ESLint . This tool is extremely helpful in detecting the errors in the Javascript code used in the lighting components. This tool is made keeping in mind the locker service and checks if the code is accessing DOM elements outside the current scope.
Now open command line and start installing the Salesforce lightning CLI plugin using command: heroku plugins:install salesforce-lightning-cli
To perform code review use the below mentioned syntax.
heroku lightning:lint "C:/path/to/lightning/components/xxx.js"
0 comments:
Post a Comment
Note: only a member of this blog may post a comment.