Comments (4)
Whatever you think is best! I just wanted to raise the question, but defer.
from stylelint-config-standard.
We list all the rules that aren't used within the README - you can use this list to quickly find additional rules to extend the config.
The rules and options used are in JSON here.
Having said that, this is the 2nd request in as many days to document the rules used. As such, @vigneshTheDev would you be willing to contribute a list of rules that also states how each is configured (similar to how the stylelint-config-primer
does it.)? I think that would be more useful than just linking through to the rule.
e.g.
At-rule
- at-rule-name-case: At-rules must be in written in lowercase.
Color
- color-hex-case: Hex colors must be written in lowercase.
- color-hex-length: Hex colors must, where available, use shorthand notation.
Declaration
- declaration-empty-line-before: There must be an empty line before each declaration unless the declaration is preceded by a comment, declaration or opening brace, or is inside a single line block. If the declaration is preceded by a comment or declaration then there must be no empty line. If it is preceded by an opening brace or is inside a single line block then it is ignored.
That last one is quite verbose as the secondary option for the rule is configured with four conditionals:
"declaration-empty-line-before": [ "always", {
"except": [
"after-declaration",
"first-nested",
],
"ignore": [
"after-comment",
"inside-single-line-block",
],
} ],
from stylelint-config-standard.
@jeddy3 Do you really think this is worth the maintenance? The JSON itself is very legible. Maybe we just need a more clear explanation in the README that "To see the rules that this config uses, please read the config itself."
from stylelint-config-standard.
Do you really think this is worth the maintenance?
I was in two minds about this. I definitely don't think it's worth our time writing the original list, but if someone else wants to contribute it then I think it adds some value (if only if that's being able to click through to a rule's documentation). I think the on going maintenance once the list is done would be pretty minimal, but then again it does add something to our overhead.
"To see the rules that this config uses, please read the config itself."
This works for me. We can try this for now and revisit writing a list later down the line.
from stylelint-config-standard.
Related Issues (20)
- Remove deprecated rules HOT 4
- Stylelint peer dependencies in not up to date HOT 1
- Add import-notation HOT 1
- Add keyframe-selector-notation HOT 3
- Add SVG opacity properties as exceptions to alpha-value-notation HOT 6
- Use parameterized custom messages HOT 1
- Change `import-notation` to `"url"` HOT 1
- rgba format problem HOT 1
- Is the "stylelint-config-recommended" required HOT 12
- Fix `length-zero-no-unit` false positives for custom properties HOT 2
- Add `media-feature-range-notation: "context"` rule HOT 5
- Is stylelint-config-standard compatible with custom syntax like less? HOT 3
- Restore `declaration-block-single-line-max-declarations` removed on 30.0.0 HOT 2
- Unknown rule HOT 11
- Upgrade to 32.0.0 causes parseError with media query in .less file HOT 3
- Regression: Throwing syntax error when filter is repeatedy used after upgrading to v33 HOT 1
- Enable `camelCaseSvgKeywords` option for `value-keyword-case` HOT 13
- Unknown rule media-query-no-invalid media-query-no-invalid HOT 5
- Remove `media-feature-range-notation: "context"` until support is beter HOT 12
- false positive fatal unknow rule errors after upgrade HOT 2
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-config-standard.