Pārlūkot izejas kodu

Respect lint rule for jupyterOrg var

Eric Charles 5 gadi atpakaļ
vecāks
revīzija
3586354d0a

+ 1 - 1
packages/extensionmanager/src/listings.ts

@@ -28,7 +28,7 @@ export interface IListEntry {
  * - The mode for the listings, can be black or white.
  * - A collection of URIs for black or white listings, depending
  * on the mode.
- * - A collection of black or white listed extensions,  depending
+ * - A collection of black or white listed extensions, depending
  * on the mode.
  *
  */

+ 2 - 2
packages/extensionmanager/src/npm.ts

@@ -290,13 +290,13 @@ export function isJupyterOrg(name: string): boolean {
   /**
    * A list of jupyterlab NPM orgs.
    */
-  const jupyter_org = ['jupyterlab', 'jupyter-widgets'];
+  const jupyterOrg = ['jupyterlab', 'jupyter-widgets'];
   const parts = name.split('/');
   const first = parts[0];
   return (
     parts.length > 1 && // Has a first part
     !!first && // with a finite length
     first[0] === '@' && // corresponding to an org name
-    jupyter_org.indexOf(first.slice(1)) !== -1 // in the org whitelist.
+    jupyterOrg.indexOf(first.slice(1)) !== -1 // in the org whitelist.
   );
 }