We've had a few reports of issues when running ESLint in
mozilla-central. The have tended to be along the lines of:
Could not load globals from file.... browser.js: Error: Invalid ecmaVersion.
If you get this, please check if you have a
<topsrcdir>/tools/lint/eslint/node_modules/ directory, if so:
- remove the directory
- remove <topsrcdir>/node_modules/ as well.
- finally, run ./mach eslint --setup
You should then be able to run ESLint again.
(We believe this is a hang over from one of the early configurations we
had in the tree that is now causing conflicts somehow).
Mark.
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform