-
Notifications
You must be signed in to change notification settings - Fork 15
Replace scss-lint with sass-lint #268
Comments
In the long term it's definitely something we need to do. Right now it's nowhere near as mature as scss-lint, so feel free to contribute! |
Hey awesome people! We've got a few alpha releases out; all that's left for you to do is start contributing rules! We could use all the help we can get to roll this out quickly! |
Hey Sam, thanks for coming here to see what we do :) There is a plan to switch to sass-lint but it maybe not with such an early stage build. We've happily been guinea pigs on scss-lint but now that we're happy with our linting configuration I'm not sure we'll want to go through this again. |
Hey Kaelig! The current build is stable, the alpha designator is simply because of the lack of rules (and some wonkiness with how config works from a |
Thank you for the update, I had no idea so many rules were already implemented. I've ran a diff between the rules we enabled and the ones that are currently available in sass-lint: -EmptyLineBetweenBlocks
-EmptyRule
+BangFormat
+BorderZero
+DebugStatement
+DeclarationOrder
+DuplicateProperty
+ElsePlacement
FinalNewline
+HexLength
+HexNotation
+HexValidation
IdSelector
-Indentation
+ImportPath
+ImportantRule
LeadingZero
NameFormat
NestingDepth
PlaceholderInExtend
-PropertySortOrder
PropertySpelling
+QualifyingElement
SelectorDepth
+SelectorFormat
Shorthand
SingleLinePerProperty
SingleLinePerSelector
SpaceAfterComma
SpaceAfterPropertyColon
SpaceAfterPropertyName
+SpaceBeforeBrace
SpaceBetweenParens
-SpaceBeforeBrace
TrailingSemicolon
+TrailingZero
+UnnecessaryMantissa
+VendorPrefix Note that we're using an old version of scss-lint (0.35) so there might be old rules in there. Hope it helps. |
Thanks! |
As mentioned in Financial-Times/ft-origami#448, JS |
According to @kaelig's comment, we don't use |
Oh, we do, I seemed to have spelt it wrong ... |
I'm going to double check that as I don't think we do actually use it. Not from what I've seen in the last version of the scss-lint file. |
It's definitely being used, unless I'm missing something |
Nope, you're not. I didn't get chance to double check. I couldn't remember whether it was either not being used or just not a very strict order implemented. Will set to blocked until that rule is added |
Good news everyone! That's not an issue any more! Sass Lint (the JS Sass style checker) is not a direct port of SCSS Lint, and takes a slightly different approach to rules, favoring small single-purpose rules over larger rules with lots of configuration (kinda like ESLint). We have two rules that replace the |
Awesome news, thanks @Snugug! I'll look to updating the scss-lint file and including Sass Lint over SCSS Lint in the near future. In regards to the |
We're busy on our next release, but if you open a PR it's fairly easy for us to review those. Take a look at the code for those rules (~30 lines of actual code each, ignoring boilerplate), and if we can get it reviewed soon we may be able to get it out in our next release https://github.com/sasstools/sass-lint/blob/develop/lib/rules/extends-before-declarations.js |
Opened PR on Sass Lint: sasstools/sass-lint#866 |
PR for this #401 |
This was done in #401 |
It's not ready yet, but with the switch to libsass it would be nice to eventually remove the Ruby dependency.
The text was updated successfully, but these errors were encountered: