[gnome-maps/wip/mattiasb/eslint2: 5/5] Lint: Allow unused variables
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mattiasb/eslint2: 5/5] Lint: Allow unused variables
- Date: Sun, 31 Jan 2016 21:39:14 +0000 (UTC)
commit 65605b1ed19d5f43439b1ad3dd641a3a7b14ea27
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Sun Jan 31 21:53:32 2016 +0100
Lint: Allow unused variables
The ESLint recommended rules includes spitting errors on unused
variables. While this makes sense in all other environments, in GJS
the way to export a function or variable is to just define it in
the top-level scope. So let's not do any errors on this.
.eslintrc.yaml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index f14f1ca..f69d5a6 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -25,3 +25,9 @@ globals:
## Not defined in ESLint
pkg: false
_: false
+
+rules:
+ no-unused-vars:
+ - 0
+
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]