Wikimedia

Replace use of jsonlint with eslint in a MediaWiki extension (IV)

jsonlint is being phased out of Wikimedia's Continuous Integration (CI) linting) process. It is replaced with eslint, which we are using for JavaScript linting already.

Note that some code areas have not yet been updated to eslint – if you want to tackle them, there is another task which you should do first.

  • Choose one Wikimedia extension from the list in https://phabricator.wikimedia.org/T220036
  • Add a comment here on the GCI task which extension you have chosen
  • Check out the code of the extension from Git
  • You'll need to remove any references to jsonlint, update the dependencies in the file package.json for eslint and eslint-config-wikimedia, configure it to run in Gruntfile.js, and then fix any failures.
  • Upload your tested patch to Wikimedia Gerrit for review.
  • Once your patch is merged, feel very welcome to edit https://phabricator.wikimedia.org/T220036 by crossing out that extension in the list.

Examples to base your change on

Task tags

  • json
  • grunt
  • eslint
  • continuous integration

Students who completed this task

taavi

Task type

  • code Code
  • done_all Quality Assurance
close

2019