Próbuję eslint z haustem. Mam skonfigurować zadanie tak:Jak uruchomić program gulp eslint w sposób ciągły i automatyczny podczas naprawiania plików - jak skonfigurować zegarek
gulp.task('lint', function() {
return gulp.src([
'components/myjs.js'
])
// eslint() attaches the lint output to the eslint property
// of the file object so it can be used by other modules.
.pipe(eslint())
// eslint.format() outputs the lint results to the console.
// Alternatively use eslint.formatEach() (see Docs).
.pipe(eslint.format())
// To have the process exit with an error code (1) on
// lint error, return the stream and pipe to failOnError last.
.pipe(eslint.failOnError());
});
kiedy biegnę gulp lint
Mówi mi dużo błędów. Teraz próbuję je naprawić jeden po drugim. Ale muszę ręcznie uruchomić ponownie gulp lint
, aby otrzymać zaktualizowany raport. Jak skonfigurować, aby automatycznie uruchamiał się ponownie przy każdej aktualizacji 'components/myjs.js'
?
Dzięki!! Teraz po prostu oglądam łyk. – techguy2000
Nie ma za co! :) –