eslint-plugin-dynamic-imports
v1.0.3
Published
Rules for dynamic imports validation
Downloads
41
Maintainers
Readme
eslint-plugin-dynamic-imports
Installation
npm install --save-dev eslint-plugin-dynamic-imports
All rules are off by default, and you are able to configure them in your .eslintrc
{
"plugins": ["dynamic-imports"],
"rules": {
"dynamic-imports/no-literal-expressions": 2,
"dynamic-imports/no-restricted-paths": [2, "path/to/module", "**/foo/**"]
}
}
Rules
Take a look at the rules documentation to adjust them more precisely for your needs: