build: Update linters

Change-Id: Idff91da3e6a490bbd31b39651f35544e9cb3fd9c
This commit is contained in:
Ed Sanders 2023-08-23 18:46:49 +01:00
parent a412ceffeb
commit 1177320e3c
9 changed files with 858 additions and 573 deletions

1403
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -28,9 +28,9 @@
"@wikimedia/codex-search": "0.11.0",
"@wikimedia/mw-node-qunit": "7.1.0",
"@wikimedia/types-wikimedia": "0.4.1",
"eslint-config-wikimedia": "0.25.0",
"eslint-config-wikimedia": "0.25.1",
"eslint-plugin-no-jquery": "2.7.0",
"grunt-banana-checker": "0.10.0",
"grunt-banana-checker": "0.11.0",
"jest": "27.4.7",
"jest-fetch-mock": "3.0.3",
"mustache": "3.0.1",
@ -40,7 +40,7 @@
"oojs-ui": "0.46.3",
"postcss-less": "6.0.0",
"pre-commit": "1.2.2",
"stylelint-config-wikimedia": "0.14.0",
"stylelint-config-wikimedia": "0.16.1",
"svgo": "3.0.2",
"ts-jest": "27.1.3",
"typescript": "4.5.5",

View file

@ -31,10 +31,8 @@
// Undo the proprietary styles, we provide our own.
// Support: Safari/iOS `none` needed, Chrome would accept `textfield` as well. See T247299.
// stylelint-disable-next-line plugin/no-unsupported-browser-features
-webkit-appearance: none;
// Support: Firefox.
// stylelint-disable-next-line plugin/no-unsupported-browser-features
-moz-appearance: textfield;
.vector-search-box-inner:hover & {

View file

@ -43,7 +43,6 @@
.vector-dropdown-checkbox:active + .vector-dropdown-label {
&.cdx-button--action-progressive.cdx-button--weight-quiet {
.vector-icon {
// stylelint-disable-next-line plugin/no-unsupported-browser-features
filter: brightness( 0 ) invert( 1 );
}

View file

@ -12,7 +12,6 @@
contain: paint;
.vector-page-tools-landmark {
// stylelint-disable-next-line plugin/no-unsupported-browser-features
position: sticky;
top: 0;
margin-top: @margin-top-pinned-page-tools;

View file

@ -11,7 +11,9 @@
display: grid;
column-gap: @grid-column-gap;
grid-template: ~'min-content min-content 1fr min-content / @{grid-template-column-desktop}';
grid-template-areas: 'siteNotice siteNotice'
// stylelint-disable-next-line stylistic/declaration-colon-space-after
grid-template-areas:
'siteNotice siteNotice'
'mainMenu pageContent'
'toc pageContent'
'footer footer';
@ -97,7 +99,9 @@
* the Content Translation extension and should not be used beyond that.
* FIXME: This can be removed when T322740 is resolved.
*/
grid-template-areas: 'titlebar-cx .'
// stylelint-disable-next-line stylistic/declaration-colon-space-after
grid-template-areas:
'titlebar-cx .'
'titlebar columnEnd'
'toolbar columnEnd'
'content columnEnd';

View file

@ -21,7 +21,6 @@
}
#vector-toc-pinned-container {
// stylelint-disable-next-line plugin/no-unsupported-browser-features
position: sticky;
top: 0;
}

View file

@ -21,7 +21,6 @@
// Applies styles for making a pinned element sticky
.vector-sticky-pinned-container {
// stylelint-disable-next-line plugin/no-unsupported-browser-features
position: sticky;
top: @grid-row-gap;
}

View file

@ -11,7 +11,9 @@
display: grid;
column-gap: @grid-column-gap;
grid-template: ~'min-content min-content 1fr min-content / @{grid-template-column-desktop}';
grid-template-areas: 'siteNotice siteNotice'
// stylelint-disable-next-line stylistic/declaration-colon-space-after
grid-template-areas:
'siteNotice siteNotice'
'mainMenu pageContent'
'toc pageContent'
'footer footer';
@ -88,7 +90,9 @@
* the Content Translation extension and should not be used beyond that.
* FIXME: This can be removed when T322740 is resolved.
*/
grid-template-areas: 'titlebar-cx .'
// stylelint-disable-next-line stylistic/declaration-colon-space-after
grid-template-areas:
'titlebar-cx .'
'titlebar columnEnd'
'toolbar columnEnd'
'content columnEnd';