Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@jcamp/eslint-config
Advanced tools
This is my personal ESLint Config.
It extends @antfu's eslint-config.
It starts with his vue config and makes these changes:
Note v2.0.0 is a breaking change, requires adjusting your setup.
For more eslint config details, see @antfu/eslint-config
pnpm add -D eslint prettier @jcamp/eslint-config
eslint.config.js
import { jcamp } from '@jcamp/eslint-config'
export default jcamp(
// antfu options
{},
// additional rules to add
{},
// ignores
{
ignores: ['temp.js', '**/vendor/*.js'],
},
)
.eslintignore
is no longer supported by eslint flatconfig.
.prettierrc.js
import { prettier } from '@jcamp/eslint-config'
export default {
...prettier,
/* make any changes here */
singleAttributePerLine: false,
}
For example:
{
"scripts": {
"lint": "eslint .",
"fix": "eslint . --fix",
"format": "prettier . --check",
"clean": "prettier . --write"
}
}
Create .vscode/settings.json
{
"prettier.enable": true,
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "never"
}
}
MIT License © 2023-PRESENT John Campion
FAQs
JohnCampionJr's ESLint config
We found that @jcamp/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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.