mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-28 01:10:09 +00:00
Merge "build: Update linters"
This commit is contained in:
commit
d50d3edaa8
|
@ -1,3 +1,2 @@
|
||||||
/tests/phpunit/unit/TexVC/TexUtilMMLLookup.json
|
/vendor/
|
||||||
/tests/phpunit/unit/TexVC/tex-2-mml.json
|
/tests/phpunit/unit/TexVC/
|
||||||
/tests/phpunit/unit/TexVC/ParserTest135.json
|
|
||||||
|
|
|
@ -1,17 +1,9 @@
|
||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"extends": [
|
"extends": [
|
||||||
"wikimedia/server",
|
"wikimedia/server"
|
||||||
"wikimedia/language/es2018"
|
|
||||||
],
|
],
|
||||||
"env": {
|
"env": {
|
||||||
"mocha": true,
|
"mocha": true
|
||||||
"es6": true
|
|
||||||
},
|
|
||||||
"parserOptions": {
|
|
||||||
"ecmaVersion": 9
|
|
||||||
},
|
|
||||||
"rules": {
|
|
||||||
"es-x/no-hashbang": "warn"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
{
|
{
|
||||||
"extends": "stylelint-config-wikimedia"
|
"extends": [
|
||||||
|
"stylelint-config-wikimedia/support-modern",
|
||||||
|
"stylelint-config-wikimedia/mediawiki"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"selector-class-pattern": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,10 +29,7 @@ module.exports = function ( grunt ) {
|
||||||
cache: true,
|
cache: true,
|
||||||
fix: grunt.option( 'fix' )
|
fix: grunt.option( 'fix' )
|
||||||
},
|
},
|
||||||
all: [
|
all: [ '.' ]
|
||||||
'**/*.{js,json}',
|
|
||||||
'!{vendor,node_modules,modules/ve-math/tools/node_modules,tests/phpunit/unit/TexVC}/**'
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
"wikimedia/server"
|
"wikimedia/server"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"max-len": "off",
|
"max-len": "off"
|
||||||
"es-x/no-hashbang": "warn"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,5 +1,4 @@
|
||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* eslint-disable no-use-before-define */
|
/* eslint-disable no-use-before-define */
|
||||||
|
@ -24,9 +23,11 @@ function generateCSS( symbolsFile, cssFile, inputType ) {
|
||||||
singleButtonHeight = 1.8, // Height of the single-height math dialog buttons in em
|
singleButtonHeight = 1.8, // Height of the single-height math dialog buttons in em
|
||||||
baseline = 0.65; // Proportion of the way down the button the baseline should be
|
baseline = 0.65; // Proportion of the way down the button the baseline should be
|
||||||
|
|
||||||
|
// eslint-disable-next-line security/detect-non-literal-fs-filename
|
||||||
const symbolsData = fs.readFileSync( symbolsFile ).toString();
|
const symbolsData = fs.readFileSync( symbolsFile ).toString();
|
||||||
let cssData;
|
let cssData;
|
||||||
try {
|
try {
|
||||||
|
// eslint-disable-next-line security/detect-non-literal-fs-filename
|
||||||
cssData = fs.readFileSync( cssFile ).toString();
|
cssData = fs.readFileSync( cssFile ).toString();
|
||||||
} catch ( e ) {}
|
} catch ( e ) {}
|
||||||
|
|
||||||
|
|
1900
package-lock.json
generated
1900
package-lock.json
generated
File diff suppressed because it is too large
Load diff
10
package.json
10
package.json
|
@ -6,7 +6,7 @@
|
||||||
"selenium-daily": "npm run selenium-test",
|
"selenium-daily": "npm run selenium-test",
|
||||||
"selenium-test": "wdio tests/selenium/wdio.conf.js",
|
"selenium-test": "wdio tests/selenium/wdio.conf.js",
|
||||||
"api-testing": "mocha tests/api-testing",
|
"api-testing": "mocha tests/api-testing",
|
||||||
"build": " ./maintenance/buildPHPparser.js"
|
"build": "./maintenance/buildPHPparser.js"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@wdio/cli": "7.16.13",
|
"@wdio/cli": "7.16.13",
|
||||||
|
@ -17,16 +17,16 @@
|
||||||
"@wdio/spec-reporter": "7.16.13",
|
"@wdio/spec-reporter": "7.16.13",
|
||||||
"api-testing": "1.6.0",
|
"api-testing": "1.6.0",
|
||||||
"commander": "^9.4.1",
|
"commander": "^9.4.1",
|
||||||
"eslint-config-wikimedia": "0.25.0",
|
"eslint-config-wikimedia": "0.25.1",
|
||||||
"grunt": "1.6.1",
|
"grunt": "1.6.1",
|
||||||
"grunt-banana-checker": "0.11.0",
|
"grunt-banana-checker": "0.11.0",
|
||||||
"grunt-contrib-watch": "1.1.0",
|
"grunt-contrib-watch": "1.1.0",
|
||||||
"grunt-eslint": "24.0.1",
|
"grunt-eslint": "24.3.0",
|
||||||
"grunt-stylelint": "0.18.0",
|
"grunt-stylelint": "0.19.0",
|
||||||
"mocha": "^7.1.1",
|
"mocha": "^7.1.1",
|
||||||
"peggy": "1.0.0",
|
"peggy": "1.0.0",
|
||||||
"phpeggy": "^1.0.1",
|
"phpeggy": "^1.0.1",
|
||||||
"stylelint-config-wikimedia": "0.15.0",
|
"stylelint-config-wikimedia": "0.16.1",
|
||||||
"wdio-mediawiki": "2.1.0"
|
"wdio-mediawiki": "2.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue