[gnome-maps/wip/mattiasb/eslint2: 3/5] Lint: Allow all GJS default globals
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mattiasb/eslint2: 3/5] Lint: Allow all GJS default globals
- Date: Sun, 31 Jan 2016 21:39:04 +0000 (UTC)
commit 510fc5d5218d19b9884af646ebc90d72bdc2d649
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Sun Jan 31 21:12:32 2016 +0100
Lint: Allow all GJS default globals
The ESLint recommended rules will complain about access to global
variables that it doesn't know about. This is good, but ESLint
doesn't yet know about the GJS environment.
There is a PR (https://github.com/sindresorhus/globals/pull/73) for the
globals project on Github (which ESLint uses) to add the GJS environment
and all its global variables.
Until the above mentioned PR is merged, explicitly allow all default
GJS global variables.
.eslintrc.yaml | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
index c880a82..138ea1d 100644
--- a/.eslintrc.yaml
+++ b/.eslintrc.yaml
@@ -3,3 +3,21 @@ root: true
env:
es6: true
+
+globals:
+ # Needed until https://github.com/sindresorhus/globals/pull/73 is applied
+ imports: false
+ log: false
+ InternalError: false
+ uneval: false
+ Iterator: false
+ StopIteration: false
+ Debugger: false
+ window: false
+ log: false
+ logError: false
+ print: false
+ printerr: false
+ GjsFileImporter: false
+ imports: false
+ ARGV: false
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]