eslint-plugin-feature-modules

1.0.2 • Public • Published

eslint-plugin-feature-modules

Plugin for eslint rules that apply to feature modules directory structure

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-feature-modules:

$ npm install eslint-plugin-feature-modules --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-feature-modules globally.

Usage

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

{
    "plugins": [
        "feature-modules"
    ]
}

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

{
    "rules": {
        "feature-modules/no-deep-module-require": {"moduleFolderName": "modules"}
    }
}

Supported Rules

  • no-deep-module-require - disallow importing other module files that are not exported through module's index.js file. See README of rule

Package Sidebar

Install

npm i eslint-plugin-feature-modules

Weekly Downloads

1

Version

1.0.2

License

ISC

Last publish

Collaborators

  • mcmickjuice