
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-xs
Advanced tools
ESLint and Prettier configuration for NodeJS and/or ReactJS projects, either Javascript and/or Typescript based
This package provides an opinionated ESLint and Prettier configuration for NodeJS and/or ReactJS (and possibly Tailwind) projects, either Javascript and/or Typescript based.
The following rules are explicitly applied on top of the base configuration exported from plugins:
"no-console": "off"
: node may use the native console.log
and console.error
without using 3rd party logging libraries"import/order": "error"
: for improved readability"singleQuote": true
: for improved readability"printWidth": 120
: for improved readability, assuming a professional developer uses >= 21" displayYou should provide in the root of your project:
.prettierrc
(not mandatory)tsconfig.json
(mandatory)tailwind.config.(js|cjs|mjs)
(not mandatory)If your tailwind config is not in the root of the project (eg: you are in a monorepo with pnpm
) then provide the tailwind config path explicitly to eslint-config-xs
with an env named ESLINT_XS_TW
:
ESLINT_XS_TW=./packages/webapp/tailwind.config.ts pnpm eslint ./packages
Install:
yarn add --dev eslint-config-xs
Create a .eslintrc
:
{
"extends": ["eslint-config-xs"]
}
Extend as needed in your .eslintrc
:
{
"extends": ["eslint-config-xs"],
"...my other rules..": ["..."]
}
Lint and fix:
yarn eslint --fix .
FAQs
ESLint and Prettier configuration for NodeJS and/or ReactJS projects, either Javascript and/or Typescript based
The npm package eslint-config-xs receives a total of 2 weekly downloads. As such, eslint-config-xs popularity was classified as not popular.
We found that eslint-config-xs 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.