[TASK] Combine lint task for ci integration and correct code violations 13/53013/3
authorBenjamin Kott <benjamin.kott@wfp2.com>
Thu, 1 Jun 2017 19:05:19 +0000 (21:05 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 2 Jun 2017 07:31:03 +0000 (09:31 +0200)
Resolves: #81411
Releases: master, 8.7
Change-Id: I2b0f848ee6db870e78d8d102ef48ba2b417f91d7
Reviewed-on: https://review.typo3.org/53013
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Build/Gruntfile.js
Build/package.json

index a79421f..3fad451 100644 (file)
@@ -439,6 +439,17 @@ module.exports = function(grunt) {
        grunt.registerTask('default', ['css']);
 
        /**
+        * grunt lint
+        *
+        * call "$ grunt lint"
+        *
+        * this task does the following things:
+        * - tslint
+        * - stylelint
+        */
+       grunt.registerTask('lint', ['tslint', 'stylelint']);
+
+       /**
         * grunt format
         *
         * call "$ grunt format"
index 3b9012c..2840f69 100644 (file)
@@ -53,7 +53,6 @@
   },
   "scripts": {
     "bower": "./node_modules/.bin/bower install",
-    "grunt-stylelint": "./node_modules/.bin/grunt stylelint",
-    "grunt-tslint": "./node_modules/.bin/grunt tslint"
+    "lint": "./node_modules/.bin/grunt lint"
   }
 }