eslint-plugin-disallow-cross-domain-imports

1.0.7 • Public • Published

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/no-cross-imports": 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 '''

Package Sidebar

Install

npm i eslint-plugin-disallow-cross-domain-imports

Weekly Downloads

9

Version

1.0.7

License

ISC

Unpacked Size

4.72 kB

Total Files

5

Last publish

Collaborators

  • alexjeffcott