I use the scss-lint gem and just reordered and nested all my scss files to dissolve the complaints of the linter.
It's a lot of tedious work that should be automated but after searching quite a while i didn't find any tools that resolves the orders of the linter automatically.
Aren't there any tools like fixjsstyle that does automatically fix style problems detected by gjslint but for scss?
Yes, https://github.com/srowhani/sass-lint-auto-fix has just been published.
It resolves some (please contribute!) of the sass-lint rules you've set in your .sass-lint.yml
or .sasslintrc
:
sass-lint
rules: https://github.com/sasstools/sass-lint/tree/master/docs/rules
sass-lint-auto-fix
resolvers: https://github.com/srowhani/sass-lint-auto-fix/tree/master/src/resolvers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With