Skip to content

JSHint errors #19

@reedy

Description

@reedy

After including jquery-migrate into MediaWiki, our lint tests got a bit upset over jquery-migrate....

A lot of it is noise [1] at our end (though, a couple might be ok), but running it through the JSHint site, there seems to be a few actual errors:

/*jshint forin:true, noarg:true, noempty:true, eqeqeq:true, bitwise:true, strict:true, undef:true, unused:true, curly:true, browser:true, devel:true, jquery:true, indent:4, maxerr:50 */

Errors:
Line 339: for ( i = 0; (elem = ret[i]) != null; i++ ) {
Expected '!==' and instead saw '!='.
Line 370: if ( typeof( events ) != "string" || jQuery.event.special.hover ) {
Expected '!==' and instead saw '!='.
Line 465: if ( !elem & !rajaxEvent.test( event ) ) {
Unexpected use of '&'.

[1] https://integration.mediawiki.org/ci/job/mediawiki-core-lint/6407/console

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions