Other: Require trailing commas for multiline for most

Require trailing commas for multiline for arrays, objects, imports and
exports and disallow trailing commas for functions.
Do this by updating the ESLint config and fixing new complaints.

The reason for this change are the resulting future cleaner version
diffs.

Also see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Trailing_commas
https://eslint.org/docs/latest/rules/comma-dangle
This commit is contained in:
June 2023-10-05 14:50:36 +02:00
commit d903274d73
No known key found for this signature in database
GPG key ID: 094C2AC34192FA11
6 changed files with 22 additions and 15 deletions

View file

@ -14,8 +14,8 @@ export default class BoxOrderManager extends GObject.Object {
static {
GObject.registerClass({
Signals: {
"appIndicatorReady": {}
}
"appIndicatorReady": {},
},
}, this);
}
@ -157,7 +157,7 @@ export default class BoxOrderManager extends GObject.Object {
const indicatorContainers = [
Main.panel._leftBox.get_children(),
Main.panel._centerBox.get_children(),
Main.panel._rightBox.get_children()
Main.panel._rightBox.get_children(),
].flat();
// Create an indicator containers set from the indicator containers for
@ -212,7 +212,7 @@ export default class BoxOrderManager extends GObject.Object {
center: Main.panel._centerBox.get_children(),
// Reverse this array, since the items in the left and center box
// are logically LTR, while the items in the right box are RTL.
right: Main.panel._rightBox.get_children().reverse()
right: Main.panel._rightBox.get_children().reverse(),
};
// This function goes through the indicator containers of the given box