1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-21 23:17:42 +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

@ -95,7 +95,7 @@ class InteropService {
},
];
importModules = importModules.map((a) => {
importModules = importModules.map(a => {
const className = a.importerClass || `InteropService_Importer_${toTitleCase(a.format)}`;
const output = Object.assign(
{},
@ -109,7 +109,7 @@ class InteropService {
return output;
});
exportModules = exportModules.map((a) => {
exportModules = exportModules.map(a => {
const className = `InteropService_Exporter_${toTitleCase(a.format)}`;
return Object.assign(
{},
@ -123,7 +123,7 @@ class InteropService {
this.modules_ = importModules.concat(exportModules);
this.modules_ = this.modules_.map((a) => {
this.modules_ = this.modules_.map(a => {
a.fullLabel = function(moduleSource = null) {
const label = [`${this.format.toUpperCase()} - ${this.description}`];
if (moduleSource && this.sources.length > 1) {
@ -156,7 +156,7 @@ class InteropService {
}
}
const output = matches.find((m) => !!m.isDefault);
const output = matches.find(m => !!m.isDefault);
if (output) return output;
return matches.length ? matches[0] : null;