2 ms·
I agree with you. I worked in several codebase that used SCSS and due to those little hacks popping up in review, every time we ended up putting a "rule" in pl
by whstl 4y ago
I agree with you.
I worked in several codebase that used SCSS and due to those little hacks popping up in review, every time we ended up putting a "rule" in place to stick to two levels of nesting at most, or 3 if you're using the third nesting-level for pseudo-selectors (:hover :before etc). And this rule very rarely had to be broken, as it was extremely easy to avoid being too clever with nesting. (Of course, if there was a real good technical reason, we'd "break" it too).
- nobleach 4y agoYup, I had a stylelint rule specifying no more than 2 levels.