[gnome-shell-extensions/wip/fmuellner/lint-ci: 15/18] extensions: Mark exported symbols



commit 3861ffae31865f8145de8bc03e186eac61de8edf
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Jan 26 19:50:33 2019 +0100

    extensions: Mark exported symbols
    
    eslint obviously doesn't know about gnome-shell's extension API, so
    the various entry points trigger unused-variable errors. To fix,
    explicitly mark those symbols as exported.
    
    https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/50

 extensions/apps-menu/extension.js               | 1 +
 extensions/auto-move-windows/extension.js       | 1 +
 extensions/auto-move-windows/prefs.js           | 1 +
 extensions/drive-menu/extension.js              | 1 +
 extensions/launch-new-instance/extension.js     | 1 +
 extensions/native-window-placement/extension.js | 1 +
 extensions/places-menu/extension.js             | 1 +
 extensions/screenshot-window-sizer/extension.js | 1 +
 extensions/user-theme/extension.js              | 1 +
 extensions/window-list/extension.js             | 1 +
 extensions/window-list/prefs.js                 | 1 +
 extensions/windowsNavigator/extension.js        | 1 +
 extensions/workspace-indicator/extension.js     | 1 +
 extensions/workspace-indicator/prefs.js         | 1 +
 14 files changed, 14 insertions(+)
---
diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
index bf81226..946cfcb 100644
--- a/extensions/apps-menu/extension.js
+++ b/extensions/apps-menu/extension.js
@@ -1,4 +1,5 @@
 /* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
+/* exported init enable disable */
 
 const Atk = imports.gi.Atk;
 const DND = imports.ui.dnd;
diff --git a/extensions/auto-move-windows/extension.js b/extensions/auto-move-windows/extension.js
index 4ce0eec..0d4c81a 100644
--- a/extensions/auto-move-windows/extension.js
+++ b/extensions/auto-move-windows/extension.js
@@ -1,5 +1,6 @@
 // -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*-
 // Start apps on custom workspaces
+/* exported init enable disable */
 
 const Shell = imports.gi.Shell;
 
diff --git a/extensions/auto-move-windows/prefs.js b/extensions/auto-move-windows/prefs.js
index 7e68a76..d14d880 100644
--- a/extensions/auto-move-windows/prefs.js
+++ b/extensions/auto-move-windows/prefs.js
@@ -1,5 +1,6 @@
 // -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*-
 // Start apps on custom workspaces
+/* exported init buildPrefsWidget */
 
 const Gio = imports.gi.Gio;
 const GObject = imports.gi.GObject;
diff --git a/extensions/drive-menu/extension.js b/extensions/drive-menu/extension.js
index ab9e740..c4b96c4 100644
--- a/extensions/drive-menu/extension.js
+++ b/extensions/drive-menu/extension.js
@@ -1,3 +1,4 @@
+/* exported init enable disable */
 // Drive menu extension
 const Gio = imports.gi.Gio;
 const GObject = imports.gi.GObject;
diff --git a/extensions/launch-new-instance/extension.js b/extensions/launch-new-instance/extension.js
index 1d94067..7df9bb9 100644
--- a/extensions/launch-new-instance/extension.js
+++ b/extensions/launch-new-instance/extension.js
@@ -1,3 +1,4 @@
+/* exported enable disable */
 const AppDisplay = imports.ui.appDisplay;
 
 let _activateOriginal = null;
diff --git a/extensions/native-window-placement/extension.js b/extensions/native-window-placement/extension.js
index d8cdf36..56ac6e3 100644
--- a/extensions/native-window-placement/extension.js
+++ b/extensions/native-window-placement/extension.js
@@ -1,4 +1,5 @@
 // -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*-
+/* exported enable disable */
 const Workspace = imports.ui.workspace;
 
 const ExtensionUtils = imports.misc.extensionUtils;
diff --git a/extensions/places-menu/extension.js b/extensions/places-menu/extension.js
index 968a45e..990fe50 100644
--- a/extensions/places-menu/extension.js
+++ b/extensions/places-menu/extension.js
@@ -1,4 +1,5 @@
 /* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
+/* exported init enable disable */
 
 const Clutter = imports.gi.Clutter;
 const GObject = imports.gi.GObject;
diff --git a/extensions/screenshot-window-sizer/extension.js b/extensions/screenshot-window-sizer/extension.js
index cee9cfd..4bd63a1 100644
--- a/extensions/screenshot-window-sizer/extension.js
+++ b/extensions/screenshot-window-sizer/extension.js
@@ -1,3 +1,4 @@
+/* exported enable disable */
 /* Screenshot Window Sizer for Gnome Shell
  *
  * Copyright (c) 2013 Owen Taylor <otaylor redhat com>
diff --git a/extensions/user-theme/extension.js b/extensions/user-theme/extension.js
index 9a0bd21..4e36e09 100644
--- a/extensions/user-theme/extension.js
+++ b/extensions/user-theme/extension.js
@@ -1,5 +1,6 @@
 // -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*-
 // Load shell theme from ~/.themes/name/gnome-shell
+/* exported init */
 
 const GLib = imports.gi.GLib;
 const Gio = imports.gi.Gio;
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index 77a5c2d..3bbf5bb 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -1,3 +1,4 @@
+/* exported init */
 const Clutter = imports.gi.Clutter;
 const GLib = imports.gi.GLib;
 const Gio = imports.gi.Gio;
diff --git a/extensions/window-list/prefs.js b/extensions/window-list/prefs.js
index f7bb3ee..c36e945 100644
--- a/extensions/window-list/prefs.js
+++ b/extensions/window-list/prefs.js
@@ -1,4 +1,5 @@
 // -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*-
+/* exported init buildPrefsWidget */
 
 const Gio = imports.gi.Gio;
 const GObject = imports.gi.GObject;
diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js
index 805b0b4..a4d7474 100644
--- a/extensions/windowsNavigator/extension.js
+++ b/extensions/windowsNavigator/extension.js
@@ -1,4 +1,5 @@
 /* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
+/* exported enable disable */
 const Clutter = imports.gi.Clutter;
 const St = imports.gi.St;
 
diff --git a/extensions/workspace-indicator/extension.js b/extensions/workspace-indicator/extension.js
index d709e24..c4e7998 100644
--- a/extensions/workspace-indicator/extension.js
+++ b/extensions/workspace-indicator/extension.js
@@ -1,4 +1,5 @@
 // -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*-
+/* exported init enable disable */
 
 const Gio = imports.gi.Gio;
 const GObject = imports.gi.GObject;
diff --git a/extensions/workspace-indicator/prefs.js b/extensions/workspace-indicator/prefs.js
index 6d32d24..6dd4761 100644
--- a/extensions/workspace-indicator/prefs.js
+++ b/extensions/workspace-indicator/prefs.js
@@ -1,4 +1,5 @@
 // -*- mode: js2; indent-tabs-mode: nil; js2-basic-offset: 4 -*-
+/* exported init buildPrefsWidget */
 
 const Gio = imports.gi.Gio;
 const GObject = imports.gi.GObject;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]