1.0.1 • Published 5 years ago

tslint-import-own-index v1.0.1

Weekly downloads
95
License
MIT
Repository
github
Last release
5 years ago

tslint-import-own-index

This is a TSLint rule that prevents TypeScript files from importing from an index file within their own directory, as this can cause circular references at import time.

The following imports will be disallowed:

  • "./";
  • ".";
  • "./index";

Installation

npm install tslint-import-own-index --save-dev

Setup

Add the following to your tslint.json inside rules:

"import-own-index": true

License

Made with :sparkling_heart: by NewOrbit in Oxfordshire, and licensed under the MIT License