You've already forked joplin
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user