
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-config-sweet
Advanced tools
ESLint shareable config for the most sweet-ass JavaScript and TypeScript. 🤙🏼
ESLint shareable config for the most sweet-ass JavaScript and TypeScript. 🤙🏼
npm i -D eslint-config-sweet eslint typescript
To use the package, follow the ESLint docs about integrating shareable configs.
import { defineConfig } from "eslint";
import sweet from "eslint-config-sweet";
export default defineConfig(sweet);
To make your experience even better, Microsoft has added a rad feature to VS Code that makes cleaning up import
and export
statements a breeze! Go to your user settings via ⌘ + ⇧ + p
, then type user json
, and hit enter. Add "source.organizeImports": "explicit"
to "editor.codeActionsOnSave"
as seen here in the VS Code docs, and save that bad boy.
Boom, VS Code will now automatically remove unused import
s and export
s, as well as sort them for ya! 🤙🏼
Sweet, man. That's the point. On a more serious note though: It mostly, of course, enforces consistency, even though it may not look like it the first few moments. It will make your code feel more lightweight and nudge you towards using more modern APIs and good practices, while maintaining readability and keeping complexity down.
sweet
will clash with your Prettier setup, there's no way around it. This config is using @stylistic/eslint-plugin
for formatting, and eslint-config-prettier
turns off ESLint's built-in, but deprecated, formatting rules.
While I generally agree with the different concerns of linters and formatters, Prettier just isn't configurable enough for my liking. And this is by design, as it is meant to be an opinionated, zero-config, drop-in solution with limited options. Until we have a more flexible formatter available, using ESLint in this way seems to be the way to go.
MIT
FAQs
ESLint shareable config for the most sweet-ass JavaScript and TypeScript. 🤙🏼
The npm package eslint-config-sweet receives a total of 2 weekly downloads. As such, eslint-config-sweet popularity was classified as not popular.
We found that eslint-config-sweet demonstrated a healthy version release cadence and project activity because the last version was released less than 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.