
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-stylistic-airbnb
Advanced tools
Airbnb config for ESLint with style rules via @stylistic plugin
Install all required dependencies
npm install -D eslint @stylistic/eslint-plugin eslint-stylistic-airbnb
Add following to your eslint config:
// Flat config
// eslint.config.mjs
import stylistic from '@stylistic/eslint-plugin';
import airbnb from 'eslint-stylistic-airbnb';
export default [
airbnb,
{
files: ['**/*.{js,mjs,cjs,ts}'],
plugins: {
'@stylistic': stylistic,
},
},
];
// Legacy config
// .eslintrc.js
module.exports = {
plugins: ['@stylistic'],
rules: {
...require('eslint-stylistic-airbnb').rules,
},
parserOptions: {
ecmaVersion: 'latest',
},
};
If you use typescript, install additional dependency:
npm install -D typescript-eslint
And add following to your eslint config:
// Flat config
// eslint.config.mjs
import tseslint from 'typescript-eslint';
import stylistic from '@stylistic/eslint-plugin';
import airbnb from 'eslint-stylistic-airbnb';
export default [
airbnb,
...tseslint.configs.recommended,
{
files: ['**/*.{js,mjs,cjs,ts}'],
plugins: {
'@stylistic': stylistic,
},
},
];
// Legacy config
// .eslintrc.js
module.exports = {
plugins: [
'@typescript-eslint',
'@stylistic',
],
parser: '@typescript-eslint/parser',
rules: {
...require('eslint-stylistic-airbnb').rules,
},
};
This config is created from the base airbnb config as is, with no changes to original rules
func-style
rule is turned off, just like in original config (airbnb config contradicts with airbnb styleguide, this
option set to be "backward-compatible")v2.0.0
FAQs
Airbnb config for eslint using stylistic plugin
The npm package eslint-stylistic-airbnb receives a total of 2,459 weekly downloads. As such, eslint-stylistic-airbnb popularity was classified as popular.
We found that eslint-stylistic-airbnb 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.