
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
eslint-plugin-require-trailing-comma
Advanced tools
ESLint rule for enforcing requiring trailing commas
You like consistency
Here is an array and object with consistent lines endings
var array = [
1,
2,
3,
];
var object = {
a: 1,
b: 2,
c: 3,
};
Here is an array and object with inconsistent lines endings
var array = [
1,
2,
3
];
var object = {
a: 1,
b: 2,
c: 3
};
Having consistent line endings means each line is independent. You can sort the lines, cut, copy, and paste the lines, add more lines, all without worrying about one line being different.
IE8 and before will barf.
The default is to only require trailing comma on multi-line arrays and objects. Single line arrays and
objects are ignored. use all
to enforce even on single line arrays and objects as in
{
"rules: {
"require-trailing-comma/require-trailing-comma": [2, "all"],
}
}
FAQs
Require trailing comma
The npm package eslint-plugin-require-trailing-comma receives a total of 341 weekly downloads. As such, eslint-plugin-require-trailing-comma popularity was classified as not popular.
We found that eslint-plugin-require-trailing-comma 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.