A CLI tool that automatically fixes common sass-lint issues by parsing Sass/SCSS into an AST and modifying nodes to conform to rules defined in .sass-lint.yml. Currently at v0.21.2 (August 2020) with no updates since. It complements sass-lint (not stylelint) and supports SCSS and Sass syntax. Key differentiators: resolves issues via gonzales-pe AST manipulation; supports custom config files and husky pre-commit hooks. Alternatives: stylelint with --fix, Prettier. Note: sass-lint is deprecated in favor of stylelint, making this tool also effectively deprecated.
npm install sass-lint-auto-fixNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows install, script configuration, and running the auto-fix via CLI or npx.
Migrate to stylelint and use stylelint --fix or prettier for formatting.
Ensure your configuration file is named .sass-lint-auto-fix.[yml|yaml|json|js] or specify custom path with --config.
Upgrade to v0.21.2 or later to get correct exit codes.
Check the list of supported resolvers in the default config; unsupported rules must be fixed manually.
Use alternatives like stylelint --fix, Prettier, or sass formatter.
Run npm install --save-dev sass-lint
Ensure the pattern is correct and quoted. For example: sass-lint-auto-fix "src/**/*.scss"
Only lint .scss and .sass files; convert .css to .scss or use a different tool.
Upgrade to latest version (0.21.2) or isolate the file and disable the problematic resolver.