Wikimedia

Replace usage of jshint and/or jscs with eslint in MediaWiki extension CollaborationKit

jshint and jscs have been phased out (should get slowly removed) of Wikimedia's Continuous integration (CI) linting process. We want to use eslint instead, which handles both static analysis and code style. That requires many MediaWiki extensions to be converted to eslint.

This task is about converting the extension mediawiki/extensions/CollaborationKit.

Here is an example conversion. You should use the config that's currently on https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#Linting.

You'll need to remove any references to jshint/jscs, update the dependencies in the file package.json for eslint, configure it to run in Gruntfile.js, and then fix any failures.

You are expected to provide a patch in Wikimedia Gerrit. See https://www.mediawiki.org/wiki/Gerrit/Tutorial for how to set up Git and Gerrit.

Once your patch in Gerrit has received a +1, please edit the task description in Phabricator (our task tracking software) and check off the extension that you worked on by editing the corresponding checkbox. Thanks! :)

Task tags

  • javascript
  • eslint
  • linting

Students who completed this task

Zoran Dori

Task type

  • code Code
  • done_all Quality Assurance
close

2018