mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-28 17:00:10 +00:00
Merge "build: Update linters"
This commit is contained in:
commit
9ecb7af8b4
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
|
10
package.json
10
package.json
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue