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
- Host: GitHub
- URL: https://github.com/lukeed/fly-prettier
- Owner: lukeed
- License: other
- Created: 2017-04-17T18:54:23.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T18:57:04.000Z (about 8 years ago)
- Last Synced: 2025-02-24T02:39:44.155Z (3 months ago)
- Topics: fly, fly-plugin, prettier
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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