From 052c68f6397b817edeb4a5676aeb18c947af128e Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Fri, 23 Nov 2018 15:50:29 +0000 Subject: [PATCH] build: Update eslint-config-wikimedia to 0.9.0 Change-Id: Ia31860b5fcf43ec512fb82c2c332ac08cbf12cf1 --- .eslintrc.json | 9 ++++----- modules/ext.abuseFilter.edit.js | 2 +- package.json | 3 +-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 3606d1225..e8c5bc83b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,11 +1,10 @@ { - "extends": "wikimedia", - "env": { - "browser": true - }, + "extends": [ + "wikimedia/client", + "wikimedia/jquery" + ], "globals": { "mw": false, - "$": false, "OO": false } } diff --git a/modules/ext.abuseFilter.edit.js b/modules/ext.abuseFilter.edit.js index fa7212919..e8e2b931c 100644 --- a/modules/ext.abuseFilter.edit.js +++ b/modules/ext.abuseFilter.edit.js @@ -178,7 +178,7 @@ * @param {jQuery.Event} e The event fired when the function is called */ function fetchFilter() { - var filterId = $.trim( $( '#mw-abusefilter-load-filter input' ).val() ), + var filterId = $( '#mw-abusefilter-load-filter input' ).val().trim(), api; if ( filterId === '' ) { diff --git a/package.json b/package.json index 5a032d8e5..2ea6b1a89 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,7 @@ "test": "grunt test" }, "devDependencies": { - "eslint-config-wikimedia": "0.8.1", - "eslint-plugin-qunit": "3.3.1", + "eslint-config-wikimedia": "0.9.0", "grunt": "1.0.3", "grunt-banana-checker": "0.6.0", "grunt-eslint": "21.0.0",