[gjs] ByteArray: Clarify eslint override



commit 63292fbb46d30aa626ce4a97bee06121a86e9c29
Author: Evan Welsh <contact evanwelsh com>
Date:   Sun Jun 13 17:55:34 2021 -0700

    ByteArray: Clarify eslint override
    
    This exists because we export a property named 'toString' from this
    module.

 modules/script/byteArray.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/modules/script/byteArray.js b/modules/script/byteArray.js
index 6d4b0f51..98589d28 100644
--- a/modules/script/byteArray.js
+++ b/modules/script/byteArray.js
@@ -2,7 +2,9 @@
 // SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
 // SPDX-FileCopyrightText: 2017 Philip Chimento <philip chimento gmail com>
 
-/* eslint no-redeclare: ["error", { "builtinGlobals": false }] */  // for toString
+// Allow toString to be declared.
+/* eslint no-redeclare: ["error", { "builtinGlobals": false }] */
+
 var {fromGBytes, fromString, toGBytes, toString} = imports._byteArrayNative;
 
 // For backwards compatibility


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]