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.
@sonder/eslint-config
Advanced tools
Provide Sonder's .eslintrc as an extensible shared config
Provide Sonder's .eslintrc
as an extensible shared config
Install package and it's peer dependencies
yarn add @sonder/eslint-config babel-eslint eslint eslint-plugin-babel eslint-plugin-import eslint-plugin-react --dev
Inside a .eslintrc file in your repository's root folder, add this config:
{
"extends": "@sonder",
"rules": {
// Repo-specific rules to override this config
}
}
To prove/validate that a rule is validating what it is supposed to, add a test each time a rule is added or modified in this repo, not the extended rule sets.
test/error/
do not follow eslint rules and should throw eslint errors.test/pass/
follow eslint rules and should throw no error.Add all validFiles
and errorFiles
to test/test.js
and run:
yarn test
All checks passed!
git clone git@github.com:Flatbook/eslint-config-sonder.git
index.js
git commit -m "Add rule XYZ"
yarn publish --new-version minor
FAQs
Provide Sonder's .eslintrc as an extensible shared config
We found that @sonder/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.