update eslint and babel-eslint versions, one change to obey new rule

This commit is contained in:
Ben Wheeler 2020-11-09 13:58:01 -05:00
parent f23e16f3d3
commit fc677e734c
3 changed files with 10 additions and 10 deletions

View file

@ -1,10 +1,10 @@
module.exports = {
extends: ['scratch', 'scratch/es6', 'scratch/node'],
"globals": {
"document": true,
"window": true,
"DOMParser": true,
"Image": true,
"XMLSerializer": true,
globals: {
document: true,
window: true,
DOMParser: true,
Image: true,
XMLSerializer: true
}
};

View file

@ -31,11 +31,11 @@
},
"devDependencies": {
"babel-core": "6.26.0",
"babel-eslint": "^8.1.2",
"babel-eslint": "^10.1.0",
"babel-loader": "7.1.5",
"babel-preset-env": "1.6.1",
"copy-webpack-plugin": "^4.5.1",
"eslint": "^4.14.0",
"eslint": "^7.13.0",
"eslint-config-scratch": "^5.0.0",
"eslint-plugin-import": "^2.12.0",
"jsdom": "^13.0.0",

View file

@ -36,7 +36,7 @@ const inlineSvgFonts = function (svgString) {
if (fontsNeeded.size > 0) {
let str = '<defs><style>';
for (const font of fontsNeeded) {
if (FONTS.hasOwnProperty(font)) {
if (Object.prototype.hasOwnProperty.call(FONTS, font)) {
str += `${FONTS[font]}`;
}
}