2.0.2 • Published 4 years ago

import-blacklist-extended v2.0.2

Weekly downloads
14
License
MIT
Repository
github
Last release
4 years ago

Build Status

Import blacklist extended

This is a simple TSLint rule that extends functionality of the original import-blacklist.

Installation

npm install --save-dev import-blacklist-extended

Edit your global tslint.json and add the following:

{
    "extends": [
        "import-blacklist-extended"
    ]
}

Usage

Configure the rule in chosen tslint.json files:

{
    "rules": {
        "import-blacklist-extended": [
            true,
            {
                "tsLintDirectory": "path/to/tslint/directory",
                "imports": [
                    "@some-scope/path",
                    "./relative/path"
                ]
            }
        ]
    }
}
  • tsLintDirectory - is a path from root to the dicrectory where tslint.json file is placed. The rule will work for each *.ts file inside selected folder and its subfolders.
  • imports - an array of blacklisted paths. It supports tsconfig's and relative paths (they are relative to the tsLintDirectory).
2.0.2

4 years ago

1.2.6

4 years ago

1.2.5

4 years ago

2.0.0

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.0

4 years ago

1.2.1

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago