Gathering detailed insights and metrics for stylelint-order
Gathering detailed insights and metrics for stylelint-order
Gathering detailed insights and metrics for stylelint-order
Gathering detailed insights and metrics for stylelint-order
A plugin pack of order related linting rules for Stylelint.
npm install stylelint-order
75
Supply Chain
90.8
Quality
74.1
Maintenance
100
Vulnerability
98.9
License
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
915 Stars
271 Commits
61 Forks
11 Watching
2 Branches
20 Contributors
Updated on 24 Nov 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-1.6%
298,818
Compared to previous day
Last week
1.8%
1,646,909
Compared to previous week
Last month
4.3%
6,961,433
Compared to previous month
Last year
2%
76,951,435
Compared to previous year
2
1
A plugin pack of order-related linting rules for Stylelint. Every rule supports autofixing (stylelint --fix
).
npm install stylelint --save-dev
stylelint-order
:npm install stylelint-order --save-dev
Add stylelint-order
to your Stylelint config plugins
array, then add rules you need to the rules list. All rules from stylelint-order need to be namespaced with order
.
1{ 2 "plugins": [ 3 "stylelint-order" 4 ], 5 "rules": { 6 "order/order": [ 7 "custom-properties", 8 "declarations" 9 ], 10 "order/properties-order": [ 11 "width", 12 "height" 13 ] 14 } 15}
order
: Specify the order of content within declaration blocks.properties-order
: Specify the order of properties within declaration blocks.properties-alphabetical-order
: Specify the alphabetical order of properties within declaration blocks.Every rule supports autofixing with stylelint --fix
. postcss-sorting is used internally for order autofixing.
Automatic sorting has some limitations that are described for every rule, if any. Please, take a look at how comments are handled by postcss-sorting
.
CSS-in-JS styles with template interpolation could be ignored by autofixing to avoid style corruption.
Autofixing in Less syntax may work but isn't officially supported.
All these configs have properties-order
configured with logical properties groups:
stylelint-config-idiomatic-order
stylelint-config-hudochenkov/order
stylelint-config-recess-order
stylelint-config-property-sort-order-smacss
stylelint-config-clean-order
properties-order
and properties-alphabetical-order
code and README were based on the declaration-block-properties-order
rule which was a core rule prior to Stylelint 8.0.0.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
6 commit(s) and 4 issue activity found in the last 90 days -- score normalized to 8
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 4/30 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-25
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