Wikimedia
Replace use of jshint and jscs with eslint in a MediaWiki extension (IV)
jshint
and jscs
have been slowly removed from Wikimedia's Continuous Integration (CI) linting) process. They get replaced with eslint
, which handles both static analysis and code style.
- Choose one Wikimedia extension from the list in https://phabricator.wikimedia.org/T210365
- Add a comment here on the GCI task which extension you have chosen
- Check out the code of the extension from Git
- Remove any references to
jshint
/jscs
, update the dependencies in the filepackage.json
foreslint
andeslint-config-wikimedia
, configure it to run inGruntfile.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/T210365 by crossing out that extension in the list.
Examples to base your change on
- You should use the config that's currently on our coding standards page.
- Here's an example conversion.
- The BoilerPlate example extension also has package.json, .eslintrc.json, and Gruntfile.js files.
Task tags
Students who completed this task
taavi