You've already forked joplin
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:
@ -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_({
|
||||
|
Reference in New Issue
Block a user