@common-web/prettier
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "@common-web/prettier", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Prettier config", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -29,7 +29,20 @@ # @common-web/prettier | ||
## Running TSC | ||
## Running Prettier | ||
Add the following to your "scripts" in your `package.json` | ||
```json | ||
{ | ||
..., | ||
"scripts": { | ||
"prettier --write -l \"src/**/*.ts\ | ||
} | ||
} | ||
``` | ||
**Note:** Feel free change the 'src' and file pattern matching to suit your needs | ||
```sh | ||
@@ -39,1 +52,5 @@ // By default, tsc will pick up your tsconfig.json | ||
``` | ||
## Examples | ||
- [@common-web Rollup/ Prettier example](https://github.com/Jareechang/common-web-rollup-example) |
1731
55