
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.
@breadstone-infrastructure/eslint-rules
Advanced tools
Custom eslint rules for mosaik projects
Package Status | Source |
---|---|
infra/eslint-rules |
Custom ESLint rules for the Mosaik Nx workspace and Breadstone projects. Enforces code style, consistency, and best practices for TypeScript/JavaScript and localization.
Part of the monorepo mosaik
Package path: infra/eslint-rules
Version: see npm
License: MIT
yarn add -D @breadstone-infrastructure/eslint-rules
# or
npm install --save-dev @breadstone-infrastructure/eslint-rules
Add the rules to your ESLint configuration:
// .eslintrc.js
module.exports = {
extends: [
// ...other configs
],
plugins: [
'@breadstone-infrastructure/eslint-rules'
],
rules: {
'@breadstone-infrastructure/eslint-rules/region-in-classes': 'warn',
'@breadstone-infrastructure/eslint-rules/region-in-interfaces': 'warn',
'@breadstone-infrastructure/eslint-rules/command-naming': 'error',
'@breadstone-infrastructure/eslint-rules/duplicate-keys': 'error',
'@breadstone-infrastructure/eslint-rules/empty-values': 'error',
'@breadstone-infrastructure/eslint-rules/key-consistency': 'error',
'@breadstone-infrastructure/eslint-rules/missing-translations': 'error',
'@breadstone-infrastructure/eslint-rules/multiple-key-usage': 'error',
'@breadstone-infrastructure/eslint-rules/unused-keys': 'error',
'@breadstone-infrastructure/eslint-rules/class-extends-implements-newline': 'warn'
}
};
Rule Name | Description |
---|---|
region-in-classes | Require #region /#endregion tags for Fields, Ctor, Properties, Methods in classes |
region-in-interfaces | Require #region /#endregion tags for Properties and Methods in interfaces |
command-naming | Enforce [verb][Object]Command naming for commands |
duplicate-keys | Detect duplicate translation keys in resource files |
empty-values | Detect translation keys with empty values |
key-consistency | Ensure translation keys are consistent across locales |
missing-translations | Detect missing translations in resource files |
multiple-key-usage | Detect inconsistent usage of translation keys |
unused-keys | Detect unused translation keys in resource files |
class-extends-implements-newline | Ensure extends and implements are on separate lines in class declarations |
_component-documentation | (WIP) Enforce JSDoc comments for components |
src/Rules/Resources/
for translation resource rules.@breadstone-infrastructure/eslint-config
for best results.yarn nx run eslint-rules:publish
MIT © Breadstone
FAQs
Custom eslint rules for mosaik projects
The npm package @breadstone-infrastructure/eslint-rules receives a total of 181 weekly downloads. As such, @breadstone-infrastructure/eslint-rules popularity was classified as not popular.
We found that @breadstone-infrastructure/eslint-rules 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.