Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@callstack/eslint-config
Advanced tools
Callstack eslint config utilizing Airbnb config, Flow, Prettier and Jest support.
Plugins and configs used:
Additionally, it sets these environments:
{
"env": {
"browser": true,
"es6": true,
"node": true
}
}
yarn add --dev eslint @callstack/eslint-config
Note: We're using yarn
to install deps. Feel free to change commands to use npm
3+ and npx
if you like
Add to your eslint config (.eslintrc
, or eslintConfig
field in package.json
):
{
"extends": "@callstack"
}
{
"extends": "@callstack",
"rules": {
"global-require": 0,
"prefer-destructuring": 0
}
}
Latest create-react-app
ships with different version of eslint-plugin-jsx-a11y
that causes the following error to happen as soon as you integrate the preset to your application: Definition for rule 'jsx-a11y/label-has-associated-control' was not found
.
Thankfully, this can be easily fixed by using yarn resolution mechanism to tell it to use the right version.
"resolutions": {
"eslint-plugin-jsx-a11y": "6.1.1"
}
FAQs
ESLint preset extending recommended ESLint config, TypeScript, Prettier and Jest
The npm package @callstack/eslint-config receives a total of 10,010 weekly downloads. As such, @callstack/eslint-config popularity was classified as popular.
We found that @callstack/eslint-config 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.
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.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.