tslint-import-own-index

1.0.1 • Public • Published

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 💖 by NewOrbit in Oxfordshire, and licensed under the MIT License

Package Sidebar

Install

npm i tslint-import-own-index

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

4.48 kB

Total Files

5

Last publish

Collaborators

  • senderek
  • neworbit-admin
  • petevb
  • ksstott
  • thyde1
  • jameskmonger