GithubHelp home page GithubHelp logo

Comments (7)

davidtheclark avatar davidtheclark commented on July 1, 2024

For this and most of the other whitespace-related ones --- do we want to leave the whitespace entirely open-ended, or just give the keyword options "space" and "newline"? Do we imagine scenarios when somebody might want to do something weird like use 4 spaces, a tab, 2 newlines, a carriage return, etc.? It would certainly simplify things if we only had "space" and "newline" as keywords for the options ... Thoughts?

from stylelint.

davidtheclark avatar davidtheclark commented on July 1, 2024

Disclosure: I'm kind of leaning towards keywords myself, because it makes things much simpler and I have this sense that anything other than space/newline is a serious edge case ...

from stylelint.

MoOx avatar MoOx commented on July 1, 2024

Go simple indeed !

from stylelint.

jeddy3 avatar jeddy3 commented on July 1, 2024

Agreed.

from stylelint.

davidtheclark avatar davidtheclark commented on July 1, 2024

I'm throwing out the single- vs multi-line distinction for this rule unless somebody requests it. It would add significant complexity that I would rather not build in for a questionable use-case. The only use-case I can think of is a styleguide that wants this:

body { color: pink; }

a
{
  color: pink;
  background: orange;
}

But I think pretty much everybody would prefer consistency before that brace ... either:

body { color: pink; }

a {
  color: pink;
  background: orange;
}

or:

body
{ color: pink; }

a
{
  color: pink;
  background: orange;
}

... since I think the only reason to have a newline before the brace is to clearly demarcate the selector

from stylelint.

jeddy3 avatar jeddy3 commented on July 1, 2024

Agreed. I think you're totally right to avoid questionable use-cases until they are request.

Lets keep things as simple as we can to begin with :)

from stylelint.

davidtheclark avatar davidtheclark commented on July 1, 2024

Done in 61512b4 and 4706ab1

from stylelint.

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.