Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
stylelint-config-wxss
Advanced tools
Readme
The WeChat wxss syntax config for stylelint.
Use it as is or as a foundation for your own config.
It is derived from the common rules found within a handful of CSS styleguides, including: The Idiomatic CSS Principles, Github's PrimerCSS Guidelines, Google's CSS Style Guide, Airbnb's Styleguide, and @mdo's Code Guide.
It favours flexibility over strictness for things like multi-line lists and single-line rulesets, and tries to avoid potentially divisive rules.
To see the rules that this config uses, please read the config itself.
/* Error: selector-max-compound-selectors */
a b {
top: 0rpx;
}
/* Error: length-zero-no-unit */
a {
top: 0rpx;
}
/* Error: property-no-vendor-prefix */
a {
-moz-columns: 2;
}
/* Error: value-no-vendor-prefix */
a {
display: -webkit-flex;
}
Note: the config is tested against this example, as such the example contains plenty of CSS syntax, formatting and features.
npm i stylelint-config-standard stylelint-config-wxss --save-dev
If you've installed stylelint-config-wxss
locally within your project, just set your stylelint
config to:
{
"extends": "stylelint-config-wxss"
}
If you've globally installed stylelint-config-wxss
using the -g
flag, then you'll need to use the absolute path to stylelint-config-wxss
in your config e.g.
{
"extends": "stylelint-config-wxss"
}
Simply add a "rules"
key to your config, then add your overrides and additions there.
For example, to change the indentation
to tabs, turn off the number-leading-zero
rule, change the property-no-unknown
rule to use its ignoreAtRules
option and add the unit-whitelist
rule:
{
"extends": "stylelint-config-wxss",
"rules": {
"indentation": "tab",
"number-leading-zero": null,
"property-no-unknown": [ true, {
"ignoreProperties": [
"composes"
]
}],
"unit-whitelist": ["em", "rem", "s"]
}
}
FAQs
The WeChat wxss syntax config for stylelint
The npm package stylelint-config-wxss receives a total of 0 weekly downloads. As such, stylelint-config-wxss popularity was classified as not popular.
We found that stylelint-config-wxss demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.