1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Revert "Tools: Added eslint rule arrow-parens"

This reverts commit 0b6f5581f0.

It causes too many conflicts with pull requests.
This commit is contained in:
Laurent Cozic
2020-05-21 09:14:33 +01:00
parent b83eee751f
commit a96734f5be
166 changed files with 444 additions and 445 deletions

View File

@@ -163,8 +163,8 @@ class Api {
if (!query || !query.fields) return defaultFields;
const fields = query.fields
.split(',')
.map((f) => f.trim())
.filter((f) => !!f);
.map(f => f.trim())
.filter(f => !!f);
return fields.length ? fields : defaultFields;
}
@@ -649,7 +649,7 @@ class Api {
const output = {};
const downloadOne = async (url) => {
const downloadOne = async url => {
const imagePath = await this.downloadImage_(url, allowFileProtocolImages);
if (imagePath) output[url] = { path: imagePath, originalUrl: url };
};
@@ -699,7 +699,7 @@ class Api {
const imageSizesIndexes = {};
if (markupLanguage === MarkupToHtml.MARKUP_LANGUAGE_HTML) {
return htmlUtils.replaceImageUrls(md, (imageUrl) => {
return htmlUtils.replaceImageUrls(md, imageUrl => {
const urlInfo = urls[imageUrl];
if (!urlInfo || !urlInfo.resource) return imageUrl;
return Resource.internalUrl(urlInfo.resource);