JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 33770
  • Score
    100M100P100Q152554F
  • License MIT

TSLint plugin to detect and warn about circular imports

Package Exports

  • tslint-no-circular-imports

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tslint-no-circular-imports) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

tslint-no-circular-imports Build Status npm mit

TSLint plugin to detect and warn about circular imports

Installation

# Using Yarn:
yarn add --dev tslint-no-circular-imports

# Or, using NPM:
npm install --save-dev tslint-no-circular-imports

Usage

Add the following to your tslint.json:

{
  "extends": ["tslint-no-circular-imports"]
}

Run TSLint:

$ tslint .
Circular import detected: foo.ts -> bar.ts -> foo.ts
Circular import detected: baz.ts -> bar.ts -> baz.ts

Running the tests

npm test

License

MIT