[gjs: 4/5] maint: Fix eslint errors
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 4/5] maint: Fix eslint errors
- Date: Sun, 2 Feb 2020 21:21:25 +0000 (UTC)
commit 4f4b59f79b4912e2a0fb6c080d66464e442afcfc
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Feb 1 18:52:03 2020 +0100
maint: Fix eslint errors
Apparently eslint has fixed some oversights in its dangling comma
detection.
examples/gtk-application.js | 6 +++---
installed-tests/js/testTweener.js | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/examples/gtk-application.js b/examples/gtk-application.js
index d4893a7b..483a5ea5 100644
--- a/examples/gtk-application.js
+++ b/examples/gtk-application.js
@@ -20,7 +20,7 @@ var ExampleApplication = GObject.registerClass({
'ExampleProperty', // nickname
'An example read write property', // description
GObject.ParamFlags.READWRITE, // read/write/construct...
- '' // implement defaults manually
+ '', // implement defaults manually
),
},
Signals: {'examplesig': {param_types: [GObject.TYPE_INT]}},
@@ -98,7 +98,7 @@ var ExampleApplication = GObject.registerClass({
notif.set_title('Example Notification');
notif.set_body('Example Body');
notif.set_icon(
- new Gio.ThemedIcon({name: 'dialog-information-symbolic'})
+ new Gio.ThemedIcon({name: 'dialog-information-symbolic'}),
);
// A default action for when the body of the notification is clicked
@@ -107,7 +107,7 @@ var ExampleApplication = GObject.registerClass({
// A button for the notification
notif.add_button(
'Button Text',
- "app.exampleAction('exampleParameter')"
+ "app.exampleAction('exampleParameter')",
);
// This won't actually be shown, since an application needs a .desktop
diff --git a/installed-tests/js/testTweener.js b/installed-tests/js/testTweener.js
index 1f6efe57..a674e074 100644
--- a/installed-tests/js/testTweener.js
+++ b/installed-tests/js/testTweener.js
@@ -282,7 +282,7 @@ describe('Tweener', function () {
},
function (obj, val) {
obj.x = -val;
- }
+ },
);
var objectA = {
@@ -343,7 +343,7 @@ describe('Tweener', function () {
function (val) {
return [{name: 'x', value: val},
{name: 'y', value: -val}];
- }
+ },
);
var objectA = {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]