Bug 1366720 - ESLint simpletest and places-overlay environments don't export globals correctly when used outside of mozilla-central. r=mossop

MozReview-Commit-ID: 1Qj63qwjHoo

--HG--
extra : rebase_source : c403ef765a1c0e0a9836270aca69089c6a42f1d4
This commit is contained in:
Mark Banner 2017-05-22 11:25:08 +01:00
parent a796d14d49
commit 1e0b8c246f
3 changed files with 3 additions and 3 deletions

View File

@ -76,5 +76,5 @@ function mapGlobals(fileGlobals) {
module.exports = {
globals: helpers.isMozillaCentralBased() ?
mapGlobals(getScriptGlobals()) :
helpers.getSavedEnvironmentItems("places-overlay")
helpers.getSavedEnvironmentItems("places-overlay").globals
};

View File

@ -53,5 +53,5 @@ function mapGlobals(fileGlobals) {
module.exports = {
globals: helpers.isMozillaCentralBased() ?
mapGlobals(getScriptGlobals()) :
helpers.getSavedEnvironmentItems("simpletest")
helpers.getSavedEnvironmentItems("simpletest").globals
};

View File

@ -1,6 +1,6 @@
{
"name": "eslint-plugin-mozilla",
"version": "0.3.1",
"version": "0.3.2",
"description": "A collection of rules that help enforce JavaScript coding standard in the Mozilla project.",
"keywords": [
"eslint",