Umherirrender has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/405324 )
Change subject: Config stylelint to lint css files
......................................................................
Config stylelint to lint css files
Already part of package.json
Change-Id: I98c67ea480bf5613a459caf4ae2211c89beb27ef
---
A .stylelintrc.json
M Gruntfile.js
2 files changed, 16 insertions(+), 3 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ArticleCreationWorkflow
refs/changes/24/405324/1
diff --git a/.stylelintrc.json b/.stylelintrc.json
new file mode 100644
index 0000000..2c90730
--- /dev/null
+++ b/.stylelintrc.json
@@ -0,0 +1,3 @@
+{
+ "extends": "stylelint-config-wikimedia"
+}
diff --git a/Gruntfile.js b/Gruntfile.js
index 7cef05d..dff19be 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -6,6 +6,7 @@
grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
+ grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.initConfig( {
eslint: {
@@ -20,8 +21,9 @@
banana: conf.MessagesDirs,
watch: {
files: [
- '.eslintrc.json',
- '<%= eslint.all %>'
+ '.{stylelintrc,eslintrc}.json',
+ '<%= eslint.all %>',
+ '<%= stylelint.all %>'
],
tasks: 'test'
},
@@ -32,10 +34,18 @@
'!vendor/**',
'!docs/**'
]
+ },
+ stylelint: {
+ all: [
+ '**/*.css',
+ '!node_modules/**',
+ '!vendor/**',
+ '!docs/**'
+ ]
}
} );
- grunt.registerTask( 'lint', [ 'eslint', 'jsonlint', 'banana' ] );
+ grunt.registerTask( 'lint', [ 'eslint', 'jsonlint', 'banana',
'stylelint' ] );
grunt.registerTask( 'test', 'lint' );
grunt.registerTask( 'default', 'test' );
};
--
To view, visit https://gerrit.wikimedia.org/r/405324
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I98c67ea480bf5613a459caf4ae2211c89beb27ef
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ArticleCreationWorkflow
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits