1.0.6 • Published 7 years ago
lightning-linter v1.0.6
lightning-linter
A linter for lightning components.
Installation
npm install lightning-linter
Create a test.js file with the following content:
// test.js
require('lightning-linter');
Run
Locate a directory with lightning components. And launch the following command:
node test.js <lightning-components-dir> <outputFile CSV>
Open the generated CSV with your favourite CSV viewer.
Customizing rules
You can customize your own ESlint rules by editing the following file
<install_dir>/node_modules/lightning-linter/my_rules.json