
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-chalk
Advanced tools
ESLint plugin that always reports with configurable message
The project is based on eslint-plugin-always but not output with warn or error, it makes the plugin won't interrupt the check process.
It sounds a bit strange to have a ESLint rule that always reports. The reason why this plugin was created is a special use case:
The root ESLint configuration in the project fits for the build scripts but not for the rest of the project. There is a subfolder that resets the ESLint configuration:
{
"root": true
}
So all files in this folder structure won't check any ESLint rules. The subfolders must contain ESLint configurations which can differ between each subfolder.
For the case that someone adds a subfolder and forgets the ESLint configuration this rule was created. So every file within the subfolder will report an error
No ESLint configuration present.
$ npm i -D eslint-plugin-chalk
Add the plugin to your ESLint configuration:
{
"plugins": [
"chalk"
]
}
And then add the following rule:
{
"rules": {
"chalk/chalk": ["error", {
"hexColor": "#00f",
"icon": "💡",
"message": "Hello World"
}]
}
}
MIT © 2022 Jens Simon & XQ Kuang
FAQs
ESLint plugin that always reports with configurable message
The npm package eslint-plugin-chalk receives a total of 954 weekly downloads. As such, eslint-plugin-chalk popularity was classified as not popular.
We found that eslint-plugin-chalk 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.