Skip to content

Commit a7ca3a5

Browse files
committed
rulesdir/rulePaths for gulp-eslint
1 parent 291ee00 commit a7ca3a5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build/gulpfile.hygiene.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,10 @@ const copyrightHeaderLines = [
186186
gulp.task('eslint', () => {
187187
return vfs.src(all, { base: '.', follow: true, allowEmpty: true })
188188
.pipe(filter(eslintFilter))
189-
.pipe(gulpeslint('.eslintrc.json'))
189+
.pipe(gulpeslint({
190+
configFile: '.eslintrc.json',
191+
rulePaths: ['./build/lib/eslint']
192+
}))
190193
.pipe(gulpeslint.formatEach('compact'))
191194
.pipe(gulpeslint.failAfterError());
192195
});

0 commit comments

Comments
 (0)