8
0
Просмотр исходного кода

Cleaned up few minor mistakes.

Piotrek Koszuliński 10 лет назад
Родитель
Сommit
2ae1545ff7
3 измененных файлов с 14 добавлено и 9 удалено
  1. 5 3
      dev/tasks/dev/templates/gulpfile.js
  2. 4 3
      dev/tasks/lint/tasks.js
  3. 5 3
      gulpfile.js

+ 5 - 3
dev/tasks/dev/templates/gulpfile.js

@@ -1,4 +1,4 @@
-/* jshint node: true, esnext: true */
+/* jshint node: true */
 
 'use strict';
 
@@ -8,8 +8,10 @@ const config = {
 	ROOT_DIR: '.',
 	WORKSPACE_DIR: '..',
 
-	// Files ignored by jshit and jscs tasks. Files from .gitignore will be added automatically during tasks execution.
-	IGNORED_FILES: [ 'src/lib/**' ]
+	// Files ignored by jshint and jscs tasks. Files from .gitignore will be added automatically during tasks execution.
+	IGNORED_FILES: [
+		'src/lib/**'
+	]
 };
 
 require( './dev/tasks/lint/tasks' )( config );

+ 4 - 3
dev/tasks/lint/tasks.js

@@ -17,7 +17,7 @@ module.exports = ( config ) => {
 		/**
 		 * Returns stream containing jshint and jscs reporters.
 		 *
-		 * @returns { Stream }
+		 * @returns {Stream}
 		 */
 		lint() {
 			return gulp.src( src )
@@ -27,7 +27,7 @@ module.exports = ( config ) => {
 		/**
 		 * This method is executed on pre-commit hook, linting only files staged for current commit.
 		 *
-		 * @returns { Stream }
+		 * @returns {Stream}
 		 */
 		lintStaged() {
 			return guppy.stream( 'pre-commit' )
@@ -77,7 +77,8 @@ module.exports = ( config ) => {
 
 	/**
 	 * Returns stream with all linting plugins combined.
-	 * @returns { Stream }
+	 *
+	 * @returns {Stream}
 	 */
 	function lint() {
 		const stream = jshint();

+ 5 - 3
gulpfile.js

@@ -1,4 +1,4 @@
-/* jshint node: true, esnext: true */
+/* jshint node: true */
 
 'use strict';
 
@@ -9,8 +9,10 @@ const config = {
 	DIST_DIR: 'dist',
 	WORKSPACE_DIR: '..',
 
-	// Files ignored by jshit and jscs tasks. Files from .gitignore will be added automatically during tasks execution.
-	IGNORED_FILES: [ 'src/lib/**' ]
+	// Files ignored by jshint and jscs tasks. Files from .gitignore will be added automatically during tasks execution.
+	IGNORED_FILES: [
+		'src/lib/**'
+	]
 };
 
 require( './dev/tasks/build/tasks' )( config );