Merge "build: Update linters"

This commit is contained in:
jenkins-bot 2018-02-05 01:08:37 +00:00 committed by Gerrit Code Review
commit 9ecb7af8b4
3 changed files with 20 additions and 20 deletions

View file

@ -13,30 +13,30 @@
/* stylelint-disable value-keyword-case */
/* With a group set */
.mw-ref a[data-mw-group]:after {
.mw-ref a[ data-mw-group ]:after {
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, decimal ) ']';
}
/* Groups with special appearance */
.mw-ref a[data-mw-group='decimal']:after {
.mw-ref a[ data-mw-group='decimal' ]:after {
content: '[' counter( mw-Ref, decimal ) ']';
}
.mw-ref a[data-mw-group='lower-alpha']:after {
.mw-ref a[ data-mw-group='lower-alpha' ]:after {
content: '[' counter( mw-Ref, lower-alpha ) ']';
}
.mw-ref a[data-mw-group='upper-alpha']:after {
.mw-ref a[ data-mw-group='upper-alpha' ]:after {
content: '[' counter( mw-Ref, upper-alpha ) ']';
}
.mw-ref a[data-mw-group='lower-greek']:after {
.mw-ref a[ data-mw-group='lower-greek' ]:after {
content: '[' counter( mw-Ref, lower-greek ) ']';
}
.mw-ref a[data-mw-group='lower-roman']:after {
.mw-ref a[ data-mw-group='lower-roman' ]:after {
content: '[' counter( mw-Ref, lower-roman ) ']';
}
.mw-ref a[data-mw-group='upper-roman']:after {
.mw-ref a[ data-mw-group='upper-roman' ]:after {
content: '[' counter( mw-Ref, upper-roman ) ']';
}
.mw-ref a[data-mw-group='error-test']:after {
.mw-ref a[ data-mw-group='error-test' ]:after {
content: '[' counter( mw-Ref, symbols( cyclic 'first' 'second' 'last!' ) ) ']';
}
@ -62,15 +62,15 @@ ol.mw-references li {
counter-increment: mw-ref-linkback;
}
[rel='mw:referencedBy'] {
[ rel='mw:referencedBy' ] {
counter-reset: mw-ref-linkback -1;
}
[rel='mw:referencedBy']:before {
[ rel='mw:referencedBy' ]:before {
content: '↑ ';
}
span[rel='mw:referencedBy'] a:before {
span[ rel='mw:referencedBy' ] a:before {
counter-increment: mw-ref-linkback;
content: counters( mw-ref-linkback, '.', decimal );
vertical-align: super;
@ -78,14 +78,14 @@ span[rel='mw:referencedBy'] a:before {
font-size: smaller;
}
span[rel='mw:referencedBy'] a:after {
span[ rel='mw:referencedBy' ] a:after {
content: ' ';
}
/* Hide the default rendering in browsers that support content
* generation by selecting for :after pseudo-element.*/
/* stylelint-disable-next-line selector-type-no-unknown */
x-thereisnoelementwiththisname[rel='mw:referencedBy']:before,
x-thereisnoelementwiththisname[ rel='mw:referencedBy' ]:before,
span.mw-linkback-text {
display: none;
}

View file

@ -4,7 +4,7 @@
/* stylelint-disable value-keyword-case */
/* <ref>s with a group */
.mw-ref a[data-mw-group]:after {
.mw-ref a[ data-mw-group ]:after {
content: '[' attr( data-mw-group ) ' ' counter( mw-Ref, persian ) ']';
}
@ -14,6 +14,6 @@
}
/* Linkbacks from <references> to <ref>s */
span[rel='mw:referencedBy'] a:before {
span[ rel='mw:referencedBy' ] a:before {
content: counters( mw-ref-linkback, '٫', persian );
}

View file

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