Page MenuHomePhabricator

Adjust eslint configuration to disallow .done() and .fail()
Closed, ResolvedPublic

Description

Configure PageTriage continuous integration to disallow .done( and .fail(

To prevent bugs such as the infamous AFD bug (T238025), and to comply with https://www.mediawiki.org/wiki/Manual:Coding_conventions/JavaScript#Asynchronous_code

We already factored all of these out of the codebase in T319448

File that needs to be modified is likely .eslintrc.json

https://stackoverflow.com/a/65205076/3480193 looks like one way to do it

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 867143 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/PageTriage@master] Add eslintrc rule to block .done/.fail usages

https://gerrit.wikimedia.org/r/867143

kostajh renamed this task from Configure CI to disallow .done() and .fail() to Adjust eslint configuration to disallow .done() and .fail().Dec 12 2022, 11:57 AM
kostajh claimed this task.
kostajh moved this task from Backlog to Code Review on the PageTriage board.
Novem_Linguae moved this task from Code Review to Done on the PageTriage board.

Change 867143 merged by jenkins-bot:

[mediawiki/extensions/PageTriage@master] Add eslintrc rule to block .done/.fail usages

https://gerrit.wikimedia.org/r/867143