
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.
@absqueued/eslint-newline-imports
Advanced tools
ESLint rule to enforce a newline for each property in a multiline import statement
This ESLint rule ensures that each property in an import statement is placed on a new line.
First, you'll need to install ESLint:
$ npm i eslint --save-dev
Next, install @absqueued/eslint-newline-imports
:
$ npm install @absqueued/eslint-newline-imports --save-dev
Note: If you installed ESLint globally (using the -g flag) then you must also install @absqueued/eslint-newline-imports
globally.
Add @absqueued/eslint-newline-imports
to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"@absqueued/eslint-newline-imports"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@absqueued/eslint-newline-imports/newline-import": 2
}
}
newline-import
: Enforces a new line for each property in an import statement.
Contributions, issues and feature requests are welcome. Feel free to check issues page if you want to contribute.
To run the test suite, first install the dependencies, then run npm test:
$ npm install
$ npm test
MIT © Shekhar K. Sharma
Give me a ⭐️ if this project helped you!
Follow me on Twitter.
FAQs
ESLint rule to enforce a newline for each property in a multiline import statement
The npm package @absqueued/eslint-newline-imports receives a total of 0 weekly downloads. As such, @absqueued/eslint-newline-imports popularity was classified as not popular.
We found that @absqueued/eslint-newline-imports 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.