mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-24 07:34:22 +00:00
Update eslint-config-wikimedia to 0.9.0
Change-Id: I4c7dcb1b3cd3d03e3ea3d1e17bfcf63f3b553e50
This commit is contained in:
parent
8d2a586c36
commit
5f7f535c28
|
@ -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": {
|
||||||
|
|
9
modules/ve-math/tools/.eslintrc.json
Normal file
9
modules/ve-math/tools/.eslintrc.json
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"root": true,
|
||||||
|
"extends": [
|
||||||
|
"wikimedia/server"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"max-len": 0
|
||||||
|
}
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue