The mocha-eslint package has not been updated in over a year, and appears abandoned. It requires an outdated eslint version (^4.2.0) that conflicts with the version required for eslint-config-wikimedia (^5.9.0). It should be removed from all node services.
eslint-config-node-services has been deprecated as well, so it should be replaced with eslint-config-wikimedia with service-specific overrides. See gerritbot comments on the ticket in parent task for examples.
If you haven't already, follow the directions in https://www.mediawiki.org/wiki/Gerrit/Tutorial to get started with gerrit.
- Install canvas dependencies as described at https://www.npmjs.com/package/canvas
- For Ubuntu, that's sudo apt-get install libcairo2-dev libjpeg8-dev libpango1.0-dev libgif-dev build-essential g++
- Clone repo at https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/services/graphoid
- npm install
- npm start