Get Started with SLDS Linter
Linting involves analyzing your code and highlighting issues in it. To get started linting your code with SLDS Linter, follow this developer workflow and choose resources that match your learning style.
SLDS Linter (beta) is an installable npm package that analyzes your code against Salesforce Lightning Design System 2 (SLDS 2 beta) rules. SLDS Linter offers suggestions to better align your code with SLDS 2 guidelines and make it more future-proof. SLDS Linter can also apply the suggestions in bulk across your repository and automatically fix your code.
SLDS Linter and SLDS 2 are pilot or beta services that are subject to the Beta Services Terms at Agreements- Salesforce.com or a written Unified Pilot Agreement if executed by Customer, and applicable terms in the Product Terms Directory. Use of these pilot or beta services are at the Customer's sole discretion.
While both SLDS Validator and SLDS Linter scan your code and offer suggestions for improvement, SLDS Linter provides these advantages.
- Set up easily and get started faster.
- Bulk-fix your code by using a single command.
- Uplift your code to the latest Salesforce design system, SLDS 2.
See SLDS Linter on Salesforce Lightning Design System 2 website.
Before you can scan your code, read Set Up SLDS Linter and install the tool.
Scan your code with the complete set of rules, or use custom configuration files to enable or disable specific rules. Automatically fix the identified issues in the code.
- Work With SLDS Linter: Scan Your Code
- Work With SLDS Linter: Use With Custom Configuration Files
- Work With SLDS Linter: Interpret Your Results
- Work With SLDS Linter: Autofix Your Code
- Reference: Commands
- Reference: Rules
To get help with SLDS Linter, read the information in these topics.
- Get Support: Frequently Asked Questions
- Get Support: Troubleshoot
- Get Support: Create Bugs, Feedback, and Feature Requests
SLDS Linter releases new versions frequently. Read the Release Notes to learn about recent updates.