Comments (4)
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.
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.
Yeap, I think you're right about that.
from stylelint.
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)
- Stylelint --fix does not fix two problems at the same time: the order/properties-order property, and the removal of extra empty lines. HOT 4
- no-missing-end-of-source-newline false positive after upgrade to v16.4.0 (from 15.11.0) HOT 1
- SCSS: Issue with double slash comment HOT 1
- DeprecationWarning: fs.Stats constructor is deprecated HOT 6
- Node.js API should allow fixing a list of files in-place HOT 3
- Rule idea: `declaration-prefer-shorthand` HOT 2
- Fix `selector-type-no-unknown` false positive for `model`
- Release 16.6.0 HOT 11
- Missing semicolon in JSON file HOT 5
- Fix `no-descending-specificity` false positives for nested selectors HOT 2
- Release 16.6.1 HOT 5
- breaking changes for `property-no-vendor-prefix` HOT 6
- New rule: identifier-pattern HOT 12
- Remove `postcssResult.stylelint.disableWritingFix` HOT 7
- Unknown rule no-extra-semicolons. HOT 3
- `block-no-empty` false `needless-disable` in blocks with comments. HOT 2
- New rule: Disallow unconstrained `:has()` for performance reasons HOT 3
- `at-rule-no-unknown` false positive for `@view-transition` HOT 2
- `property-no-unknown` false positive for descriptor `navigation` HOT 1
- Add `junit` as a core formatter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stylelint.