Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
eslint-plugin-sort
Advanced tools
Auto-fixable sort rules for ESLint.
npm install -D eslint-plugin-sort
yarn add -D eslint-plugin-sort
pnpm add -D eslint-plugin-sort
bun add -d eslint-plugin-sort
After installing, add sort
to your list of ESLint plugins and extend the
recommended configuration. This will enable all available rules as warnings.
Flat config (eslint.config.js)
import sort from "eslint-plugin-sort"
export default [
sort.configs["flat/recommended"],
{
rules: {
// Customize rules...
},
},
]
Legacy config (.eslintrc)
{
"extends": "plugin:sort/recommended",
"plugins": ["sort"]
}
✔: Enabled in the recommended
configuration.
🔧: Fixable with eslint --fix
.
✔ | 🔧 | Rule | Description |
---|---|---|---|
✔ | 🔧 | sort/destructuring-properties | Sorts object destructuring properties |
✔ | 🔧 | sort/exports | Sorts exports |
✔ | 🔧 | sort/export-members | Sorts export members |
✔ | 🔧 | sort/imports | Sorts imports |
✔ | 🔧 | sort/import-members | Sorts import members |
✔ | 🔧 | sort/object-properties | Sorts object properties |
🔧 | sort/type-properties | Sorts TypeScript type properties | |
🔧 | sort/string-enums | Sorts TypeScript string enums | |
🔧 | sort/string-unions | Sorts TypeScript string unions |
FAQs
Auto-fixable sort rules for ESLint.
The npm package eslint-plugin-sort receives a total of 2,622 weekly downloads. As such, eslint-plugin-sort popularity was classified as popular.
We found that eslint-plugin-sort demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.