@chuyik/gulp-prettier-eslint
Create vinyl streams to pipe to prettier-eslint
Last updated a year ago by chuyik .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @chuyik/gulp-prettier-eslint 
SYNC missed versions from official npm registry.

Gulp Prettier Eslint Build Status

A Gulp plugin which allows the users to use prettier-eslint.

Install

yarn add @o2team/gulp-prettier-eslint --dev

Usage

Simply pipe the input, and pass in arguments that you would to the regular format function.

const gulp = require('gulp');
const format = require('@o2team/gulp-prettier-eslint');

gulp.task('default', () => {
  return gulp.src('*.js')
    .pipe(format({ 
      eslintConfig: {
        parserOptions: {
          ecmaVersion: 7
        },
        rules: {
          semi: ["error", "never"]
        }
      },
      prettierOptions: {
        bracketSpacing: true
      },
      fallbackPrettierOptions: {
        singleQuote: false
      }
     }))
    .pipe(gulp.dest('./dist'));
});

API

format([formatOptions])

formatOptions

Type: Object

Consult the prettier-eslint options.

Donation

If you find this project useful, you can buy us a cup of coffee:


Acknowledgements

We are grateful to the authors of existing related projects for their ideas and collaboration:

Contributors

chuyik
chuyik

Current Tags

  • 3.0.1                                ...           latest (a year ago)

1 Versions

  • 3.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 3
Dependencies (4)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |