From 5f7f535c283c4e21698a21fad8a1e1f72e82a50b Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Tue, 27 Nov 2018 19:12:19 +0000 Subject: [PATCH] Update eslint-config-wikimedia to 0.9.0 Change-Id: I4c7dcb1b3cd3d03e3ea3d1e17bfcf63f3b553e50 --- .eslintrc.json | 9 ++++----- modules/ve-math/tools/.eslintrc.json | 9 +++++++++ modules/ve-math/tools/makeSvgsAndCss.js | 3 +-- package.json | 2 +- tests/selenium/.eslintrc.json | 11 ++++++----- 5 files changed, 21 insertions(+), 13 deletions(-) create mode 100644 modules/ve-math/tools/.eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json index 3cff88ce9..621881b20 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,11 +1,10 @@ { - "extends": "wikimedia", - "env": { - "browser": true - }, + "extends": [ + "wikimedia/client", + "wikimedia/jquery" + ], "globals": { "mw": true, - "$": false, "OO": false }, "rules": { diff --git a/modules/ve-math/tools/.eslintrc.json b/modules/ve-math/tools/.eslintrc.json new file mode 100644 index 000000000..4d28df1aa --- /dev/null +++ b/modules/ve-math/tools/.eslintrc.json @@ -0,0 +1,9 @@ +{ + "root": true, + "extends": [ + "wikimedia/server" + ], + "rules": { + "max-len": 0 + } +} \ No newline at end of file diff --git a/modules/ve-math/tools/makeSvgsAndCss.js b/modules/ve-math/tools/makeSvgsAndCss.js index a75e32dd9..c09968d98 100755 --- a/modules/ve-math/tools/makeSvgsAndCss.js +++ b/modules/ve-math/tools/makeSvgsAndCss.js @@ -1,6 +1,5 @@ #!/usr/bin/env node -/* eslint-env node */ /* eslint-disable no-console, no-use-before-define */ ( function () { @@ -41,7 +40,7 @@ * The reverse of function would look like this, although we have no use for it yet: * * return className.replace( /_([0-9]+)_/g, function () { - * return String.fromCharCode( +arguments[ 1 ] ); + * return String.fromCharCode( +arguments[ 1 ] ); * } ); * * @param {string} tex TeX input diff --git a/package.json b/package.json index 7e93d1778..26ceec1bd 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "selenium-test": "wdio tests/selenium/wdio.conf.js" }, "devDependencies": { - "eslint-config-wikimedia": "0.8.1", + "eslint-config-wikimedia": "0.9.0", "grunt": "1.0.3", "grunt-banana-checker": "0.6.0", "grunt-contrib-watch": "1.1.0", diff --git a/tests/selenium/.eslintrc.json b/tests/selenium/.eslintrc.json index 25f23df75..38cd062a9 100644 --- a/tests/selenium/.eslintrc.json +++ b/tests/selenium/.eslintrc.json @@ -1,14 +1,15 @@ { + "root": true, + "extends": [ + "wikimedia/server" + ], "env": { - "es6": true, - "mocha": true, - "node": true, - "browser": false + "mocha": true }, "globals": { "browser": false }, - "rules":{ + "rules": { "no-console": 0 } }