tslint fixes
This commit is contained in:
Родитель
0f2f8f8f3a
Коммит
86a47d881c
|
@ -5,4 +5,5 @@ dist
|
|||
docs
|
||||
tmp
|
||||
.publish
|
||||
npm-debug.log*
|
||||
npm-debug.log*
|
||||
package-lock.json
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
|
|
Загрузка…
Ссылка в новой задаче