Gathering detailed insights and metrics for eslint-plugin-sort-exports
Gathering detailed insights and metrics for eslint-plugin-sort-exports
Gathering detailed insights and metrics for eslint-plugin-sort-exports
Gathering detailed insights and metrics for eslint-plugin-sort-exports
npm install eslint-plugin-sort-exports
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
36 Stars
62 Commits
9 Forks
7 Branches
6 Contributors
Updated on 02 Aug 2024
Minified
Minified + Gzipped
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
1.2%
7,080
Compared to previous day
Last week
10.1%
45,291
Compared to previous week
Last month
7.2%
181,306
Compared to previous month
Last year
93.1%
2,182,546
Compared to previous year
1
1
Sort export declarations in modules, similarly to sort-imports
First install ESLint
yarn add -d eslint
Then install eslint-plugin-sort-exports
yarn add --dev eslint-plugin-sort-exports
Note: If you installed ESLint globally, you must also install eslint-plugin-sort-exports
globally.
Add sort-exports
to the plugins section of your .eslintrc
and configure the rule under the rules
section.
{
"plugins": ["sort-exports"],
"rules": {
"sort-exports/sort-exports": ["error", {"sortDir": "asc"}]
}
}
sort-exports
{
"sort-exports/sort-exports": [
"error",
{ sortDir: "asc", ignoreCase: true, sortExportKindFirst: "type" }
]
}
Options can be any of the following properties:
sortDir
: Can be either asc
(default) or desc
signifying ascending or descending sort order, respectively.ignoreCase
: If true, sorting is case-insensitive.sortExportKindFirst
: Can be type
, value
, or none
. Determines whether export
or export type
are sorted first, if not none
.disableAutofixer
: If there's a bug in the autofixer and you want to disable it but leave other rules alone, you can set this to true.pattern
: Glob pattern to select or exclude specific filenames. E.g. **/index.ts
.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
Found 2/19 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
Reason
security policy file not detected
Details
Reason
license file not detected
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
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
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