Skip to content

bcherny/tslint-no-circular-imports

Folders and files

NameName
Last commit message
Last commit date
Nov 15, 2016
Aug 20, 2018
Nov 15, 2016
Nov 15, 2016
Sep 10, 2018
Nov 15, 2016
Dec 21, 2019
Nov 15, 2016
May 29, 2019
Mar 2, 2019
Jun 8, 2018
Nov 15, 2016
Nov 15, 2016
Aug 21, 2018
Mar 2, 2019

Repository files navigation

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

Note, if you wish to have circular references reported as a warning, rather than as an error, then add this to your tslint.json:

{
  "rules": {
    "no-circular-imports": { "severity": "warn" }
  }
}

Running the tests

npm test

License

MIT

About

TSLint plugin to detect and warn about circular imports

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published