Update eslint-config-wikimedia to 0.9.0

Change-Id: I4c7dcb1b3cd3d03e3ea3d1e17bfcf63f3b553e50
This commit is contained in:
Ed Sanders 2018-11-27 19:12:19 +00:00 committed by Physikerwelt
parent 8d2a586c36
commit 5f7f535c28
5 changed files with 21 additions and 13 deletions

View file

@ -1,11 +1,10 @@
{ {
"extends": "wikimedia", "extends": [
"env": { "wikimedia/client",
"browser": true "wikimedia/jquery"
}, ],
"globals": { "globals": {
"mw": true, "mw": true,
"$": false,
"OO": false "OO": false
}, },
"rules": { "rules": {

View file

@ -0,0 +1,9 @@
{
"root": true,
"extends": [
"wikimedia/server"
],
"rules": {
"max-len": 0
}
}

View file

@ -1,6 +1,5 @@
#!/usr/bin/env node #!/usr/bin/env node
/* eslint-env node */
/* eslint-disable no-console, no-use-before-define */ /* eslint-disable no-console, no-use-before-define */
( function () { ( function () {
@ -41,7 +40,7 @@
* The reverse of function would look like this, although we have no use for it yet: * The reverse of function would look like this, although we have no use for it yet:
* *
* return className.replace( /_([0-9]+)_/g, function () { * return className.replace( /_([0-9]+)_/g, function () {
* return String.fromCharCode( +arguments[ 1 ] ); * return String.fromCharCode( +arguments[ 1 ] );
* } ); * } );
* *
* @param {string} tex TeX input * @param {string} tex TeX input

View file

@ -6,7 +6,7 @@
"selenium-test": "wdio tests/selenium/wdio.conf.js" "selenium-test": "wdio tests/selenium/wdio.conf.js"
}, },
"devDependencies": { "devDependencies": {
"eslint-config-wikimedia": "0.8.1", "eslint-config-wikimedia": "0.9.0",
"grunt": "1.0.3", "grunt": "1.0.3",
"grunt-banana-checker": "0.6.0", "grunt-banana-checker": "0.6.0",
"grunt-contrib-watch": "1.1.0", "grunt-contrib-watch": "1.1.0",

View file

@ -1,14 +1,15 @@
{ {
"root": true,
"extends": [
"wikimedia/server"
],
"env": { "env": {
"es6": true, "mocha": true
"mocha": true,
"node": true,
"browser": false
}, },
"globals": { "globals": {
"browser": false "browser": false
}, },
"rules":{ "rules": {
"no-console": 0 "no-console": 0
} }
} }