1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Chore: Apply eslint rules

This commit is contained in:
Laurent Cozic
2019-09-19 22:51:18 +01:00
parent ab29d7e872
commit e648392330
185 changed files with 1196 additions and 1196 deletions

View File

@ -110,7 +110,7 @@ function enexXmlToHtml_(stream, resources) {
}
if (!found) {
reject('Hash with no associated resource: ' + hash);
reject(`Hash with no associated resource: ${hash}`);
}
}
@ -134,7 +134,7 @@ function enexXmlToHtml_(stream, resources) {
section.lines.push(`</${tagName}>`);
});
saxStream.on('attribute', function(attr) {});
saxStream.on('attribute', function() {});
saxStream.on('end', function() {
resolve({
@ -161,7 +161,7 @@ async function enexXmlToHtml(xmlString, resources, options = {}) {
}
const beautifyHtml = (html) => {
return new Promise((resolve, _reject) => {
return new Promise((resolve) => {
const options = {wrap: 0};
cleanHtml.clean(html, options, (...cleanedHtml) => resolve(cleanedHtml));
});