Set Up SLDS Linter
To get started with SLDS Linter, follow these steps.
- Install Visual Studio (VS) Code.
- Install the SARIF Viewer VS Code extension.
With this extension you can view reports containing the issues identified by SLDS Linter. - Install Node.js.
The minimum supported version is v18.4.0. We recommend using the latest Active Long Term Support (LTS) version of Node.js.
-
Open your project in VS Code.
-
Open Terminal in VS Code.
-
Run any SLDS Linter command.
-
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.