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

eslint-plugin-disallow-cross-domain-imports

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-disallow-cross-domain-imports

disallow cross-importing of modules matching a defined list of paths unless with a 'domain'

  • 0.0.4
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-88.89%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-disallow-cross-domain-imports

A plugin to disallow cross-importing of modules matching a defined list of paths unless with a 'domain';

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-disallow-cross-domain-imports:

npm install eslint-plugin-disallow-cross-domain-imports --save-dev

Usage

Add disallow-cross-domain-imports to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "disallow-cross-domain-imports"
    ]
}

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

{
    "rules": {
        "disallow-cross-domain-imports/rule-name": 2
    }
}

Supported Rules

  • Fill in provided rules here

Made by:

'''sh npm i -g generator-eslint npx yo eslint:plugin npm uninstall -g generator-eslint '''

Keywords

FAQs

Package last updated on 05 Jan 2022

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