FAQ

For help with SLDS Linter, read our frequently asked questions.

SLDS Linter works best with Node.js version v18.4.0 or later. You can check your Node.js version by using this command.

If you’re using an earlier version, upgrade to the latest Active Long Term Support (LTS) version of Node.js.

Yes, SLDS Linter works seamlessly on Windows systems.
The tool is platform-independent and can be used on Windows, Mac, and Linux systems. All features, including auto-fixing, configuration, and VS Code integration work consistently across all platforms.

See Autofix Your Code.

To display issues, SLDS Linter supports two formats.

  • SARIF format:

    This is the default report format.

    Generate a SARIF report and place it in a specific directory.

    The output file is named slds-linter-report.sarif.

  • CSV format:

    Generate a report in the CSV format.

To enable squiggly lines, follow these steps.

  1. Install the recommended VS Code extensions.

    ESLint extension: Applicable for linting HTML and CMP files.

    Stylelint extension: Applicable for linting CSS, SCSS, and other stylesheets.

  2. Run the emit command to generate custom configuration files. The VS Code extensions use these files to show squiggly lines in CSS and HTML files.

    For more information, see the Use SLDS Linter With Custom Configuration Files topic.