remove tslint comments

This commit is contained in:
microshine 2022-05-24 10:39:23 +03:00
parent 188fa90116
commit 181477c574
7 changed files with 0 additions and 13 deletions

View File

@ -57,7 +57,6 @@ export class PemConverter {
* @param data Data * @param data Data
*/ */
public static isPEM(data: string) { public static isPEM(data: string) {
// tslint:disable-next-line:max-line-length
return /-----BEGIN .+-----[A-Za-z0-9+\/\+\=\s\n]+-----END .+-----/i.test(data); return /-----BEGIN .+-----[A-Za-z0-9+\/\+\=\s\n]+-----END .+-----/i.test(data);
} }

View File

@ -1,8 +1,6 @@
import * as assert from "assert"; import * as assert from "assert";
import * as core from "@peculiar/webcrypto-core"; import * as core from "@peculiar/webcrypto-core";
// tslint:disable:max-classes-per-file
context("AES", () => { context("AES", () => {
context("AES-CBC", () => { context("AES-CBC", () => {

View File

@ -3,8 +3,6 @@ import * as types from "@peculiar/webcrypto-types";
import * as assert from "assert"; import * as assert from "assert";
import { Convert } from "pvtsutils"; import { Convert } from "pvtsutils";
// tslint:disable:max-classes-per-file
context("EC", () => { context("EC", () => {
context("EcUtils", () => { context("EcUtils", () => {

View File

@ -4,9 +4,7 @@ import { Convert } from "pvtsutils";
context("PemConverter", () => { context("PemConverter", () => {
// tslint:disable-next-line:max-line-length
const bytes = Convert.FromHex("30819f300d06092a864886f70d010101050003818d0030818902818100f615b745314ffe4669255dfe68953184bb8e5db54eecd35b4c51ee899ce7e60aaf19cc765d924f94be93d6809ba506fab26b9f8ef0cf6ab2aec1942da222992f8dad2e621845f014f9e831a529665faf0a9b8ca97356a602ce8d17cd3469aafa2de82546773540fa480510d1906c78c87b81850c26fdaeccce37cd5fdeba7e050203010001"); const bytes = Convert.FromHex("30819f300d06092a864886f70d010101050003818d0030818902818100f615b745314ffe4669255dfe68953184bb8e5db54eecd35b4c51ee899ce7e60aaf19cc765d924f94be93d6809ba506fab26b9f8ef0cf6ab2aec1942da222992f8dad2e621845f014f9e831a529665faf0a9b8ca97356a602ce8d17cd3469aafa2de82546773540fa480510d1906c78c87b81850c26fdaeccce37cd5fdeba7e050203010001");
// tslint:disable-next-line:prefer-template
const vector = "-----BEGIN PUBLIC KEY-----\n" + const vector = "-----BEGIN PUBLIC KEY-----\n" +
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2FbdFMU/+RmklXf5olTGEu45d\n" + "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQD2FbdFMU/+RmklXf5olTGEu45d\n" +
"tU7s01tMUe6JnOfmCq8ZzHZdkk+UvpPWgJulBvqya5+O8M9qsq7BlC2iIpkvja0u\n" + "tU7s01tMUe6JnOfmCq8ZzHZdkk+UvpPWgJulBvqya5+O8M9qsq7BlC2iIpkvja0u\n" +
@ -41,7 +39,6 @@ context("PemConverter", () => {
}); });
context("isPEM", () => { context("isPEM", () => {
// tslint:disable-next-line:prefer-template
const pem = "-----BEGIN CERTIFICATE------\n" + const pem = "-----BEGIN CERTIFICATE------\n" +
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\n" + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\n" +
"-----END CERTIFICATE------"; "-----END CERTIFICATE------";
@ -55,7 +52,6 @@ context("PemConverter", () => {
}); });
it("return false if correct PEM", () => { it("return false if correct PEM", () => {
// tslint:disable-next-line:prefer-template
const wrongPem = "----- BEGIN CERTIFICATE ------\n" + const wrongPem = "----- BEGIN CERTIFICATE ------\n" +
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\n" + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\n" +
"----- END CERTIFICATE ------"; "----- END CERTIFICATE ------";

View File

@ -8,7 +8,6 @@ class TestShake128Provider extends core.Shake128Provider {
} }
} }
// tslint:disable-next-line: max-classes-per-file
class TestShake256Provider extends core.Shake256Provider { class TestShake256Provider extends core.Shake256Provider {
public async onDigest(algorithm: Required<core.ShakeParams>, data: ArrayBuffer): Promise<ArrayBuffer> { public async onDigest(algorithm: Required<core.ShakeParams>, data: ArrayBuffer): Promise<ArrayBuffer> {
return new ArrayBuffer(algorithm.length); return new ArrayBuffer(algorithm.length);

View File

@ -2,8 +2,6 @@ import * as core from "@peculiar/webcrypto-core";
import * as types from "@peculiar/webcrypto-types"; import * as types from "@peculiar/webcrypto-types";
import * as assert from "assert"; import * as assert from "assert";
// tslint:disable:max-classes-per-file
class RsaSsaProvider extends core.RsaSsaProvider { class RsaSsaProvider extends core.RsaSsaProvider {
public onSign(algorithm: core.RsaSsaParams, key: core.CryptoKey, data: ArrayBuffer): Promise<ArrayBuffer> { public onSign(algorithm: core.RsaSsaParams, key: core.CryptoKey, data: ArrayBuffer): Promise<ArrayBuffer> {
throw new Error("Method not implemented."); throw new Error("Method not implemented.");

View File

@ -46,7 +46,6 @@ context("SubtleCrypto", () => {
} }
// tslint:disable-next-line:max-classes-per-file
class TestSubtleCrypto extends core.SubtleCrypto { class TestSubtleCrypto extends core.SubtleCrypto {
constructor() { constructor() {
super(); super();