1.0.7 • Published 3 years ago

eslint-plugin-disallow-cross-domain-imports v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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 '''

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

0.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago