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:
@@ -95,10 +95,8 @@ utils.replaceFileText = async function(filePath, regex, toInsert) {
|
||||
};
|
||||
|
||||
utils.copyDir = async function(src, dest, options) {
|
||||
options = Object.assign({}, {
|
||||
excluded: [],
|
||||
delete: true,
|
||||
}, options);
|
||||
options = { excluded: [],
|
||||
delete: true, ...options };
|
||||
|
||||
src = utils.toSystemSlashes(src);
|
||||
dest = utils.toSystemSlashes(dest);
|
||||
|
||||
Reference in New Issue
Block a user