You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

eslint-plugin-deprecate-import

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-deprecate-import

An ESLint plugin to deprecate import statements


Version published
Weekly downloads
1.1K
increased by61.22%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

eslint-plugin-deprecate-import

npm version build status


An ESLint plugin to deprecate import statements

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-deprecate-import:

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

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

Usage

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

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

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

{
  "rules": {
    "deprecate-import/rule-name": 2
  }
}

Supported Rules

  • module: Deprecates npm module imports via regex pattern matching

Keywords

FAQs

Package last updated on 16 Aug 2018

Did you know?

Socket

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
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc