From 6158ae94a3bb3ec190604eb6c12efd505c60e8f9 Mon Sep 17 00:00:00 2001
From: Benjamin Kott <benjamin.kott@wfp2.com>
Date: Thu, 1 Jun 2017 21:05:19 +0200
Subject: [PATCH] [TASK] Combine lint task for ci integration and correct code
 violations

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                                    | 11 +++++++++++
 .../Public/Sass/typo3/_element_animation.scss         |  2 +-
 Build/package.json                                    |  3 +--
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/Build/Gruntfile.js b/Build/Gruntfile.js
index 164ffb2c9228..088d10e1aec2 100644
--- a/Build/Gruntfile.js
+++ b/Build/Gruntfile.js
@@ -533,6 +533,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
 	 *
diff --git a/Build/Resources/Public/Sass/typo3/_element_animation.scss b/Build/Resources/Public/Sass/typo3/_element_animation.scss
index c756c4c15d7c..dd95cd94d141 100644
--- a/Build/Resources/Public/Sass/typo3/_element_animation.scss
+++ b/Build/Resources/Public/Sass/typo3/_element_animation.scss
@@ -18,4 +18,4 @@
 
         @include transition-property(#{"width, visibility"});
     }
-}
\ No newline at end of file
+}
diff --git a/Build/package.json b/Build/package.json
index 528da1370abc..72566cf3464c 100644
--- a/Build/package.json
+++ b/Build/package.json
@@ -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"
   }
 }
-- 
GitLab