Started from scratch with my patch.
- Ran git clone ssh://ephemeralwaves@gerrit.wikimedia.org:29418/mediawiki/extensions/Echo.git
- Added smoke.js file and updated echo.page.js
- Ran npm test and it showed formatting errors
- Ran npx eslint --fix . which fixed the stated errors
- Pushed to Gerrit
- eslint in Gerrit/Jenkins fails.
Tried removing spaces to 'break' formatting and ran npm test, and it catches those formatting issues. Are the rules different on gerrit?
Also of note:
When I run eslint .
I get the following error:
Error: Cannot find module 'eslint-config-wikimedia/jquery' Referenced from: /home/ephemeral/Programs/Echo/.eslintrc.json at ModuleResolver.resolve (/usr/lib/node_modules/eslint/lib/util/module-resolver.js:72:19) at resolve (/usr/lib/node_modules/eslint/lib/config/config-file.js:484:28) at load (/usr/lib/node_modules/eslint/lib/config/config-file.js:556:26) at configExtends.reduceRight (/usr/lib/node_modules/eslint/lib/config/config-file.js:430:36) at Array.reduceRight (<anonymous>) at applyExtends (/usr/lib/node_modules/eslint/lib/config/config-file.js:408:26) at loadFromDisk (/usr/lib/node_modules/eslint/lib/config/config-file.js:528:22) at Object.load (/usr/lib/node_modules/eslint/lib/config/config-file.js:564:20) at Config.getLocalConfigHierarchy (/usr/lib/node_modules/eslint/lib/config.js:240:44) at Config.getConfigHierarchy (/usr/lib/node_modules/eslint/lib/config.js:192:43)