Enable the no-var linting rule in src/core/glyphlist.js

This commit is contained in:
Tim van der Meij 2021-02-27 12:46:57 +01:00
parent e051d4d029
commit ed33727419
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762

View File

@ -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,