
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
eslint-config-node-opinionated
Advanced tools
The linter config and plugins for folks who does not like to be standard.
Across multiple Node.js projects, I use the same linter
I was tired to copy-paste config and deps across projects, so I created a shareable eslint config for myself. Eventually could be interesting for somebody else as well.
Install all the dependencies:
yarn add -D eslint eslint-config-node-opinionated eslint-plugin-node eslint-plugin-security eslint-plugin-sonarjs
A one-liner eslint config file is all you need now:
echo "extends: ['node-opinionated']" > .eslintrc.yml
or create your own .eslintrc.js like this:
module.exports = {
extends: [
'node-opinionated',
],
}
I often use ESLint in combination with Jest, with some specific overrides for the tests folder:
module.exports = {
extends: [
'node-opinionated',
'plugin:jest/recommended'
],
plugins: ['jest'],
overrides: [
{
files: ['**/*test*/**'],
rules: {
'node/no-unpublished-require': 'off',
'node/no-unpublished-import': 'off',
'max-nested-callbacks': ['warn', 3],
'security/detect-child-process': 'off',
'security/detect-non-literal-fs-filename': 'off',
}
},
]
}
FAQs
The linter config and plugins for folks who does not like to be standard.
The npm package eslint-config-node-opinionated receives a total of 23 weekly downloads. As such, eslint-config-node-opinionated popularity was classified as not popular.
We found that eslint-config-node-opinionated 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.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.