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.
eslint-config-molindo
Advanced tools
Molindo ESLint config that implements our styleguide and helps to catch errors.
yarn add eslint eslint-config-molindo prettier --dev
eslint.config.mjs
:import {getPresets} from 'eslint-config-molindo';
export default [
...(await getPresets(
// Base config
'typescript', // or 'javascript'
// Optional extensions
'react',
'cssModules',
'tailwind',
'jest',
'cypress',
'vitest'
)),
{
// Your custom config
}
];
window
, you can add them to your config:// eslint.config.mjs
import globals from 'globals';
export default [
// ...
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
}
];
package.json
:"prettier": "eslint-config-molindo/.prettierrc.json"
tsconfig.json
:"extends": "eslint-config-molindo/tsconfig.json"
Happy linting!
To validate your code in a CI pipeline, add the following to your package.json
:
"scripts": {
"lint": "eslint src && prettier src --check"
}
The following two extensions are recommended:
To auto-fix errors from ESLint as well as Prettier on save, you can use the following configuration:
// settings.json (VSCode)
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
FAQs
Molindo ESLint config that implements our styleguide and helps to catch errors.
We found that eslint-config-molindo 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.