Socket
Socket
Sign inDemoInstall

eslint-plugin-import-levels

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-import-levels

Linter warning when importing from the wrong level


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
12.6 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 07 Jun 2020

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc