Gathering detailed insights and metrics for stylelint-config-standard
Gathering detailed insights and metrics for stylelint-config-standard
Gathering detailed insights and metrics for stylelint-config-standard
Gathering detailed insights and metrics for stylelint-config-standard
stylelint-config-standard-scss
The standard shareable SCSS config for Stylelint
stylelint-config-standard-vue
The standard shareable Vue config for Stylelint.
stylelint-config-standard-less
The standard Less config for Stylelint
@loongwoo/stylelint-config-standard
一个开箱即用的 Stylelint 配置。
The standard shareable config for Stylelint
npm install stylelint-config-standard
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (89.69%)
CSS (10.31%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1,412 Stars
360 Commits
112 Forks
17 Watchers
1 Branches
28 Contributors
Updated on Jul 13, 2025
Latest Version
38.0.0
Package Id
stylelint-config-standard@38.0.0
Unpacked Size
8.95 kB
Size
3.51 kB
File Count
4
NPM Version
11.1.0
Node Version
22.14.0
Published on
Apr 06, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
The standard shareable config for Stylelint.
It extends stylelint-config-recommended
and turns on additional rules to enforce modern conventions found in the CSS specifications and within Baseline Widely Available.
To see the rules that this config uses, please read the config itself.
1@import url("foo.css"); 2@import url("bar.css"); 3 4@custom-media --foo (min-width: 30em); 5 6/** 7 * Multi-line comment 8 */ 9 10:root { 11 --brand-red: hsl(5deg 10% 40%); 12} 13 14/* Single-line comment */ 15 16.class-foo:not(a, div) { 17 margin: 0; 18 top: calc(100% - 2rem); 19} 20 21/* Flush single line comment */ 22@media (width >= 60em) { 23 #id-bar { 24 /* Flush to parent comment */ 25 --offset: 0px; 26 27 color: #fff; 28 font-family: Helvetica, "Arial Black", sans-serif; 29 left: calc(var(--offset) + 50%); 30 } 31 32 /* Flush nested single line comment */ 33 a::after { 34 display: block; 35 content: "→"; 36 background-image: url("x.svg"); 37 } 38} 39 40@keyframes fade-in { 41 from { 42 opacity: 0; 43 } 44 45 to { 46 opacity: 1; 47 } 48}
Note: the config is tested against this example, as such the example contains plenty of CSS syntax and features.
1npm install stylelint-config-standard --save-dev
Set your Stylelint config to:
1{ 2 "extends": "stylelint-config-standard" 3}
Add a "rules"
key to your config, then add your overrides and additions there.
You can turn off rules by setting its value to null
. For example:
1{ 2 "extends": "stylelint-config-standard", 3 "rules": { 4 "selector-class-pattern": null 5 } 6}
Or lower the severity of a rule to a warning using the severity
secondary option. For example:
1{ 2 "extends": "stylelint-config-standard", 3 "rules": { 4 "property-no-vendor-prefix": [ 5 true, 6 { 7 "severity": "warning" 8 } 9 ] 10 } 11}
Or to add a rule, For example, the unit-allowed-list
one:
1{ 2 "extends": "stylelint-config-standard", 3 "rules": { 4 "unit-allowed-list": ["em", "rem", "s"] 5 } 6}
We recommend adding more of Stylelint's rules to your config as these rules need to be configured to suit your specific needs.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 8
Details
Reason
2 existing vulnerabilities detected
Details
Reason
3 commit(s) and 2 issue activity found in the last 90 days -- score normalized to 4
Reason
security policy file detected
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
Found 3/10 approved changesets -- score normalized to 3
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More