1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-07-16 00:14:34 +02:00

Tools: Implement "prefer-object-spread" eslint rule

This commit is contained in:
Laurent Cozic
2023-06-01 12:02:36 +01:00
parent 804d674d37
commit c89edd7b22
126 changed files with 588 additions and 909 deletions

View File

@ -65,7 +65,7 @@ class PluginManager {
return {
Dialog: Class.Dialog,
props: Object.assign({}, this.dialogProps_(name), { userData: p.userData }),
props: { ...this.dialogProps_(name), userData: p.userData },
};
}
@ -86,7 +86,7 @@ class PluginManager {
if (!menuItems) continue;
for (let i = 0; i < menuItems.length; i++) {
const item = Object.assign({}, menuItems[i]);
const item = { ...menuItems[i] };
item.click = () => {
this.onPluginMenuItemTrigger_({