tslint-no-circular-imports

0.7.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i tslint-no-circular-imports

Weekly Downloads

5,090

Version

0.7.0

License

MIT

Unpacked Size

35.5 kB

Total Files

46

Last publish

Collaborators

  • bcherny