From f03a32f6f828a00b7fe01bc1b93c42de87948026 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Sun, 4 Feb 2018 22:10:26 +0000 Subject: [PATCH] build: Update linters Change-Id: Iec64688e03c6efe81e3f5e4e5809290a1789bcd0 --- modules/ext.scribunto.edit.css | 4 ++-- modules/ext.scribunto.edit.js | 4 ++-- package.json | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/ext.scribunto.edit.css b/modules/ext.scribunto.edit.css index 7384ab91..295fa390 100644 --- a/modules/ext.scribunto.edit.css +++ b/modules/ext.scribunto.edit.css @@ -4,13 +4,13 @@ } /* Preserve line breaks, but wrap too if browser supports it */ -/* stylelint-disable-next-line selector-no-id */ +/* stylelint-disable-next-line selector-max-id */ #mw-scribunto-output { white-space: pre; white-space: pre-wrap; } -/* stylelint-disable-next-line selector-no-id */ +/* stylelint-disable-next-line selector-max-id */ #mw-scribunto-input { width: 100%; border: 0; diff --git a/modules/ext.scribunto.edit.js b/modules/ext.scribunto.edit.js index 71eec201..ff533899 100644 --- a/modules/ext.scribunto.edit.js +++ b/modules/ext.scribunto.edit.js @@ -299,8 +299,8 @@ if ( result.print !== '' ) { println( result.print, 'mw-scribunto-print' ); } - if ( result[ 'return' ] !== '' ) { - println( result[ 'return' ], 'mw-scribunto-normalOutput' ); + if ( result.return !== '' ) { + println( result.return, 'mw-scribunto-normalOutput' ); } } clearPending(); diff --git a/package.json b/package.json index eb10f3d0..3dcc2ca6 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "test": "grunt test" }, "devDependencies": { - "eslint-config-wikimedia": "0.4.0", + "eslint-config-wikimedia": "0.5.0", "grunt": "1.0.1", "grunt-banana-checker": "0.6.0", - "grunt-eslint": "19.0.0", + "grunt-eslint": "20.1.0", "grunt-jsonlint": "1.1.0", - "grunt-stylelint": "0.7.0", - "stylelint": "7.8.0", - "stylelint-config-wikimedia": "0.4.1" + "grunt-stylelint": "0.9.0", + "stylelint": "8.2.0", + "stylelint-config-wikimedia": "0.4.2" } }