build: Update linters

Change-Id: Iee462bae8112755e7cd0c5caa88c3fc6fcdc852e
isekai
Ed Sanders 7 years ago committed by Umherirrender
parent 95c62d137a
commit b3c629ef4d

@ -2,7 +2,7 @@
"extends": "stylelint-config-wikimedia", "extends": "stylelint-config-wikimedia",
"rules": { "rules": {
"no-duplicate-selectors": null, "no-duplicate-selectors": null,
"selector-no-id": null, "selector-max-id": null,
"declaration-no-important": null, "declaration-no-important": null,
"no-descending-specificity": null "no-descending-specificity": null
} }

@ -4,13 +4,13 @@
"test": "grunt test" "test": "grunt test"
}, },
"devDependencies": { "devDependencies": {
"eslint-config-wikimedia": "0.4.0", "eslint-config-wikimedia": "0.5.0",
"grunt": "1.0.1", "grunt": "1.0.1",
"grunt-banana-checker": "0.6.0", "grunt-banana-checker": "0.6.0",
"grunt-eslint": "20.0.0", "grunt-eslint": "20.1.0",
"grunt-jsonlint": "1.1.0", "grunt-jsonlint": "1.1.0",
"grunt-stylelint": "0.7.0", "grunt-stylelint": "0.9.0",
"stylelint": "7.8.0", "stylelint": "8.2.0",
"stylelint-config-wikimedia": "0.4.1" "stylelint-config-wikimedia": "0.4.2"
} }
} }

@ -42,8 +42,8 @@
display: block; display: block;
padding: 0.25em 0.5em; padding: 0.25em 0.5em;
} }
input[type='checkbox'], input[ type='checkbox' ],
input[type='radio'] { input[ type='radio' ] {
margin-left: 0; margin-left: 0;
} }
} }
@ -96,21 +96,21 @@ label {
*/ */
/* pile of bad hacks to try to catch all the different ones */ /* pile of bad hacks to try to catch all the different ones */
#searchInput, input[ name='target' ],
input[name='target'], input[ name='user' ],
input[name='user'], input[ name='mime' ],
input[name='mime'], input[ size$='0' ],
input[size$='0'], input[ type='text' ],
input[type='text'], input[ type='checkbox' ],
input[type='checkbox'], input[ type='radio' ],
input[type='radio'],
input#wpTemplateSandboxPage, input#wpTemplateSandboxPage,
input.mw-summary, input.mw-summary,
input.mw-input, input.mw-input,
.mw-input input, .mw-input input,
textarea, textarea,
.mw-ui-input-inline, .mw-ui-input-inline,
.mw-ui-input { .mw-ui-input,
#searchInput {
box-sizing: border-box; box-sizing: border-box;
padding: 0.25em 0.35em; padding: 0.25em 0.35em;
border: solid 1px @grey; border: solid 1px @grey;
@ -124,22 +124,22 @@ select {
padding: 0.25em; padding: 0.25em;
margin: 0.5em 0; margin: 0.5em 0;
} }
input[type='checkbox'], input[ type='checkbox' ],
input[type='radio'] { input[ type='radio' ] {
margin-left: 1em; margin-left: 1em;
min-height: 0; min-height: 0;
} }
input[type='checkbox'] { input[ type='checkbox' ] {
border-radius: 2px; border-radius: 2px;
} }
input[type='radio'] { input[ type='radio' ] {
border-radius: 8px; border-radius: 8px;
} }
.mw-ui-button.mw-ui-progressive, .mw-ui-button.mw-ui-progressive,
.mw-ui-button.mw-ui-progressive:active, .mw-ui-button.mw-ui-progressive:active,
.mw-ui-button.mw-ui-progressive.mw-ui-checked, .mw-ui-button.mw-ui-progressive.mw-ui-checked,
input[type='submit'], input[ type='submit' ],
input[type='button'], input[ type='button' ],
button { button {
padding: 0.25em 1em 0.1em 1em; padding: 0.25em 1em 0.1em 1em;
border: solid 1px @grey; border: solid 1px @grey;
@ -221,7 +221,7 @@ div.editOptions {
label { label {
padding: 0 1em 0 0; padding: 0 1em 0 0;
} }
input[type='submit'] { input[ type='submit' ] {
margin: 0 0 0 4em; margin: 0 0 0 4em;
} }
} }
@ -229,7 +229,7 @@ div.editOptions {
/* Related changes hacks */ /* Related changes hacks */
.mw-special-Recentchangeslinked { .mw-special-Recentchangeslinked {
.rcoptions { .rcoptions {
input[type='submit'] { input[ type='submit' ] {
float: right; float: right;
margin: 0 0 0 4em; margin: 0 0 0 4em;
} }
@ -237,7 +237,7 @@ div.editOptions {
vertical-align: top; vertical-align: top;
padding-top: 0.75em; padding-top: 0.75em;
} }
input[name='target'] { input[ name='target' ] {
float: left; float: left;
} }
} }
@ -245,7 +245,7 @@ div.editOptions {
clear: left; clear: left;
float: left; float: left;
} }
label[for='showlinkedto'] { label[ for='showlinkedto' ] {
padding: 0.4em; padding: 0.4em;
float: left; float: left;
} }

@ -168,7 +168,7 @@
#ca-addsection a { #ca-addsection a {
.background-image-svg( 'images/plus-grey.svg', 'images/plus-grey.png' ); .background-image-svg( 'images/plus-grey.svg', 'images/plus-grey.png' );
} }
*[id^='ca-nstab-'] a { *[ id^='ca-nstab-' ] a {
.background-image-svg( 'images/page-grey.svg', 'images/page-grey.png' ); .background-image-svg( 'images/page-grey.svg', 'images/page-grey.png' );
} }

Loading…
Cancel
Save