
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@kmdavis/eslint-plugin-sort-imports
Advanced tools
A sort-imports rule that properly distinguishes between ES6 import types.
A sort-imports rule that properly distinguishes between ES6 import types.
It accepts the same options as the original rule, but the multiple
type corresponds to all named imports (regardless of how many are imported), while the single
type corresponds only to default imports, and adds a combined
type that mixes all
, multiple
, and single
imports and alphabetizes them together.
This rule respects whitespace and comments between imports by only looking at the order of (and sorting) consecutive import statements (those without newlines/comments in between them).
npm i --save-dev eslint-plugin-sort-imports-es6-autofix
{
"plugins": [
"@kmdavis/sort-imports"
],
"rules": {
"@kmdavis/sort-imports/sort-imports": [2, {
"ignoreCase": false,
"ignoreMemberSort": false,
"memberSyntaxSortOrder": ["combined", "none"]
}]
}
}
FAQs
A sort-imports rule that properly distinguishes between ES6 import types.
We found that @kmdavis/eslint-plugin-sort-imports demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.