Merge "build: Update linters"

This commit is contained in:
jenkins-bot 2023-09-27 15:45:05 +00:00 committed by Gerrit Code Review
commit d50d3edaa8
9 changed files with 1237 additions and 719 deletions

View file

@ -1,3 +1,2 @@
/tests/phpunit/unit/TexVC/TexUtilMMLLookup.json
/tests/phpunit/unit/TexVC/tex-2-mml.json
/tests/phpunit/unit/TexVC/ParserTest135.json
/vendor/
/tests/phpunit/unit/TexVC/

View file

@ -1,17 +1,9 @@
{
"root": true,
"extends": [
"wikimedia/server",
"wikimedia/language/es2018"
"wikimedia/server"
],
"env": {
"mocha": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 9
},
"rules": {
"es-x/no-hashbang": "warn"
"mocha": true
}
}

View file

@ -1,3 +1,9 @@
{
"extends": "stylelint-config-wikimedia"
"extends": [
"stylelint-config-wikimedia/support-modern",
"stylelint-config-wikimedia/mediawiki"
],
"rules": {
"selector-class-pattern": null
}
}

View file

@ -29,10 +29,7 @@ module.exports = function ( grunt ) {
cache: true,
fix: grunt.option( 'fix' )
},
all: [
'**/*.{js,json}',
'!{vendor,node_modules,modules/ve-math/tools/node_modules,tests/phpunit/unit/TexVC}/**'
]
all: [ '.' ]
}
} );

View file

@ -2,4 +2,4 @@
"globals": {
"ve": "readonly"
}
}
}

View file

@ -4,7 +4,6 @@
"wikimedia/server"
],
"rules": {
"max-len": "off",
"es-x/no-hashbang": "warn"
"max-len": "off"
}
}
}

View file

@ -1,5 +1,4 @@
#!/usr/bin/env node
'use strict';
/* 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
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();
let cssData;
try {
// eslint-disable-next-line security/detect-non-literal-fs-filename
cssData = fs.readFileSync( cssFile ).toString();
} catch ( e ) {}

1906
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -6,7 +6,7 @@
"selenium-daily": "npm run selenium-test",
"selenium-test": "wdio tests/selenium/wdio.conf.js",
"api-testing": "mocha tests/api-testing",
"build": " ./maintenance/buildPHPparser.js"
"build": "./maintenance/buildPHPparser.js"
},
"devDependencies": {
"@wdio/cli": "7.16.13",
@ -17,16 +17,16 @@
"@wdio/spec-reporter": "7.16.13",
"api-testing": "1.6.0",
"commander": "^9.4.1",
"eslint-config-wikimedia": "0.25.0",
"eslint-config-wikimedia": "0.25.1",
"grunt": "1.6.1",
"grunt-banana-checker": "0.11.0",
"grunt-contrib-watch": "1.1.0",
"grunt-eslint": "24.0.1",
"grunt-stylelint": "0.18.0",
"grunt-eslint": "24.3.0",
"grunt-stylelint": "0.19.0",
"mocha": "^7.1.1",
"peggy": "1.0.0",
"phpeggy": "^1.0.1",
"stylelint-config-wikimedia": "0.15.0",
"stylelint-config-wikimedia": "0.16.1",
"wdio-mediawiki": "2.1.0"
}
}