From 26c36dacba935eca3b4e3f1d4bac6bd318f7cb5b Mon Sep 17 00:00:00 2001 From: Supereg Date: Sun, 10 Jan 2021 18:07:29 +0100 Subject: [PATCH] Updated linting rules to latest name changes --- .eslintrc | 2 +- src/srp.ts | 1 - src/test/test_hap_vectors.ts | 2 +- src/test/test_picl_vectors.ts | 2 +- src/test/test_rfc_5054.ts | 2 +- src/test/test_srp.ts | 2 +- 6 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.eslintrc b/.eslintrc index ec369b7..e257110 100644 --- a/.eslintrc +++ b/.eslintrc @@ -27,6 +27,6 @@ "brace-style": ["error"], "@typescript-eslint/no-non-null-assertion": "off", - "@typescript-eslint/camelcase": "off" + "@typescript-eslint/naming-convention": "off" } } diff --git a/src/srp.ts b/src/srp.ts index 57d269f..8b1eb1a 100644 --- a/src/srp.ts +++ b/src/srp.ts @@ -100,7 +100,6 @@ export class SRP { assertIsBuffer(salt, "salt (salt)"); assertIsBuffer(I, "identity (I)"); assertIsBuffer(P, "password (P)"); - // eslint-disable-next-line @typescript-eslint/camelcase const v_num = params.g.modPow(getx(params, salt, I, P), params.N); return v_num.toBuffer(params.N_length_bits / 8); } diff --git a/src/test/test_hap_vectors.ts b/src/test/test_hap_vectors.ts index 9723edf..4caa5b9 100644 --- a/src/test/test_hap_vectors.ts +++ b/src/test/test_hap_vectors.ts @@ -1,4 +1,4 @@ -/* eslint-disable @typescript-eslint/ban-ts-ignore */ +/* eslint-disable @typescript-eslint/ban-ts-comment */ // @ts-ignore import vows from "vows"; import assert from "assert"; diff --git a/src/test/test_picl_vectors.ts b/src/test/test_picl_vectors.ts index ae72ba8..a4227bd 100644 --- a/src/test/test_picl_vectors.ts +++ b/src/test/test_picl_vectors.ts @@ -1,4 +1,4 @@ -/* eslint-disable @typescript-eslint/ban-ts-ignore */ +/* eslint-disable @typescript-eslint/ban-ts-comment */ // @ts-ignore import vows from "vows"; import assert from "assert"; diff --git a/src/test/test_rfc_5054.ts b/src/test/test_rfc_5054.ts index 86ecde6..02310b8 100644 --- a/src/test/test_rfc_5054.ts +++ b/src/test/test_rfc_5054.ts @@ -1,4 +1,4 @@ -/* eslint-disable @typescript-eslint/ban-ts-ignore */ +/* eslint-disable @typescript-eslint/ban-ts-comment */ // @ts-ignore import vows from "vows"; import assert from "assert"; diff --git a/src/test/test_srp.ts b/src/test/test_srp.ts index c3a4c40..100422b 100644 --- a/src/test/test_srp.ts +++ b/src/test/test_srp.ts @@ -1,4 +1,4 @@ -// eslint-disable-next-line @typescript-eslint/ban-ts-ignore +// eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore import vows from "vows"; import assert from "assert";