Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
stylelint-config-cloudfour
Advanced tools
A sharable stylelint config object that enforces Cloud Four's CSS Standards
Note that this config mostly just extends the SUIT config, and any additions or changes from the SUIT standard should be well-documented here to explain the deviation.
Install stylelint and stylelint-config-cloudfour
:
npm install stylelint cloudfour/stylelint-config-cloudfour --save-dev
If you've installed stylelint-config-cloudfour
locally within your project, just set your stylelint
config to:
{
"extends": "stylelint-config-cloudfour"
}
Simply add a "rules"
key to your config, then add your overrides and additions there.
For example, to change the at-rule-no-unknown
rule to use its ignoreAtRules
option, change the indentation
to tabs, turn off the number-leading-zero
rule,and add the unit-whitelist
rule:
{
"extends": "stylelint-config-cloudfour",
"rules": {
"at-rule-no-unknown": [ true, {
"ignoreAtRules": [
"extends",
"ignores"
]
}],
"indentation": "tab",
"number-leading-zero": null,
"unit-whitelist": ["em", "rem", "s"]
}
}
This is a list of the lints turned on in this configuration (beyond the ones that come from stylelint-config-suitcss
), and what they do.
at-rule-empty-line-before
: Require an empty line before at-rules, except blockless after blockless. overriding SUIT rule to further exclude @custom-media
, @mixin
, @import
, and @for
rules.comment-empty-line-before
: Require an empty line before comments. overriding SUIT rule to exclude the first nested comment in a block.max-line-length
: Limit line lengths to 80 characters for comments only. overriding SUIT rule to ignore comments that contain URLs.rule-empty-line-before
: Require an empty line before multi-line rules. overriding SUIT rule to exclude the first multi-line rule in a block.1.0.1 - 2019-02-14
FAQs
Cloud Four's stylelint config
The npm package stylelint-config-cloudfour receives a total of 316 weekly downloads. As such, stylelint-config-cloudfour popularity was classified as not popular.
We found that stylelint-config-cloudfour demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.