[TASK] Combine lint task for ci integration and correct code violations 07/53007/3
authorBenjamin Kott <benjamin.kott@wfp2.com>
Thu, 1 Jun 2017 19:05:19 +0000 (21:05 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 1 Jun 2017 21:57:31 +0000 (23:57 +0200)
Resolves: #81411
Releases: master, 8.7
Change-Id: I2b0f848ee6db870e78d8d102ef48ba2b417f91d7
Reviewed-on: https://review.typo3.org/53007
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Sommer <markussom@posteo.de>
Tested-by: Markus Sommer <markussom@posteo.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Build/Gruntfile.js
Build/Resources/Public/Sass/typo3/_element_animation.scss
Build/package.json

index 164ffb2..088d10e 100644 (file)
@@ -534,6 +534,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 c756c4c..dd95cd9 100644 (file)
@@ -18,4 +18,4 @@
 
         @include transition-property(#{"width, visibility"});
     }
-}
\ No newline at end of file
+}
index 528da13..72566cf 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"
   }
 }