Set Up SLDS Linter

To get started with SLDS Linter, follow these steps.

Complete these prerequisites:

Install SLDS Linter

  1. Open your project in VS Code.

  2. Open Terminal in VS Code.

  3. Run any SLDS Linter command.

    npx @salesforce-ux/slds-linter@latest lint
    
  4. If SLDS Linter isn’t installed, you’re asked to install the SLDS Linter package. Type y.

    The SLDS Linter package installs in a temporary location on your system.

    For more information about SLDS Linter commands, run this command.

    npx @salesforce-ux/slds-linter@latest --help
    

See Also

SLDS Linter Commands