Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>vscode-lightning-linterNew to Visual Studio Code? Get it now.
vscode-lightning-linter

vscode-lightning-linter

Christian Szandor Knapp

|
4,490 installs
| (0) | Free
Linting Lightning Component JS Files on the fly using local heroku toolbelt installation of heroku lightning:lint.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-linter-lightning

This VSCODE linter plugin provides an interface to the Lightning Linter in the Heroku Toolbelt or in alternative to Salesforce DX CLI.

Features

  • per file linting on save or open (deviation from default cli behaviour which scans whole directories only)
  • will only lint lightning component .js files, no others
  • show errors only // ignore warnings

Installation

Toolbelt installation

Before installing this plugin, you must ensure that Heroku CLI toolbelt is installed on your system. For detailed instructions see Heroku.com

If you instead want to run Salesforce DX make sure to install the CLI from here.

Notes for Windows

  • please install Ruby before installing Heroku
  • Heroku will otherwise install its own instance of Ruby incl PATH vars. These might cause issues
  • tested on a Win10 machine with most recent Windows Insider Built

Notes for Mac

  • initial release did not support Mac, it does now.

Plugin installation

Makre sure you heroku is added to your PATH. After verifying that Lightning Linter works from your terminal, proceed to install the extension.

Kudos to

  • Chuck Jonas
  • VSCode Apex PMD - from which I learned how to build this.
  • The Heroku Lightning Team
  • René Winkelmeyer for adding Salesforce DX CLI Support
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft