Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 534 Bytes

README.md

File metadata and controls

22 lines (17 loc) · 534 Bytes

gulp-eslint-if-fixed

A simple plugin to avoid having a isFixed function as in the gulp-eslint fix example.

installation

npm i gulp-eslint-if-fixed --save-dev

usage

var eslint = require('gulp-eslint');
var eslintIfFixed = require('gulp-eslint-if-fixed');

gulp.task('lint-fix', function() {
  return gulp.src('src/*.js')
    .pipe(eslint({fix:true}))
    .pipe(eslint.format())
    .pipe(eslintIfFixed('src'));
});