eslint-plugin-import-levels

1.0.0-b • Public • Published

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"
    ]
}

Readme

Keywords

Package Sidebar

Install

npm i eslint-plugin-import-levels

Weekly Downloads

1

Version

1.0.0-b

License

ISC

Unpacked Size

12.9 kB

Total Files

5

Last publish

Collaborators

  • razdva122