prettier-std-cli
Version:
Standalone CLI for prettier -> standard --fix -> Formatted Code
44 lines (28 loc) • 1.27 kB
Markdown
# prettier-std-cli
Standalone CLI for [standard-prettier-eslint](https://github.com/bySabi/standard-prettier-eslint)
[](https://badge.fury.io/js/prettier-std-cli)
[](https://www.npmjs.com/package/prettier-std-cli)
Formats your JavaScript using [`prettier`](https://github.com/jlongster/prettier) followed by [`standard --fix`][standard]
* [prettier](https://github.com/prettier/prettier) is a wonderful tool for code prettify.
* [standard][standard] is `zero configuration pain` tool based on ESLint.
The two packages are great and very well designed, that can be used together with a minimum effort
## Installation
$ npm install prettier-std-cli -g
## Usage
Ex: package.json
```json
"scripts": {
...
"lint": "standard --verbose | snazzy",
"format": "prettier-std --write '**/*.js'"
}
```
### If you don't like `semicolons` use **semistandard** version
* [prettier-semi-cli](https://github.com/bySabi/prettier-semi-cli)
## Contributing
* Documentation improvement
* Feel free to send any PR
## License
[MIT][mit-license]
[mit-license]:./LICENSE
[standard]: https://github.com/standard/standard