jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/348599 )
Change subject: Add stylelint for css files
......................................................................
Add stylelint for css files
Fixed the following rule:
indentation
Change-Id: Ied3cff2da73568fb91c4190d0c346f165486431b
---
A .stylelintrc
M Gruntfile.js
M modules/ext.oath.showqrcode.styles.css
M package.json
4 files changed, 20 insertions(+), 8 deletions(-)
Approvals:
jenkins-bot: Verified
Jforrester: Looks good to me, approved
diff --git a/.stylelintrc b/.stylelintrc
new file mode 100644
index 0000000..2c90730
--- /dev/null
+++ b/.stylelintrc
@@ -0,0 +1,3 @@
+{
+ "extends": "stylelint-config-wikimedia"
+}
diff --git a/Gruntfile.js b/Gruntfile.js
index 3c7f63a..b784cf1 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -3,6 +3,7 @@
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
+ grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
jshint: {
@@ -21,11 +22,18 @@
jsonlint: {
all: [
'**/*.json',
+ '.stylelintrc',
+ '!node_modules/**'
+ ]
+ },
+ stylelint: {
+ all: [
+ '**/*.css',
'!node_modules/**'
]
}
} );
- grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
+ grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana',
'stylelint' ] );
grunt.registerTask( 'default', 'test' );
};
diff --git a/modules/ext.oath.showqrcode.styles.css
b/modules/ext.oath.showqrcode.styles.css
index 83966ea..aae0d95 100644
--- a/modules/ext.oath.showqrcode.styles.css
+++ b/modules/ext.oath.showqrcode.styles.css
@@ -1,9 +1,9 @@
.client-nojs .mw-display-qrcode {
- display: none;
+ display: none;
}
kbd {
- font-family: monospace, monospace;
- white-space: nowrap;
- font-size: larger;
+ font-family: monospace, monospace;
+ white-space: nowrap;
+ font-size: larger;
}
diff --git a/package.json b/package.json
index ba022f1..6671b7c 100644
--- a/package.json
+++ b/package.json
@@ -4,10 +4,11 @@
"test": "grunt test"
},
"devDependencies": {
- "grunt": "0.4.5",
- "grunt-cli": "0.1.13",
+ "grunt": "1.0.1",
"grunt-contrib-jshint": "0.12.0",
"grunt-banana-checker": "0.4.0",
- "grunt-jsonlint": "1.0.7"
+ "grunt-jsonlint": "1.0.7",
+ "grunt-stylelint": "0.6.0",
+ "stylelint-config-wikimedia": "0.4.1"
}
}
--
To view, visit https://gerrit.wikimedia.org/r/348599
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ied3cff2da73568fb91c4190d0c346f165486431b
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/OATHAuth
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
Gerrit-Reviewer: Jforrester <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits