Socket
Book a DemoInstallSign in
Socket

@breadstone-infrastructure/eslint-rules

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@breadstone-infrastructure/eslint-rules

Custom eslint rules for mosaik projects

0.0.132
latest
Source
npmnpm
Version published
Weekly downloads
276
-83.15%
Maintainers
1
Weekly downloads
 
Created
Source

📦 @breadstone-infrastructure/eslint-rules

Package StatusSource
npminfra/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.

📁 Project Structure

Part of the monorepo mosaik Package path: infra/eslint-rules Version: see npm License: MIT

📦 Installation

yarn add -D @breadstone-infrastructure/eslint-rules
# or
npm install --save-dev @breadstone-infrastructure/eslint-rules

🔧 Usage

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'
  }
};

⚙️ Available Rules

Rule NameDescription
region-in-classesRequire #region/#endregion tags for Fields, Ctor, Properties, Methods in classes
region-in-interfacesRequire #region/#endregion tags for Properties and Methods in interfaces
command-namingEnforce [verb][Object]Command naming for commands
duplicate-keysDetect duplicate translation keys in resource files
empty-valuesDetect translation keys with empty values
key-consistencyEnsure translation keys are consistent across locales
missing-translationsDetect missing translations in resource files
multiple-key-usageDetect inconsistent usage of translation keys
unused-keysDetect unused translation keys in resource files
class-extends-implements-newlineEnsure extends and implements are on separate lines in class declarations
_component-documentation(WIP) Enforce JSDoc comments for components

Rule Documentation

🛠 Recommendations

  • Use these rules in conjunction with @breadstone-infrastructure/eslint-config for best results.
  • Integrate into your Nx workspace for consistent linting.

📦 Publishing

yarn nx run eslint-rules:publish

📄 License

MIT © Breadstone

FAQs

Package last updated on 24 Aug 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.