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

Tools: Add prefer-arrow-callbacks to ESlint rules (#7810)

This commit is contained in:
pedr
2023-02-20 12:02:29 -03:00
committed by GitHub
parent ca575162f7
commit f2995dd196
206 changed files with 511 additions and 510 deletions

View File

@@ -69,12 +69,12 @@ function enexXmlToHtml_(stream, resources) {
parent: null,
};
saxStream.on('error', function(e) {
saxStream.on('error', (e) => {
console.warn(e);
});
saxStream.on('text', function(text) {
saxStream.on('text', (text) => {
section.lines.push(htmlentities(text));
});
@@ -135,14 +135,14 @@ function enexXmlToHtml_(stream, resources) {
}
});
saxStream.on('closetag', function(node) {
saxStream.on('closetag', (node) => {
const tagName = node ? node.toLowerCase() : node;
if (!htmlUtils.isSelfClosingTag(tagName)) section.lines.push(`</${tagName}>`);
});
saxStream.on('attribute', function() {});
saxStream.on('attribute', () => {});
saxStream.on('end', function() {
saxStream.on('end', () => {
resolve({
content: section,
resources: remainingResources,