GithubHelp home page GithubHelp logo

Comments (4)

MoOx avatar MoOx commented on June 19, 2024

if the user wants to not disallow named colors the user should turn the rule off, not leave it on and pass false.

Completely agree. We should document that.

Use always and never instead of true and false in cases like Case #1. That would not clarify Case #2, though.

Yes !

from stylelint.

davidtheclark avatar davidtheclark commented on June 19, 2024

I think this one is tied up in the severity question, as well. For instance, ESLint doesn't have the ambiguity because every rule gets a 0-1-2 that designates whether it's "on" or "off". If we do the same, we'd never have to use true/false simply to determine whether a rule like declaration-no-important is on/off.

from stylelint.

jeddy3 avatar jeddy3 commented on June 19, 2024

Yeap, I think you're right about that.

from stylelint.

davidtheclark avatar davidtheclark commented on June 19, 2024

Since we're in agreement on using 0-1-2 and "always"/"never", we're sort of nullifying this issue by avoiding booleans.

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.