Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-no-package-self-import

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-no-package-self-import

An ESLint plugin for finding instances of a package importing from itself

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.3K
increased by30.5%
Maintainers
0
Weekly downloads
 
Created
Source

eslint-plugin-no-package-self-import

An ESLint plugin for finding instances of a package importing from itself

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-no-package-self-import:

npm install eslint-plugin-no-package-self-import --save-dev

Usage

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

{
    "plugins": [
        "no-package-self-import"
    ]
}

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

{
    "rules": {
        "no-package-self-import/rule-name": "warn"
    }
}

Or use the recommended configuration:

{
    "extends": [
        "plugin:no-package-self-import/recommended"
    ]
}

Configurations

Name
recommended

Rules

💼 Configurations enabled in.
✅ Set in the recommended configuration.

NameDescription💼
no-package-self-importDisallow importing from the same package

Keywords

FAQs

Package last updated on 06 Sep 2024

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc