build: Update eslint-config-wikimedia to 0.22.1

Change-Id: I02692eeabb23c5b99997faa7a17d42f019148ed1
This commit is contained in:
Ed Sanders
2022-03-03 23:03:25 +00:00
committed by jenkins-bot
parent 03cf7863ec
commit 02e17c5242
12 changed files with 2201 additions and 1840 deletions

View File

@@ -1,6 +1,6 @@
{
"extends": [
"wikimedia/qunit",
"../../.eslintrc.json"
"../../resources/js/.eslintrc.json",
"wikimedia/qunit"
]
}

View File

@@ -23,7 +23,7 @@
QUnit.module( 'ext.uls', QUnit.newMwEnvironment() );
QUnit.test( 'Initial check', function ( assert ) {
assert.ok( $.fn.uls, '$.fn.uls is defined' );
assert.strictEqual( typeof $.fn.uls, 'function', '$.fn.uls is defined' );
} );
QUnit.test( 'Custom langdb', function ( assert ) {
@@ -60,7 +60,7 @@
done = assert.async();
prefs.save( function ( successSave ) {
assert.ok( successSave, 'Options saving API did not produce an error.' );
assert.true( successSave, 'Options saving API did not produce an error.' );
// Delete old options
prefs.set( prefName, undefined );
prefs.save( function () {
@@ -85,7 +85,7 @@
break;
}
}
assert.ok(
assert.true(
foundTagalog,
'Tagalog is one of the languages presented to users in the Philippines.'
);