From ed337274192447d0dd40c05c230cf301752b573a Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sat, 27 Feb 2021 12:46:57 +0100 Subject: [PATCH] Enable the `no-var` linting rule in `src/core/glyphlist.js` --- src/core/glyphlist.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/glyphlist.js b/src/core/glyphlist.js index 63785136f..c0878b080 100644 --- a/src/core/glyphlist.js +++ b/src/core/glyphlist.js @@ -13,11 +13,10 @@ * limitations under the License. */ /* no-babel-preset */ -/* eslint-disable no-var */ import { getArrayLookupTableFactory } from "./core_utils.js"; -var getGlyphsUnicode = getArrayLookupTableFactory(function () { +const getGlyphsUnicode = getArrayLookupTableFactory(function () { // prettier-ignore return [ "A", 0x0041, @@ -4347,7 +4346,7 @@ var getGlyphsUnicode = getArrayLookupTableFactory(function () { ]; }); -var getDingbatsGlyphsUnicode = getArrayLookupTableFactory(function () { +const getDingbatsGlyphsUnicode = getArrayLookupTableFactory(function () { // prettier-ignore return [ "space", 0x0020,