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-parameter-e
Advanced tools
Not allow parameter named e, confused with event and error
Developers usually want to use short, simple and meaningful names.
Sometimes they use short form, event shorten to only 1 character.
And in somecases, one character name still readable.
But there are two common variable: event
and error
. Both starts with letter e
.
If they all use short form. Developers might confused what it is.
This plugin is to prevent any function parameter use the name e
.
Which will confuse developers.
Install local plugin:
$ npm install eslint-plugin-no-parameter-e --save-dev
If you use global eslint, you need install this plugin global too.
Add plugin and rule:
{
"plugins": [
"no-parameter-e"
],
"rules": {
"no-parameter-e": 2
}
}
FAQs
Not allow parameter named `e`
We found that eslint-plugin-no-parameter-e 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.
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.