Skip to content

Commit

Permalink
Lint: Allow all GJS default globals
Browse files Browse the repository at this point in the history
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 (sindresorhus/globals#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.
  • Loading branch information
mattiasb committed Jan 31, 2016
1 parent d07dea9 commit 510fc5d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .eslintrc.yaml
Expand Up @@ -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

0 comments on commit 510fc5d

Please sign in to comment.