npm update with fix to new eslint issues

This commit is contained in:
jfh
2020-10-25 17:54:04 +01:00
parent ea4a33dc83
commit f2698c2ca8
13 changed files with 151 additions and 195 deletions

View File

@@ -189,10 +189,7 @@ export default {
let viewBox = '0 0 100 100';
let markerWidth = 5;
let markerHeight = 5;
let seType;
if (val.substr(0, 1) === '\\') {
seType = val.substr(1);
} else { seType = 'textmarker'; }
const seType = (val.substr(0, 1) === '\\') ? val.substr(1) : 'textmarker';
if (!markerTypes[seType]) { return undefined; } // an unknown type!