fbredius/storybook

View on GitHub
lib/core-events/src/index.test.ts

Summary

Maintainability
A
0 mins
Test Coverage

Multiple imports from './index' can be combined into one.
Open

import EventsDefaultExport, { CHANNEL_CREATED } from './index';
Severity: Minor
Found in lib/core-events/src/index.test.ts by tslint

Rule: no-duplicate-imports

Disallows multiple import statements from the same module.

Rationale

Using a single import statement per module will make the code clearer because you can see everything being imported from that module on one line.

Config

"allow-namespace-imports" allows you to import namespaces on separate lines.

Examples
"no-duplicate-imports": true,[object Object]
Schema
{
  "type": "object",
  "properties": {
    "allow-namespace-imports": {
      "type": "boolean"
    }
  }
}

For more information see this page.

There are no issues that match your filters.

Category
Status