Merge "build: Update linters"

This commit is contained in:
jenkins-bot 2023-12-23 08:20:11 +00:00 committed by Gerrit Code Review
commit f391e4768c
8 changed files with 2224 additions and 1048 deletions

11
.eslintignore Normal file
View file

@ -0,0 +1,11 @@
# Upstream code
/modules/ace/
# Build
/vendor/
/docs/
# Language files written automatically by TranslateWiki
**/i18n/**/*.json
!**/i18n/**/en.json
!**/i18n/**/qqq.json

View file

@ -1,5 +1,8 @@
{
"extends": "stylelint-config-wikimedia",
"extends": [
"stylelint-config-wikimedia/support-modern",
"stylelint-config-wikimedia/mediawiki"
],
"rules": {
"declaration-property-unit-disallowed-list": null
}

View file

@ -21,11 +21,7 @@ module.exports = function ( grunt ) {
cache: true,
fix: grunt.option( 'fix' )
},
all: [
'**/*.{js,json}',
'!modules/ace/**',
'!{vendor,node_modules}/**'
]
all: [ '.' ]
},
stylelint: {
all: [

View file

@ -1,5 +1,7 @@
/* Ace Editor customizations */
/* stylelint-disable selector-class-pattern */
// T271956
.ace_gutter-cell {
color: #72777d;

View file

@ -38,7 +38,9 @@
textSelectionFn,
hasErrorsOnSave = false,
selectedLine = 0,
returnFalse = function () { return false; },
returnFalse = function () {
return false;
},
api = new mw.Api();
// Initialize state
@ -413,10 +415,12 @@
} );
// Use jQuery UI resizable() so that users can make the box taller
// eslint-disable-next-line es-x/no-resizable-and-growable-arraybuffers
container.resizable( {
handles: 's',
minHeight: $box.height(),
resize: function () {
// eslint-disable-next-line es-x/no-resizable-and-growable-arraybuffers
context.codeEditor.resize();
}
} );

View file

@ -1,5 +1,7 @@
@import 'mediawiki.mixins';
/* stylelint-disable selector-class-pattern */
.group-codeeditor-format,
.group-codeeditor-style,
.codeEditor-ui-toolbar .group-insert,

3228
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -8,14 +8,14 @@
},
"devDependencies": {
"ace-builds": "1.15.2",
"eslint-config-wikimedia": "0.25.0",
"eslint-config-wikimedia": "0.26.0",
"grunt": "1.6.1",
"grunt-banana-checker": "0.11.0",
"grunt-contrib-clean": "2.0.0",
"grunt-banana-checker": "0.11.1",
"grunt-contrib-clean": "2.0.1",
"grunt-contrib-copy": "1.0.0",
"grunt-eslint": "24.0.1",
"grunt-eslint": "24.3.0",
"grunt-exec": "3.0.0",
"grunt-stylelint": "0.18.0",
"stylelint-config-wikimedia": "0.15.0"
"grunt-stylelint": "0.19.0",
"stylelint-config-wikimedia": "0.16.1"
}
}