0.0.2 • Published 8 months ago

eslint-plugin-modular-architecture v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

eslint-plugin-modular-architecture

An eslint plugin to enforce modular architecture and encapsulation

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-modular-architecture:

npm install eslint-plugin-modular-architecture --save-dev

Usage

Add modular-architecture to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["modular-architecture"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "modular-architecture/import-export-only": 2,
    "modular-architecture/modules-engagement": 2
  }
}

Rules

NameDescription
import-export-onlyEnforce import/export only on index files
modules-engagementEnforce the rules of engagement
0.0.2

8 months ago

0.0.1

8 months ago

0.0.0

8 months ago