gulp-prettier-eslint
v1.1.0
Published
Create vinyl streams to pipe to prettier-eslint
Downloads
346
Maintainers
Readme
Gulp Prettier Eslint
A Gulp plugin which allows the users to use Prettier Eslint.
Prettier is an opinionated JavaScript formatter inspired by refmt with advanced support for language features from ES2017, JSX, and Flow. It removes all original styling and ensures that all outputted JavaScript conforms to a consistent style. (See this blog post)
Usage
Simply pipe the input.
const gulp = require('gulp'),
prettierEslint = require('gulp-prettier-eslint');
gulp.task('default', () => {
gulp.src('*.js')
.pipe(prettierEslint())
.pipe(gulp.dest('./dist'))
});