Autofix Your Code
You’ve produced an SLDS Linter SARIF report, read through the report and identified the issues to fix and the components to update.
Fix validation issues automatically in bulk by running the lint command with the --fix option. The volume of issues that SLDS Linter can autofix depends on the extent of customizations done in your environment. After autofixing, generate a new SARIF report to see the remaining issues.
Here are a few different use cases for the lint --fix command.
Fix all files in current directory:
Fix all files in a specific directory:
Fix issues by using custom configuration files. Send the configuration files to the lint command, and run the command with the --fix option:
Fix files with specific file types: