fix eslint issues

This commit is contained in:
JFH
2020-07-14 12:56:33 +02:00
parent 01418b44f3
commit 09c786abe9
188 changed files with 179 additions and 21 deletions

View File

@@ -1,3 +1,4 @@
/* eslint-disable import/no-anonymous-default-export */
/**
* @file ext-server_moinsave.js
*
@@ -13,6 +14,7 @@ export default {
name: 'server_moinsave',
async init ({$, encode64, importLocale}) {
const strings = await importLocale();
// eslint-disable-next-line consistent-this
const svgEditor = this;
const svgCanvas = svgEditor.canvas;
const saveSvgAction = '/+modify';
@@ -28,6 +30,7 @@ export default {
svgEditor.setCustomHandlers({
async save (win, data) {
const svg = '<?xml version="1.0"?>\n' + data;
// eslint-disable-next-line node/no-unsupported-features/node-builtins
const {pathname} = new URL(location);
const name = pathname.replace(/\/+get\//, '');
const svgData = encode64(svg);