mirror of
https://github.com/scratchfoundation/scratch-svg-renderer.git
synced 2024-11-14 19:25:41 -05:00
update eslint and babel-eslint versions, one change to obey new rule
This commit is contained in:
parent
f23e16f3d3
commit
fc677e734c
3 changed files with 10 additions and 10 deletions
14
.eslintrc.js
14
.eslintrc.js
|
@ -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
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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]}`;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue