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.
eslint-plugin-no-toxic
Advanced tools
Are you a toxic person? sometimes you need to vent your frustration on your codebase, typing some bad words as variables, functions, or even class name.
Like this ...
const aVeryViolentBadWordFunction = () => {
const badVariable = 10;
let duckThisSheet = 99;
let iWannaDie = true
}
BUT don't worry, don't let your manager review your code while these things exists, you can use this ESLint plugin to remind you.
Install this via NPM
npm install 'eslint-plugin-no-toxic'
Configure your ESLint configuration file
Add script to your package.json file.
"scripts": {
"lint": ""
}
Run ESLint command
npm lint
FAQs
ESLint Plugin to prohibit toxic words in your codebase
The npm package eslint-plugin-no-toxic receives a total of 2 weekly downloads. As such, eslint-plugin-no-toxic popularity was classified as not popular.
We found that eslint-plugin-no-toxic demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.