eslint-plugin-dynamic-imports

1.0.3 • Public • Published

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:

Package Sidebar

Install

npm i eslint-plugin-dynamic-imports

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

21.8 kB

Total Files

20

Last publish

Collaborators

  • krav4enkodm