
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@cloudflare/eslint-plugin-sparrow
Advanced tools
A list of recommended rules for @cloudflare/util-sparrow
You'll first need to install ESLint:
$ yarn -D eslint
Next, install eslint-plugin-sparrow
:
$ yarn -D eslint-plugin-sparrow
Note: If you installed ESLint globally (using the yarn global
flag) then
you must also install eslint-plugin-sparrow
globally.
Add sparrow
to the plugins section of your .eslintrc
configuration file. You
can omit the eslint-plugin-
prefix:
{
"plugins": ["sparrow"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"sparrow/rule-name": 2
}
}
The sparrow track call requires a category in the payload. Google analytics will drop any call made without a category.
Example of incorrect code for this rule:
/*eslint no-debugger: "error"*/
track('event',{test:'test'});,
track();,
sparrow.track('event',{test:'test'});,
sparrow.track();
Example of correct code for this rule:
/*eslint no-missing-category: "error"*/
track('event',{test:'test','category':something});,
track('event',{test:'test',category:'something'});,
sparrow.track('event',{test:'test','category':'something',label:'something'});,
sparrow.track('event',{test:'test',category:'something',label:'something'});
FAQs
A list of recommended rules for @cloudflare/util-sparrow
The npm package @cloudflare/eslint-plugin-sparrow receives a total of 657 weekly downloads. As such, @cloudflare/eslint-plugin-sparrow popularity was classified as not popular.
We found that @cloudflare/eslint-plugin-sparrow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 19 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.