瀏覽代碼

Lint fixes

Jason Grout 4 年之前
父節點
當前提交
efafe2f154
共有 1 個文件被更改,包括 9 次插入7 次删除
  1. 9 7
      examples/federated/phosphor_package/index.js

+ 9 - 7
examples/federated/phosphor_package/index.js

@@ -1,8 +1,8 @@
 // Copyright (c) Jupyter Development Team.
 // Distributed under the terms of the Modified BSD License.
 
-import {Widget} from '@phosphor/widgets';
-import {MainAreaWidget} from '@jupyterlab/apputils';
+import { Widget } from '@phosphor/widgets';
+import { MainAreaWidget } from '@jupyterlab/apputils';
 
 const plugins = [
   {
@@ -10,11 +10,13 @@ const plugins = [
     autoStart: true,
     activate: function(app) {
       const mywidget = new Widget();
-      mywidget.node.textContent = "Phosphor extension"
-      mywidget.id = "@jupyterlab/example-federated-phosphor";
-      mywidget.title.label = "Phosphor extension";
-      const appwidget = new MainAreaWidget({content: mywidget})
-      app.restored.then(() => {app.shell.add(appwidget);});
+      mywidget.node.textContent = 'Phosphor extension';
+      mywidget.id = '@jupyterlab/example-federated-phosphor';
+      mywidget.title.label = 'Phosphor extension';
+      const appwidget = new MainAreaWidget({ content: mywidget });
+      app.restored.then(() => {
+        app.shell.add(appwidget);
+      });
     }
   }
 ];