You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Tools: Implement "prefer-object-spread" eslint rule
This commit is contained in:
@@ -6,19 +6,17 @@ class FoldersScreenUtils {
|
||||
static async allForDisplay(options = {}) {
|
||||
const orderDir = Setting.value('folders.sortOrder.reverse') ? 'DESC' : 'ASC';
|
||||
|
||||
const folderOptions = Object.assign(
|
||||
{},
|
||||
{
|
||||
caseInsensitive: true,
|
||||
order: [
|
||||
{
|
||||
by: 'title',
|
||||
dir: orderDir,
|
||||
},
|
||||
],
|
||||
},
|
||||
options
|
||||
);
|
||||
const folderOptions = {
|
||||
|
||||
caseInsensitive: true,
|
||||
order: [
|
||||
{
|
||||
by: 'title',
|
||||
dir: orderDir,
|
||||
},
|
||||
],
|
||||
...options,
|
||||
};
|
||||
|
||||
let folders = await Folder.all(folderOptions);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user