Skip to content

Instantly share code, notes, and snippets.

@bobsilverberg
Created February 27, 2018 17:24
Show Gist options
  • Save bobsilverberg/de801ed0a51c10f944b04f5373e1aaf8 to your computer and use it in GitHub Desktop.
Save bobsilverberg/de801ed0a51c10f944b04f5373e1aaf8 to your computer and use it in GitHub Desktop.
An error occurred running eslint. Please check the following error messages:
Could not load globals from file /Users/bsilverberg/mozilla-central/browser/base/content/browser.js: Error: Invalid ecmaVersion.
You may need to update the mappings in /Users/bsilverberg/mozilla-central/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/browser-window.js
Could not load globals from file /Users/bsilverberg/mozilla-central/browser/base/content/browser.js: Error: Invalid ecmaVersion.
Error: Could not load globals from file /Users/bsilverberg/mozilla-central/browser/base/content/browser.js: Error: Invalid ecmaVersion.
at getScriptGlobals (/Users/bsilverberg/mozilla-central/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/browser-window.js:102:13)
at getMozillaCentralItems (/Users/bsilverberg/mozilla-central/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/browser-window.js:121:25)
at Object.<anonymous> (/Users/bsilverberg/mozilla-central/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/browser-window.js:127:2)
at Module._compile (module.js:643:30)
at Object.Module._extensions..js (module.js:654:10)
at Module.load (module.js:556:32)
at tryModuleLoad (module.js:499:12)
at Function.Module._load (module.js:491:3)
at Module.require (module.js:587:17)
at require (internal/module.js:11:18)
A failure occurred in the eslint linter.
✖ 1 problem (0 errors, 0 warnings, 1 failure)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment