1.0.7 • Published 4 years ago
eslint-plugin-disallow-cross-domain-imports v1.0.7
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-devNext, install eslint-plugin-disallow-cross-domain-imports:
npm install eslint-plugin-disallow-cross-domain-imports --save-devUsage
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 '''