build: Update linters

Change-Id: Ieb7a2999a7f75697cc866ff29ec9707bdc9618db
This commit is contained in:
Ed Sanders 2023-11-08 14:02:35 +00:00
parent 0430a5b97e
commit 3d23de9893
7 changed files with 611 additions and 244 deletions

1
.eslintignore Normal file
View file

@ -0,0 +1 @@
/vendor/

View file

@ -1,5 +1,8 @@
{
"extends": "stylelint-config-wikimedia",
"extends": [
"stylelint-config-wikimedia/support-basic",
"stylelint-config-wikimedia/mediawiki"
],
"rules": {
"selector-max-id": null
}

View file

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

View file

@ -591,7 +591,7 @@
"abusefilter-logentry-modify": "Parameters:\n* $1 - a link to a user page with a username as link text, followed by a series of related links\n* $2 - raw username, for GENDER support\n* $3 - (unused)\n* $4 - text {{msg-mw|abusefilter-log-detailedentry-local}} linked to the modified filter\n* $5 - text {{msg-mw|abusefilter-log-detailslink}} linked to the filter change details",
"abusefilter-log-invalid-filter": "Warning message shown above search results in the AbuseLog.",
"abusefilter-log-noresults": "{{Identical|No result}}",
"abusefilter-diff-title": "",
"abusefilter-diff-title": "Header for the diff view on [[Special:AbuseFilter/history]]",
"abusefilter-diff-item": "{{Identical|Item}}",
"abusefilter-diff-version": "Message is used in two scenarios.\n* $1 is a timestamp, which links to the old version or the new version.\n* $2 is a link to a username.\n* $3 is a raw username, which can be used for GENDER.",
"abusefilter-diff-info": "Header for the box containing the basic information about a user account, displayed on the 'user profile' tab of the [[Special:Preferences|user preferences]] special page.\n{{Identical|Basic information}}",

View file

@ -139,7 +139,7 @@ div.mw-abusefilter-editor {
#mw-abusefilter-edit-description-input,
#mw-abusefilter-edit-group-input {
width: 90%; /* Same as mw-abusefilter-editor */
max-width: unset; /* OOUI's default of 50em is too low for this field */
max-width: none; /* OOUI's default of 50em is too low for this field */
}
#mw-abusefilter-switcheditor {
@ -172,12 +172,12 @@ fieldset.mw-abusefilter-edit-buttons {
/* Name is in site content language */
/* @noflip */
.sitedir-ltr .TablePager_col_af_public_comments {
.sitedir-ltr .TablePager_col_af_public_comments { /* stylelint-disable-line selector-class-pattern */
direction: ltr;
}
/* @noflip */
.sitedir-rtl .TablePager_col_af_public_comments {
.sitedir-rtl .TablePager_col_af_public_comments { /* stylelint-disable-line selector-class-pattern */
direction: rtl;
}
@ -201,11 +201,11 @@ fieldset.mw-abusefilter-edit-buttons {
/* Ace highlight customisation */
span.ace_invalid.ace_deprecated {
span.ace_invalid.ace_deprecated { /* stylelint-disable-line selector-class-pattern */
color: #fe6767;
background-color: initial;
}
span.ace_support.ace_function {
span.ace_support.ace_function { /* stylelint-disable-line selector-class-pattern */
color: #495dd0;
}

821
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -13,12 +13,12 @@
"@wdio/local-runner": "7.30.2",
"@wdio/mocha-framework": "7.30.2",
"@wdio/spec-reporter": "7.30.2",
"eslint-config-wikimedia": "0.25.0",
"eslint-config-wikimedia": "0.25.1",
"grunt": "1.6.1",
"grunt-banana-checker": "0.11.0",
"grunt-eslint": "24.0.1",
"grunt-stylelint": "0.18.0",
"stylelint-config-wikimedia": "0.15.0",
"grunt-banana-checker": "0.11.1",
"grunt-eslint": "24.3.0",
"grunt-stylelint": "0.19.0",
"stylelint-config-wikimedia": "0.16.1",
"wdio-mediawiki": "2.1.0"
}
}