cleanup: Require "dangling" commas

Since ES5, trailing commas in arrays and object literals are valid.
We generally haven't used them so far, but they are actually a good
idea, as they make additions and removals in diffs much cleaner.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/805
This commit is contained in:
Florian Müllner
2019-08-20 23:43:54 +02:00
committed by Georges Basile Stavracas Neto
parent 07cc84f632
commit ebf77748a8
81 changed files with 452 additions and 445 deletions

View File

@ -22,7 +22,7 @@ function getRtlSlideDirection(direction, actor) {
var SlideDirection = {
LEFT: 0,
RIGHT: 1
RIGHT: 1,
};
var SlideLayout = GObject.registerClass({
@ -34,8 +34,8 @@ var SlideLayout = GObject.registerClass({
'translation-x': GObject.ParamSpec.double(
'translation-x', 'translation-x', 'translation-x',
GObject.ParamFlags.READWRITE,
-Infinity, Infinity, 0)
}
-Infinity, Infinity, 0),
},
}, class SlideLayout extends Clutter.FixedLayout {
_init(params) {
this._slideX = 1;
@ -128,7 +128,7 @@ class SlidingControl extends St.Widget {
super._init({
layout_manager: this.layout,
style_class: 'overview-controls',
clip_to_allocation: true
clip_to_allocation: true,
});
this._visible = true;
@ -223,7 +223,7 @@ class SlidingControl extends St.Widget {
this.ease({
opacity: 255,
duration: SIDE_CONTROLS_ANIMATION_TIME / 2,
mode: Clutter.AnimationMode.EASE_IN_QUAD
mode: Clutter.AnimationMode.EASE_IN_QUAD,
});
}
@ -231,7 +231,7 @@ class SlidingControl extends St.Widget {
this.ease({
opacity: 128,
duration: SIDE_CONTROLS_ANIMATION_TIME / 2,
mode: Clutter.AnimationMode.EASE_OUT_QUAD
mode: Clutter.AnimationMode.EASE_OUT_QUAD,
});
}
@ -428,7 +428,7 @@ class ControlsManager extends St.Widget {
layout_manager: layout,
x_expand: true,
y_expand: true,
clip_to_allocation: true
clip_to_allocation: true,
});
this.dash = new Dash.Dash();