From 2992edc996ce1977537ec626109c9dc5458ef5d3 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Sun, 4 Feb 2018 21:22:04 +0000 Subject: [PATCH] build: Update linters Change-Id: I473dec2bb64ce2242eaf7bbb4cc42ac767716ae0 --- modules/ext.cite.style.css | 26 +++++++++++++------------- modules/ext.cite.style.fa.css | 4 ++-- package.json | 10 +++++----- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/modules/ext.cite.style.css b/modules/ext.cite.style.css index 6e7e4f03a..565a3a593 100644 --- a/modules/ext.cite.style.css +++ b/modules/ext.cite.style.css @@ -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; } diff --git a/modules/ext.cite.style.fa.css b/modules/ext.cite.style.fa.css index 3cec4601d..91091d3ad 100644 --- a/modules/ext.cite.style.fa.css +++ b/modules/ext.cite.style.fa.css @@ -4,7 +4,7 @@ /* stylelint-disable value-keyword-case */ /* 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 to s */ -span[rel='mw:referencedBy'] a:before { +span[ rel='mw:referencedBy' ] a:before { content: counters( mw-ref-linkback, '٫', persian ); } diff --git a/package.json b/package.json index 13a2f57b5..b3d75b29e 100644 --- a/package.json +++ b/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" } }