VolkerE has uploaded a new change for review.
https://gerrit.wikimedia.org/r/322612
Change subject: Introduce stylelint
......................................................................
Introduce stylelint
Introducing stylelint and making it pass.
Depends-on: I2a67e3e730e3525c8308311483d4c1a4d0b9830c
Change-Id: I917626d2703ed08a8c14c3616c9900d16b3acb73
---
A .stylelintrc
M Gruntfile.js
M modules/ext.ores.styles.css
M package.json
4 files changed, 18 insertions(+), 6 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ORES
refs/changes/12/322612/1
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 408d6d9..cec27be 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -4,6 +4,7 @@
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jscs' );
+ grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
jshint: {
@@ -22,9 +23,14 @@
'**/*.json',
'!node_modules/**'
]
+ },
+ stylelint: {
+ dev: [
+ 'modules/**/*.css'
+ ]
}
} );
- grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint', 'banana' ]
);
+ grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint',
'stylelint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};
diff --git a/modules/ext.ores.styles.css b/modules/ext.ores.styles.css
index 9a3852b..0aa97ff 100644
--- a/modules/ext.ores.styles.css
+++ b/modules/ext.ores.styles.css
@@ -1,17 +1,18 @@
/**
* Marking "r" flag in ORES red in recent changes.
- *
+ *
**/
.ores-damaging {
font-weight: bold;
- color: red;
+ color: #f00;
}
/**
* Make the whole row orange
*
**/
-li.damaging, tr.damaging {
- background: rgba(255, 93, 0, 0.2);
+li.damaging,
+tr.damaging {
+ background: rgba( 255, 93, 0, 0.2 );
line-height: 1.8;
}
diff --git a/package.json b/package.json
index 3de66ea..060b9af 100644
--- a/package.json
+++ b/package.json
@@ -13,6 +13,8 @@
"grunt-contrib-jshint": "1.0.0",
"grunt-banana-checker": "0.5.0",
"grunt-jscs": "3.0.1",
- "grunt-jsonlint": "1.1.0"
+ "grunt-jsonlint": "1.1.0",
+ "grunt-stylelint": "0.6.0",
+ "stylelint-config-wikimedia": "0.3.0"
}
}
--
To view, visit https://gerrit.wikimedia.org/r/322612
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I917626d2703ed08a8c14c3616c9900d16b3acb73
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ORES
Gerrit-Branch: master
Gerrit-Owner: VolkerE <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits