Gathering detailed insights and metrics for @r1chm8/eslint-plugin-sort-destructure-keys
Gathering detailed insights and metrics for @r1chm8/eslint-plugin-sort-destructure-keys
npm install @r1chm8/eslint-plugin-sort-destructure-keys
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
30,785
Last Day
30
Last Week
109
Last Month
608
Last Year
8,574
95 Stars
490 Commits
9 Forks
2 Watching
9 Branches
7 Contributors
Minified
Minified + Gzipped
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
42.9%
30
Compared to previous day
Last week
-18.7%
109
Compared to previous week
Last month
12.2%
608
Compared to previous month
Last year
-42.4%
8,574
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 binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
4 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
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
Found 1/13 approved changesets -- 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-01-27
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