1.0.0-b • Published 4 years ago

eslint-plugin-import-levels v1.0.0-b

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

eslint-plugin-import-levels

Prohibited import from wrong level

Prohibited

Mobile -> Desktop

Mobile -> General


Desktop -> Mobile

Desktop -> General

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-import-levels:

$ npm install eslint-plugin-import-levels --save-dev

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

Usage

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

{
    "plugins": [
        "import-levels"
    ]
}