build: Update linters

Change-Id: Idaed1bf627d8d92968b422ad428acd29a179d94a
This commit is contained in:
Ed Sanders 2023-12-18 17:09:44 +00:00
parent bf0ba2f20c
commit 1528c7740f
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"
}
}