[gjs: 13/43] CI: Add eol-last to eslint rules
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 13/43] CI: Add eol-last to eslint rules
- Date: Wed, 14 Aug 2019 17:28:09 +0000 (UTC)
commit 9d5d41998dee7730708c77dc8920f4fc41154bba
Author: Philip Chimento <philip chimento gmail com>
Date: Sat Aug 3 18:02:58 2019 -0700
CI: Add eol-last to eslint rules
Git in its default configuration will complain about this anyway, so we
may as well have it in eslint.
.eslintrc.yml | 1 +
installed-tests/debugger/keys.debugger.js | 2 +-
installed-tests/js/testExceptions.js | 2 +-
modules/_legacy.js | 2 +-
4 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/.eslintrc.yml b/.eslintrc.yml
index 6663797d..99c4628b 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -34,6 +34,7 @@ rules:
dot-location:
- error
- property
+ eol-last: error
indent:
- error
- 4
diff --git a/installed-tests/debugger/keys.debugger.js b/installed-tests/debugger/keys.debugger.js
index 09c1e46f..e5f57b16 100644
--- a/installed-tests/debugger/keys.debugger.js
+++ b/installed-tests/debugger/keys.debugger.js
@@ -4,4 +4,4 @@ const a = {
tres: undefined,
};
debugger;
-void a;
\ No newline at end of file
+void a;
diff --git a/installed-tests/js/testExceptions.js b/installed-tests/js/testExceptions.js
index eed96c5a..e8d6af69 100644
--- a/installed-tests/js/testExceptions.js
+++ b/installed-tests/js/testExceptions.js
@@ -164,4 +164,4 @@ describe('Exception from function with too few arguments', function () {
let file = Gio.File.new_for_path('foo');
expect(() => file.read()).toThrowError(/Gio\.File\.read/);
});
-});
\ No newline at end of file
+});
diff --git a/modules/_legacy.js b/modules/_legacy.js
index cad91377..263aa1e5 100644
--- a/modules/_legacy.js
+++ b/modules/_legacy.js
@@ -712,4 +712,4 @@ function defineGtkLegacyObjects(GObject, Gtk) {
});
return {GtkWidgetClass};
-}
\ No newline at end of file
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]