Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hexacta/prettier-check
Check that all files match prettier code style.
https://github.com/hexacta/prettier-check
ci cli code-style formatter lint linting nodejs prettier style
Last synced: 4 months ago
JSON representation
Check that all files match prettier code style.
- Host: GitHub
- URL: https://github.com/hexacta/prettier-check
- Owner: hexacta
- License: mit
- Created: 2017-03-05T00:14:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T19:49:56.000Z (about 2 years ago)
- Last Synced: 2024-08-02T17:59:19.961Z (4 months ago)
- Topics: ci, cli, code-style, formatter, lint, linting, nodejs, prettier, style
- Language: JavaScript
- Size: 215 KB
- Stars: 54
- Watchers: 4
- Forks: 5
- Open Issues: 14
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# prettier-check [![Build Status](https://travis-ci.org/hexacta/prettier-check.svg?branch=master)](https://travis-ci.org/hexacta/prettier-check) [![npm version](https://img.shields.io/npm/v/prettier-check.svg?style=flat)](https://www.npmjs.com/package/prettier-check)
> Check that all files match [prettier](https://github.com/prettier/prettier) code style.
## Install
```
$ npm install --save-dev prettier prettier-check
```> Make sure you have `prettier` as a dependency (or globally).
## Usage
Use it in the test script in your package.json:
```json
"scripts": {
"test": "prettier-check src/**/*.js"
},
```All args are forwarded to prettier:
```json
"scripts": {
"test": "prettier-check --single-quote --trailing-comma es5 src/**/*.js"
},
```## License
MIT © [Hexacta](https://www.hexacta.com)