An open API service indexing awesome lists of open source software.

https://github.com/lukeed/fly-prettier

Prettier plugin for Fly
https://github.com/lukeed/fly-prettier

fly fly-plugin prettier

Last synced: 3 months ago
JSON representation

Prettier plugin for Fly

Awesome Lists containing this project

README

        

# fly-prettier [![][travis-badge]][travis-link]

> [Prettier](https://github.com/prettier/prettier) plugin for Fly

## Install

```sh
npm install --save-dev fly-prettier
```

## Usage

```js
exports.lint = function * (fly) {
yield fly.source('src/**/*.js').prettier({
semi: false,
useTabs: true,
trailingComma: 'es5'
}).target('dist/js');
}
```

## API

### .prettier(options)

All configuration options can be found in [Prettier's API documentation](https://github.com/prettier/prettier#api).

## License

MIT © [Luke Edwards](https://lukeed.com)

[travis-link]: https://travis-ci.org/lukeed/fly-prettier
[travis-badge]: http://img.shields.io/travis/lukeed/fly-prettier.svg?style=flat-square