[gjs: 1/2] added rule to handle blank lines at the start of blocks




commit 984ff1569421fe8b4b9ce25b28249f139e8b7021
Author: Nasah-Kuma <nasahnash19 gmail com>
Date:   Tue Oct 27 18:01:45 2020 +0000

    added rule to handle blank lines at the start of blocks

 .eslintrc.yml                     | 3 +++
 examples/dbus-client.js           | 1 -
 examples/dbus-service.js          | 1 -
 modules/core/overrides/GObject.js | 1 -
 modules/core/overrides/Gtk.js     | 1 -
 modules/script/tweener/tweener.js | 2 --
 6 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/.eslintrc.yml b/.eslintrc.yml
index 5b260cc5..13114fa7 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -171,6 +171,9 @@ rules:
   object-shorthand: error
   operator-assignment: error
   operator-linebreak: error
+  padded-blocks:
+    - error
+    - never
   # These may be a bit controversial, we can try them out and enable them later
   # prefer-const: error
   # prefer-destructuring: error
diff --git a/examples/dbus-client.js b/examples/dbus-client.js
index 0b9729a5..5590cc5b 100644
--- a/examples/dbus-client.js
+++ b/examples/dbus-client.js
@@ -93,7 +93,6 @@ function onNameAppeared(connection, name, _owner) {
     }
 
     proxy.ComplexMethodRemote('input string', (value, error, fdList) => {
-
         // If @error is not `null`, then an error occurred
         if (error !== null) {
             logError(error);
diff --git a/examples/dbus-service.js b/examples/dbus-service.js
index c1d6d659..5daf567f 100644
--- a/examples/dbus-service.js
+++ b/examples/dbus-service.js
@@ -29,7 +29,6 @@ const ifaceXml = `
 
 // An example of the service-side implementation of the above interface.
 class Service {
-
     constructor() {
         this.dbus = Gio.DBusExportedObject.wrapJSObject(ifaceXml, this);
     }
diff --git a/modules/core/overrides/GObject.js b/modules/core/overrides/GObject.js
index af08175e..3febb5bb 100644
--- a/modules/core/overrides/GObject.js
+++ b/modules/core/overrides/GObject.js
@@ -220,7 +220,6 @@ function _checkInterface(iface, proto) {
 }
 
 function _init() {
-
     GObject = this;
 
     function _makeDummyClass(obj, name, upperName, gtypeName, actual) {
diff --git a/modules/core/overrides/Gtk.js b/modules/core/overrides/Gtk.js
index 4ba35883..1251adab 100644
--- a/modules/core/overrides/Gtk.js
+++ b/modules/core/overrides/Gtk.js
@@ -9,7 +9,6 @@ let Gtk;
 let BuilderScope;
 
 function _init() {
-
     Gtk = this;
 
     Gtk.children = GObject.__gtkChildren__;
diff --git a/modules/script/tweener/tweener.js b/modules/script/tweener/tweener.js
index 9cbc6ac5..cd513aaf 100644
--- a/modules/script/tweener/tweener.js
+++ b/modules/script/tweener/tweener.js
@@ -311,7 +311,6 @@ function _updateTweenByIndex(i) {
 
             _callOnFunction(tweening.onUpdate, 'onUpdate', tweening.onUpdateScope,
                 scope, tweening.onUpdateParams);
-
         } else {
             tweening.updatesSkipped++;
         }
@@ -624,7 +623,6 @@ function removeTweensByTime(scope, properties, timeStart, timeComplete) {
             scope == _tweenList[i].scope &&
             timeComplete > _tweenList[i].timeStart &&
             timeStart < _tweenList[i].timeComplete) {
-
             for (name in _tweenList[i].properties) {
                 if (properties[name]) {
                     if (!removedLocally) {


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