Skip to content

Commit 40d1e39

Browse files
committed
chore(prettier): update prettier cmd files pattern, add format:stage script used by husky
1 parent 485f211 commit 40d1e39

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.huskyrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"hooks": {
3-
"pre-commit": "pretty-quick --staged --pattern \"**/*.*(json|js|ts|yml|md)\"",
3+
"pre-commit": "yarn format:stage",
44
}
55
}

.prettierrc.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
const config = require('@boringcodes/prettier-config');
2-
3-
module.exports = config;
1+
module.exports = require('@boringcodes/prettier-config');

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@ All notable changes to this project will be documented in this file. See [standa
44

55
## [1.1.0](https://github.com/boringcodes/create-service-component/compare/v1.0.0...v1.1.0) (2020-03-26)
66

7-
87
### Features
98

10-
* **package:** add prettier & husky ([f6d31d8](https://github.com/boringcodes/create-service-component/commit/f6d31d8e17fd68f49908aad35ff0124acf951569))
11-
* **template:** update controller create, patch & update ([7156a2c](https://github.com/boringcodes/create-service-component/commit/7156a2c25a604eed62ff9d29d7c4b335a5beca5b))
9+
- **package:** add prettier & husky ([f6d31d8](https://github.com/boringcodes/create-service-component/commit/f6d31d8e17fd68f49908aad35ff0124acf951569))
10+
- **template:** update controller create, patch & update ([7156a2c](https://github.com/boringcodes/create-service-component/commit/7156a2c25a604eed62ff9d29d7c4b335a5beca5b))
1211

1312
## 1.0.0 (2020-03-23)
1413

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
],
1414
"scripts": {
1515
"purge": "rm -rf node_modules",
16-
"format": "prettier --write \"**/*.*(json|js|ts|yml|md)\"",
17-
"format:check": "prettier --check \"**/*.*(json|js|ts|yml|md)\"",
16+
"format": "prettier --write .",
17+
"format:check": "prettier --check .",
18+
"format:stage": "pretty-quick --staged",
1819
"release": "standard-version --no-verify",
1920
"release:major": "yarn release --release-as major",
2021
"release:minor": "yarn release --release-as minor",

0 commit comments

Comments
 (0)