GithubHelp home page GithubHelp logo

Efficient CSS about scss-lint HOT 2 CLOSED

sds avatar sds commented on July 17, 2024
Efficient CSS

from scss-lint.

Comments (2)

sds avatar sds commented on July 17, 2024

Hey @katgironpe, thanks for using scss-lint!

This is a great idea. We thought about it a while back, but at the time weren't sure about its practicality as it's possible it too would result in a lot of noise. Now that we've moved completely onto SCSS, we've noticed some clear patterns where deeply nested selectors (whether they're child or descendant combinators) not only result in poor performance, but are also a smell. The magic number for us seems to be 3, as in a depth > 3 is too deep.

Regarding the comment about typos/spaces, I would agree that it is not a valuable use of time to correct an existing codebase to such a style for the sake of doing so. At @causes we value consistency, especially when we can create an automated tool to enforce such a consistency for us, and think that this does indeed bring value.

However, if the more stylistic lints are bugging you, not to worry. We'll soon be releasing a configuration system that allows you to enable/disable particular lints.

Thanks for your comments and suggestions. We'll try to take a stab at this sometime this week.

from scss-lint.

kathgironpe avatar kathgironpe commented on July 17, 2024

The stylistic lints are not bugging me. I do not disagree with anything the gem does so far.

from scss-lint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.