
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.
@lunit/eslint-config
Advanced tools
A TypeScript ESLint ruleset designed for lunit projects based on @rushstack/eslint-config.
npm install --save-dev @lunit/eslint-config
Referring to the sapmple-project folder, create eslint-config folder in the project repository root folder, add index.js file, and then extend the eslint-config folder to the .eslintrc.cjs file.
# Project folder structure
sample-project/
├── .eslintrc.cjs
└── eslint-config
├── index.js
└── mixins
└── react.js
// .eslintrc.cjs
module.exports = {
...
extends: [
'./eslint-config', // Extend common ESLint config
],
settings: {
react: {
// Specifies the current React version (e.g. version: '18.2')
// If not specified (default 'detect'), the entire React library will be loaded,
// which may slow down the linting process.
version: 'detect',
},
},
...
};
If necessary, add your own mixin to the eslint-config/mixins folder and use it, or use the mixins in @rushstack/eslint-config/mixins. (Refer to eslint-config/index.js)
// eslint-config/index.js
module.exports = {
...
extends: [
// (required) Extend the @lunit/eslint-config.
// (@rushstack/eslint-config/profile/web-app is included by default.)
'@lunit/eslint-config',
// React mixin provided by rushstack (requires installation of @rushstack/eslint-config package)
// '@rushstack/eslint-config/mixins/react',
// You can create and use your own mixin as follows.
'./mixins/react',
],
...
};
Refer to the default settings in @lunit/eslint-config/index.js & @rushstack/eslint-config/profile/web-app and add your own rules to the config if necessary. Any esconfig rule entries added must have a valid RATIONALE.
rules: {
...
// RATIONALE : Enforce consistent function types for function components.
'react/function-component-definition': 'error',
...
},
FAQs
Lunit ESLnt Config
The npm package @lunit/eslint-config receives a total of 49 weekly downloads. As such, @lunit/eslint-config popularity was classified as not popular.
We found that @lunit/eslint-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.