From 86a47d881ce9325402c2e632ce087a49b753c551 Mon Sep 17 00:00:00 2001 From: Ali Hamud Date: Thu, 7 Nov 2019 17:59:11 +0200 Subject: [PATCH] tslint fixes --- .gitignore | 3 ++- src/windowPostMessageProxy.ts | 4 ++-- tslint.json | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b257fd3..b1a25b4 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ dist docs tmp .publish -npm-debug.log* \ No newline at end of file +npm-debug.log* +package-lock.json diff --git a/src/windowPostMessageProxy.ts b/src/windowPostMessageProxy.ts index 2a8470e..a8bb08f 100644 --- a/src/windowPostMessageProxy.ts +++ b/src/windowPostMessageProxy.ts @@ -93,8 +93,8 @@ export class WindowPostMessageProxy { private static createRandomString(): string { // window.msCrypto for IE - var cryptoObj = window.crypto || window.msCrypto; - var randomValueArray = new Uint32Array(1); + let cryptoObj = window.crypto || window.msCrypto; + let randomValueArray = new Uint32Array(1); cryptoObj.getRandomValues(randomValueArray); return randomValueArray[0].toString(36).substring(1); diff --git a/tslint.json b/tslint.json index 5235b53..e3c1934 100644 --- a/tslint.json +++ b/tslint.json @@ -1,9 +1,11 @@ { "extends": "tslint:recommended", "rules": { + "interface-name" : false, "max-line-length": false, "member-access": false, "no-console": false, + "no-namespace": false, "one-line": [ "check-whitespace", "check-open-brace"