From 0df6368ab94667bce995f239290de3e5f347f865 Mon Sep 17 00:00:00 2001 From: Pagan Gazzard Date: Thu, 30 Apr 2020 22:08:30 +0100 Subject: [PATCH] Enforce lazy loading via tslint import-blacklist Change-type: patch --- lib/utils/lazy.ts | 2 ++ tslint.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/utils/lazy.ts b/lib/utils/lazy.ts index 37fb7776..89d32eff 100644 --- a/lib/utils/lazy.ts +++ b/lib/utils/lazy.ts @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +// tslint:disable:import-blacklist - the import blacklist is to enforce lazy loading so exempt this file + import * as BalenaSdk from 'balena-sdk'; import { Chalk } from 'chalk'; import * as visuals from 'resin-cli-visuals'; diff --git a/tslint.json b/tslint.json index 5923f444..910a4e09 100644 --- a/tslint.json +++ b/tslint.json @@ -1,6 +1,7 @@ { "extends": "./node_modules/@balena/lint/config/tslint-prettier.json", "rules": { - "ignoreDefinitionFiles": false + "ignoreDefinitionFiles": false, + "import-blacklist": [true, "resin-cli-visuals", "chalk"] } }