
Research
PyPI Package Disguised as Instagram Growth Tool Harvests User Credentials
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
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 302 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.
Research
A deceptive PyPI package posing as an Instagram growth tool collects user credentials and sends them to third-party bot services.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.