Rule: import-blacklist

Disallows importing the specified modules directly via import and require. Instead only sub modules may be imported from that module.

Rationale

Some libraries allow importing their submodules instead of the entire module. This is good practise as it avoids loading unused modules.

Config

A list of blacklisted modules.

Examples
"import-blacklist": true
"import-blacklist": [true, "rxjs", "lodash"]
Schema
{
  "type": "array",
  "items": {
    "type": "string"
  },
  "minLength": 1
}