Update eslintrc from GJS, fix errors and missing JSDocs

This commit is contained in:
Romain Vigier
2020-11-26 15:06:27 +01:00
parent 90c1adb8ae
commit d2d6da0ec8
40 changed files with 167 additions and 79 deletions
-2
View File
@@ -31,7 +31,6 @@ const { logDebug } = Me.imports.utils;
* settings), it will use it as the current time background.
*/
var Backgrounder = class {
constructor() {
this._statusChangedConnect = null;
this._backgroundChangedConnect = null;
@@ -139,5 +138,4 @@ var Backgrounder = class {
e.settings.system.background = e.settings.backgrounds.night;
}
}
};
-2
View File
@@ -29,7 +29,6 @@ const { logDebug } = Me.imports.utils;
* The Commander is responsible for spawning commands according to the time.
*/
var Commander = class {
constructor() {
this._statusChangedConnect = null;
this._timeChangedConnect = null;
@@ -93,5 +92,4 @@ var Commander = class {
GLib.spawn_async(null, ['sh', '-c', command], null, GLib.SpawnFlags.SEARCH_PATH, null);
logDebug(`Spawned ${time} command.`);
}
};
-2
View File
@@ -30,7 +30,6 @@ const { logDebug } = Me.imports.utils;
* the time.
*/
var CursorThemer = class {
constructor() {
this._statusChangedConnect = null;
this._variantChangedConnect = null;
@@ -140,5 +139,4 @@ var CursorThemer = class {
e.settings.system.cursorTheme = e.settings.cursorVariants.night;
}
}
};
-2
View File
@@ -41,7 +41,6 @@ const _ = Gettext.gettext;
* change the GTK variants in the extension's preferences.
*/
var GtkThemer = class {
constructor() {
this._statusChangedConnect = null;
this._variantChangedConnect = null;
@@ -184,5 +183,4 @@ var GtkThemer = class {
e.settings.gtkVariants.night = variants.get('night');
logDebug(`New GTK variants. { day: '${variants.get('day')}'; night: '${variants.get('night')}' }`);
}
};
-2
View File
@@ -41,7 +41,6 @@ this program. If not, see <http s ://www.gnu.org/licenses/>.
* - '-darkest'
*/
var GtkVariants = class {
static guessFrom(name) {
const variants = new Map();
@@ -100,5 +99,4 @@ var GtkVariants = class {
return variants;
}
};
-2
View File
@@ -30,7 +30,6 @@ const { logDebug } = Me.imports.utils;
* time.
*/
var IconThemer = class {
constructor() {
this._statusChangedConnect = null;
this._variantChangedConnect = null;
@@ -140,5 +139,4 @@ var IconThemer = class {
e.settings.system.iconTheme = e.settings.iconVariants.night;
}
}
};
-2
View File
@@ -41,7 +41,6 @@ const _ = Gettext.gettext;
* change the shell variants in the extension's preferences.
*/
var ShellThemer = class {
constructor() {
this._statusChangedConnect = null;
this._variantChangedConnect = null;
@@ -190,6 +189,5 @@ var ShellThemer = class {
e.settings.shellVariants.night = variants.get('night');
logDebug(`New Shell variants. { day: '${variants.get('day')}'; night: '${variants.get('night')}' }`);
}
};
Signals.addSignalMethods(ShellThemer.prototype);
-2
View File
@@ -41,7 +41,6 @@ this program. If not, see <http s ://www.gnu.org/licenses/>.
* - '-darkest'
*/
var ShellVariants = class {
static guessFrom(name) {
const variants = new Map();
@@ -97,5 +96,4 @@ var ShellVariants = class {
return variants;
}
};
-2
View File
@@ -45,7 +45,6 @@ const { TimerOndemand } = Me.imports.modules.TimerOndemand;
* schedule in the extensions's preferences.
*/
var Timer = class {
constructor() {
this._sources = [];
this._previousTime = null;
@@ -199,6 +198,5 @@ var Timer = class {
}
return source;
}
};
Signals.addSignalMethods(Timer.prototype);
-2
View File
@@ -40,7 +40,6 @@ const { logDebug } = Me.imports.utils;
* case.
*/
var TimerLocation = class {
constructor() {
this._previouslyDaytime = null;
// Before we have the location suntimes, we'll use the manual schedule
@@ -211,6 +210,5 @@ var TimerLocation = class {
GLib.Source.remove(this._timeChangeTimer);
logDebug('Stopped watching for time change.');
}
};
Signals.addSignalMethods(TimerLocation.prototype);
-2
View File
@@ -42,7 +42,6 @@ const COLOR_INTERFACE = `
* 'NightLightActive' property and will signal any change.
*/
var TimerNightlight = class {
constructor() {
this._colorDbusProxy = null;
this._nightlightFollowDisableConnect = null;
@@ -135,6 +134,5 @@ var TimerNightlight = class {
? !this._colorDbusProxy.DisabledUntilTomorrow && this._colorDbusProxy.NightLightActive
: this._colorDbusProxy.NightLightActive;
}
};
Signals.addSignalMethods(TimerNightlight.prototype);
-2
View File
@@ -41,7 +41,6 @@ const _ = Gettext.gettext;
* The user can change the key combination in the extension's preferences.
*/
var TimerOndemand = class {
constructor() {
this._button = null;
this._previousKeybinding = null;
@@ -221,6 +220,5 @@ var TimerOndemand = class {
e.settings.time.ondemandTime = e.timer.time === 'day' ? 'night' : 'day';
this.emit('time-changed', this.time);
}
};
Signals.addSignalMethods(TimerOndemand.prototype);
-2
View File
@@ -35,7 +35,6 @@ const { logDebug } = Me.imports.utils;
* The user can change the schedule in the extension's preferences.
*/
var TimerSchedule = class {
constructor() {
this._previouslyDaytime = null;
this._timeChangeTimer = null;
@@ -84,6 +83,5 @@ var TimerSchedule = class {
GLib.Source.remove(this._timeChangeTimer);
logDebug('Stopped watching for time change.');
}
};
Signals.addSignalMethods(TimerSchedule.prototype);