
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.
@cyansalt/eslint-config
Advanced tools
My ESLint configuration preset.
npm install --save-dev @cyansalt/eslint-config
// eslint.config.js
import config from '@cyansalt/eslint-config'
export default config()
// eslint.config.js
import config from '@cyansalt/eslint-config'
import { customize } from '@cyansalt/eslint-config/configs/vue.js'
export default config({
configs: [
...customize({ vue: { legacy: true } }, {
files: ['**/vue2/**.vue'],
}),
],
})
// eslint.config.js
import config from '@cyansalt/eslint-config'
export default config({
// Whether to enable TypeScript rules.
// It will be enabled when `typescript` is installed in the project by default.
// This option also supports an object of the form `{ mixed: true }`.
// `mixed` indicates whether this project is a mixed TS and JS project
// which defaults to the value of `compilerOptions.checkJs` in tsconfig.
typescript: true,
// Whether to enable Babel rules.
// It will be enabled when the project includes `babel.config.js` by default.
// This option will have no effect when non-mixed typescript is enabled.
babel: true,
// Whether to enable React rules.
// It will be enabled when `react` is installed in the project by default.
react: true,
// Whether to enable Vue rules.
// It will be enabled when `vue` is installed in the project by default.
// This option also supports an object of the form { legacy: 2.7, macros: true }.
// `legacy` indicates whether Vue is 2.7 (`2.7`) or earlier (`true`)
// which comes from the current Vue version by default.
// `macros` indicates whether to enable compiler macros
// which is determined based on whether the project has Vue Macros installed by default.
vue: true,
// Whether to enable JSX.
// It will be determined based on `compilerOptions.jsx` in tsconfig by default.
jsx: true,
// Additional configurations.
// Each item in the array can be an ESLint flat config or its array,
// or a function that returns one or more configs.
// When the type is a function, it accepts the parsed complete options as a parameter.
configs: [],
})
FAQs
My ESLint configuration preset
The npm package @cyansalt/eslint-config receives a total of 8 weekly downloads. As such, @cyansalt/eslint-config popularity was classified as not popular.
We found that @cyansalt/eslint-config 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.