rulesdir/rulePaths for gulp-eslint
This commit is contained in:
parent
291ee0058a
commit
a7ca3a5b10
1 changed files with 4 additions and 1 deletions
|
@ -186,7 +186,10 @@ const copyrightHeaderLines = [
|
|||
gulp.task('eslint', () => {
|
||||
return vfs.src(all, { base: '.', follow: true, allowEmpty: true })
|
||||
.pipe(filter(eslintFilter))
|
||||
.pipe(gulpeslint('.eslintrc.json'))
|
||||
.pipe(gulpeslint({
|
||||
configFile: '.eslintrc.json',
|
||||
rulePaths: ['./build/lib/eslint']
|
||||
}))
|
||||
.pipe(gulpeslint.formatEach('compact'))
|
||||
.pipe(gulpeslint.failAfterError());
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue