Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@stylistic/stylelint-config
Advanced tools
The stylistic shareable config for Stylelint.
Use it to return to your config the 63 stylistic rules removed in stylelint-config-standard
30.0.0, and the one removed in stylelint-config-recommended
10.0.1.
To see the rules that this config uses, please read the config itself.
Add @stylistic/stylelint-config
and stylelint
itself to your project:
npm add -D @stylistic/stylelint-config stylelint
Set your .stylelintrc.json
to:
{
"extends": "@stylistic/stylelint-config"
}
If you use stylelint-config-recommended
, stylelint-config-standard
, or some other config for syntax linting, then list the config names in an array (order matters):
{
"extends": [
"stylelint-config-standard",
"@stylistic/stylelint-config"
]
}
If the value of a rule does not suit you, specify that rule in the "rules"
section with the value you want:
{
"extends": "@stylistic/stylelint-config",
"rules": {
"@stylistic/indentation": "tab"
}
}
You can turn off rules by setting its value to null
. For example:
{
"extends": "@stylistic/stylelint-config",
"rules": {
"@stylistic/max-line-length": null
}
}
In addition, the config is based on the @stylistic/stylelint-plugin
, which has all 76 stylistic rules removed in Stylelint 16.0.0. You can use all these rules, not just the 65 configured in the config. For example:
{
"extends": "@stylistic/stylelint-config",
"rules": {
"@stylistic/at-rule-name-newline-after": "always-multi-line"
}
}
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.
[2.0.0] — 2024–07–30
stylelint
version 16.8.0
or higher.FAQs
The stylistic shareable config for Stylelint.
The npm package @stylistic/stylelint-config receives a total of 23,151 weekly downloads. As such, @stylistic/stylelint-config popularity was classified as popular.
We found that @stylistic/stylelint-config demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.