diff --git a/packages/core/src/utils/pem_converter.ts b/packages/core/src/utils/pem_converter.ts index d64bb9c..e325234 100644 --- a/packages/core/src/utils/pem_converter.ts +++ b/packages/core/src/utils/pem_converter.ts @@ -57,7 +57,6 @@ export class PemConverter { * @param data Data */ public static isPEM(data: string) { - // tslint:disable-next-line:max-line-length return /-----BEGIN .+-----[A-Za-z0-9+\/\+\=\s\n]+-----END .+-----/i.test(data); } diff --git a/packages/core/test/aes.spec.ts b/packages/core/test/aes.spec.ts index 19c3fe5..01cf12d 100644 --- a/packages/core/test/aes.spec.ts +++ b/packages/core/test/aes.spec.ts @@ -1,8 +1,6 @@ import * as assert from "assert"; import * as core from "@peculiar/webcrypto-core"; -// tslint:disable:max-classes-per-file - context("AES", () => { context("AES-CBC", () => { diff --git a/packages/core/test/ec.spec.ts b/packages/core/test/ec.spec.ts index d1c05e4..d379e77 100644 --- a/packages/core/test/ec.spec.ts +++ b/packages/core/test/ec.spec.ts @@ -3,8 +3,6 @@ import * as types from "@peculiar/webcrypto-types"; import * as assert from "assert"; import { Convert } from "pvtsutils"; -// tslint:disable:max-classes-per-file - context("EC", () => { context("EcUtils", () => { diff --git a/packages/core/test/pem_converter.spec.ts b/packages/core/test/pem_converter.spec.ts index bb03205..104ba9e 100644 --- a/packages/core/test/pem_converter.spec.ts +++ b/packages/core/test/pem_converter.spec.ts @@ -4,9 +4,7 @@ import { Convert } from "pvtsutils"; context("PemConverter", () => { - // tslint:disable-next-line:max-line-length const bytes = Convert.FromHex("30819f300d06092a864886f70d010101050003818d0030818902818100f615b745314ffe4669255dfe68953184bb8e5db54eecd35b4c51ee899ce7e60aaf19cc765d924f94be93d6809ba506fab26b9f8ef0cf6ab2aec1942da222992f8dad2e621845f014f9e831a529665faf0a9b8ca97356a602ce8d17cd3469aafa2de82546773540fa480510d1906c78c87b81850c26fdaeccce37cd5fdeba7e050203010001"); - // tslint:disable-next-line:prefer-template const vector = "-----BEGIN PUBLIC KEY-----\n" + "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2FbdFMU/+RmklXf5olTGEu45d\n" + "tU7s01tMUe6JnOfmCq8ZzHZdkk+UvpPWgJulBvqya5+O8M9qsq7BlC2iIpkvja0u\n" + @@ -41,7 +39,6 @@ context("PemConverter", () => { }); context("isPEM", () => { - // tslint:disable-next-line:prefer-template const pem = "-----BEGIN CERTIFICATE------\n" + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\n" + "-----END CERTIFICATE------"; @@ -55,7 +52,6 @@ context("PemConverter", () => { }); it("return false if correct PEM", () => { - // tslint:disable-next-line:prefer-template const wrongPem = "----- BEGIN CERTIFICATE ------\n" + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\n" + "----- END CERTIFICATE ------"; diff --git a/packages/core/test/shake.spec.ts b/packages/core/test/shake.spec.ts index 35314c8..032653b 100644 --- a/packages/core/test/shake.spec.ts +++ b/packages/core/test/shake.spec.ts @@ -8,7 +8,6 @@ class TestShake128Provider extends core.Shake128Provider { } } -// tslint:disable-next-line: max-classes-per-file class TestShake256Provider extends core.Shake256Provider { public async onDigest(algorithm: Required, data: ArrayBuffer): Promise { return new ArrayBuffer(algorithm.length); diff --git a/packages/core/test/storage.spec.ts b/packages/core/test/storage.spec.ts index 0362c68..8e6c769 100644 --- a/packages/core/test/storage.spec.ts +++ b/packages/core/test/storage.spec.ts @@ -2,8 +2,6 @@ import * as core from "@peculiar/webcrypto-core"; import * as types from "@peculiar/webcrypto-types"; import * as assert from "assert"; -// tslint:disable:max-classes-per-file - class RsaSsaProvider extends core.RsaSsaProvider { public onSign(algorithm: core.RsaSsaParams, key: core.CryptoKey, data: ArrayBuffer): Promise { throw new Error("Method not implemented."); diff --git a/packages/core/test/subtle.spec.ts b/packages/core/test/subtle.spec.ts index 0c0523f..ba5a534 100644 --- a/packages/core/test/subtle.spec.ts +++ b/packages/core/test/subtle.spec.ts @@ -46,7 +46,6 @@ context("SubtleCrypto", () => { } - // tslint:disable-next-line:max-classes-per-file class TestSubtleCrypto extends core.SubtleCrypto { constructor() { super();