You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-15 23:00:36 +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:
@ -186,7 +186,7 @@ class BaseItem extends BaseModel {
|
||||
let conflictNoteIds = [];
|
||||
if (this.modelType() == BaseModel.TYPE_NOTE) {
|
||||
const conflictNotes = await this.db().selectAll(`SELECT id FROM notes WHERE id IN ("${ids.join('","')}") AND is_conflict = 1`);
|
||||
conflictNoteIds = conflictNotes.map((n) => {
|
||||
conflictNoteIds = conflictNotes.map(n => {
|
||||
return n.id;
|
||||
});
|
||||
}
|
||||
@ -609,7 +609,7 @@ class BaseItem extends BaseModel {
|
||||
}
|
||||
|
||||
static syncItemClassNames() {
|
||||
return BaseItem.syncItemDefinitions_.map((def) => {
|
||||
return BaseItem.syncItemDefinitions_.map(def => {
|
||||
return def.className;
|
||||
});
|
||||
}
|
||||
@ -625,7 +625,7 @@ class BaseItem extends BaseModel {
|
||||
}
|
||||
|
||||
static syncItemTypes() {
|
||||
return BaseItem.syncItemDefinitions_.map((def) => {
|
||||
return BaseItem.syncItemDefinitions_.map(def => {
|
||||
return def.type;
|
||||
});
|
||||
}
|
||||
@ -726,7 +726,7 @@ class BaseItem extends BaseModel {
|
||||
);
|
||||
|
||||
const items = await ItemClass.modelSelectAll(sql);
|
||||
const ids = items.map((item) => {
|
||||
const ids = items.map(item => {
|
||||
return item.id;
|
||||
});
|
||||
if (!ids.length) continue;
|
||||
|
Reference in New Issue
Block a user