From 377ac6a79ccb20c2e989cfbdd4cb2105e7c305e8 Mon Sep 17 00:00:00 2001 From: Arthur Tu Date: Wed, 20 Jan 2021 20:25:18 -0800 Subject: [PATCH] fix lint --- client/src/proto/proto.js | 2 +- client/src/utils/protoHelpers.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/proto/proto.js b/client/src/proto/proto.js index 37a3d49..4b1b420 100644 --- a/client/src/proto/proto.js +++ b/client/src/proto/proto.js @@ -1,4 +1,4 @@ -/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ +/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars, no-mixed-operators, strict*/ "use strict"; var $protobuf = require("protobufjs/minimal"); diff --git a/client/src/utils/protoHelpers.ts b/client/src/utils/protoHelpers.ts index 61d37d1..17876ce 100644 --- a/client/src/utils/protoHelpers.ts +++ b/client/src/utils/protoHelpers.ts @@ -54,7 +54,7 @@ export function isProtoEnabled(): boolean { } export function isProtoEligible(url: string) { - for (let [key, value] of Object.entries(kindMap)) { + for (let value of Object.values(kindMap)) { if (url.includes(value.path)) { return true; }