Page MenuHomePhabricator

Add return tag to $.fn.confirmable()
Open, Needs TriagePublic

Description

To clear an ESLint warning, add a @return annotation to the $.fn.confirmable() jQuery plugin.

Docs: https://doc.wikimedia.org/mediawiki-core/master/js/module-jquery.confirmable.html#.$.fn.confirmable
Code: https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/master/resources/src/jquery/jquery.confirmable.js#53

To confirm that the warning is cleared, run npm install grunt and grunt lint, and ensure that no JSDoc warnings are reported for that file.

Related Objects