const gulp = require('gulp');
const pump = require('pump');
const rename = require('gulp-rename');
const sass = require('gulp-sass');
const wp = require('webpack');
const webpack = require('webpack-stream');
const uglify = require('gulp-uglify');

var config = {
  "pug": {
    "src": "./app/pug/*.pug",
    "dest": "./"
  },
  "sass": {
    "src": "./app/sass/*.scss",
    "dest": "./css/"
  },
  "js": {
    "src": "./app/js/*.js",
    "dest": "./js/"
  }
};

gulp.task('pug', () => {
  return gulp.src(config.pug.src)
  .pipe(pug())
  .pipe(gulp.dest(config.pug.dest))
});

gulp.task('sass', () => {
  return gulp.src(config.sass.src)
  .pipe(sass())
  .pipe(gulp.dest(config.sass.dest))
});

gulp.task('js', function() {
  return gulp.src(config.js.src)
  .pipe(webpack({
    devtool: 'cheap-module-source-map',
    watch: true,
    module: {
      loaders: [
        { test: /\.jsx?/, loader: 'babel' },
      ],
    },
    plugins: [
      new wp.DefinePlugin({
        'process.env': {
          'NODE_ENV': JSON.stringify('production')
        }
      })
    ],
  }))
  .pipe(rename(function(path) {
    path.basename = 'app'
  }))
  .pipe(gulp.dest('./js/'));
});

gulp.task('watch', () => {
  gulp.watch(config.sass.src, ['sass']);
  gulp.watch(config.js.src, ['js']);
});

gulp.task('default', ['watch']);
@@ -123,24 +123,68 @@
 ulp-sass');%0A
+const sassLint = require('gulp-sass-lint');%0A
 const wp = r
@@ -198,24 +198,24 @@
 'webpack');%0A
-
 const webpac
@@ -671,24 +671,103 @@
 g.sass.src)%0A
+  .pipe(sassLint())%0A  .pipe(sassLint.format())%0A  .pipe(sassLint.failOnError())%0A
   .pipe(sass
@@ -832,18 +832,13 @@
 s', 
-function()
+() =%3E
  %7B%0A 
@@ -1206,22 +1206,17 @@
 ame(
-function
 (path)
+ =%3E
  %7B%0A 

Extend sass gulp task to lint before compilation ✨