UNPKG

material-ui

Version:

Material Design UI components built with React

16 lines (14 loc) 612 B
var gulp = require('gulp'); var eslint = require('gulp-eslint'); gulp.task('eslint', function () { return gulp.src(['src/**', 'docs/src/**/*.{js,jsx}']) // 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()); });