Gathering detailed insights and metrics for @ptb/eslint-plugin-sort-destructure-keys
Gathering detailed insights and metrics for @ptb/eslint-plugin-sort-destructure-keys
npm install @ptb/eslint-plugin-sort-destructure-keys
Typescript
Module System
Min. Node Version
Node Version
NPM Version
65.4
Supply Chain
92.3
Quality
74.4
Maintenance
100
Vulnerability
98.9
License
JavaScript (100%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
124
Last Day
1
Last Week
1
Last Month
10
Last Year
124
ISC License
96 Stars
490 Commits
9 Forks
1 Watchers
9 Branches
7 Contributors
Updated on Feb 11, 2025
Minified
Minified + Gzipped
Latest Version
1.6.0
Package Id
@ptb/eslint-plugin-sort-destructure-keys@1.6.0
Unpacked Size
12.26 kB
Size
4.41 kB
File Count
6
NPM Version
10.5.0
Node Version
20.12.0
Published on
Apr 08, 2024
Cumulative downloads
Total Downloads
1
1
5
require object destructure key to be sorted
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-sort-destructure-keys
:
$ npm install eslint-plugin-sort-destructure-keys --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-sort-destructure-keys
globally.
Add sort-destructure-keys
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
1{ 2 "plugins": ["sort-destructure-keys"] 3}
Then configure the rule under the rules section.
1{ 2 "rules": { 3 "sort-destructure-keys/sort-destructure-keys": 2 4 } 5}
1{ 2 "sort-destructure-keys/sort-destructure-keys": [2, { "caseSensitive": false }] 3}
caseSensitive
When true
the rule will enforce properties to be in case-sensitive order. Default is true
.
Example of incorrect code for the {"caseSensitive": false}
option:
1let { B, a, c } = obj;
Example of correct code for the {"caseSensitive": false}
option:
1let { a, B, c } = obj;
Example of incorrect code for the {"caseSensitive": true}
option:
1let { a, B, c } = obj;
Example of correct code for the {"caseSensitive": true}
option:
1let { B, a, c } = obj;
1.5.0
1.4.0
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
--fix
eslint cli flag1.2.0
^5.0.0
1.1.0
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
6 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
Found 1/13 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-03-10
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 MoreLast Day
0%
1
Compared to previous day
Last Week
0%
1
Compared to previous week
Last Month
42.9%
10
Compared to previous month
Last Year
0%
124
Compared to previous year