Gathering detailed insights and metrics for @r1chm8/eslint-plugin-sort-destructure-keys
Gathering detailed insights and metrics for @r1chm8/eslint-plugin-sort-destructure-keys
Gathering detailed insights and metrics for @r1chm8/eslint-plugin-sort-destructure-keys
Gathering detailed insights and metrics for @r1chm8/eslint-plugin-sort-destructure-keys
ESLint plugin to check if keys should be sorted in an object pattern.
npm install @r1chm8/eslint-plugin-sort-destructure-keys
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
ISC License
98 Stars
490 Commits
9 Forks
1 Watchers
9 Branches
7 Contributors
Updated on Apr 09, 2025
Latest Version
0.0.1
Package Id
@r1chm8/eslint-plugin-sort-destructure-keys@0.0.1
Unpacked Size
10.63 kB
Size
4.03 kB
File Count
6
NPM Version
8.1.2
Node Version
16.13.2
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
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": [ 3 "sort-destructure-keys" 4 ] 5}
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.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
7 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/13 approved changesets -- score normalized to 0
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
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
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