
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@stylistic/stylelint-plugin
Advanced tools
An updatable collection of stylistic rules for Stylelint (in plugin form).
Stylelint has removed 76 rules that enforce stylistic conventions. This project returns these rules to keep styles consistent with your codeguide. In addition, new rules may be added in the future.
Add @stylistic/stylelint-plugin
and stylelint
itself to your project:
npm add -D stylelint @stylistic/stylelint-plugin
Create the .stylelintrc
config file (or open the existing one), add @stylistic/stylelint-plugin
to the plugins array and the rules you need to the rules list. All rules from @stylistic/stylelint-plugin
need to be namespaced with @stylistic/
:
{
"plugins": [
"@stylistic/stylelint-plugin"
],
"rules": {
// syntax rules from stylelint:
"color-function-notation": "modern",
"selector-max-compound-selectors": 2,
// stylistic rules from @stylistic/stylelint-plugin:
"@stylistic/color-hex-case": "lower",
"@stylistic/number-leading-zero": "always",
"@stylistic/unit-case": "lower"
}
}
To avoid listing a lot of rules, you can use @stylistic/stylelint-config
, which returns the stylistic rules removed in stylelint-config-standard
and stylelint-config-recommended
.
Please refer to Stylelint docs for detailed info on using this linter.
ESLint deprecates stylistic rules, too. But you can continue to use them thanks to ESLint Stylistic.
FAQs
A collection of stylistic/formatting Stylelint rules
The npm package @stylistic/stylelint-plugin receives a total of 253,650 weekly downloads. As such, @stylistic/stylelint-plugin popularity was classified as popular.
We found that @stylistic/stylelint-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.