Skip to content

Commit ee1bb9c

Browse files
committed
chore(prettier): update prettier cmd files pattern, add format:stage script used by husky
1 parent b7839e6 commit ee1bb9c

File tree

4 files changed

+12
-18
lines changed

4 files changed

+12
-18
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: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,35 @@ All notable changes to this project will be documented in this file. See [standa
44

55
## [1.5.0](https://github.com/boringcodes/create-service/compare/v1.4.0...v1.5.0) (2020-03-26)
66

7-
87
### Features
98

10-
* **generator:** remove new component generation question ([90428a9](https://github.com/boringcodes/create-service/commit/90428a9930c9c881c705a2666be9a66bb9576aa1))
9+
- **generator:** remove new component generation question ([90428a9](https://github.com/boringcodes/create-service/commit/90428a9930c9c881c705a2666be9a66bb9576aa1))
1110

1211
## [1.4.0](https://github.com/boringcodes/create-service/compare/v1.3.2...v1.4.0) (2020-03-26)
1312

14-
1513
### Features
1614

17-
* **generator:** reduce questions to 6 by asking org instead of homepage, bugs & repository urls ([a2dc47c](https://github.com/boringcodes/create-service/commit/a2dc47c1a77eb18cc5bd8000dbecca4db31240ca))
18-
* **template:** update package.json engines node to use exactly input node verion ([92bf472](https://github.com/boringcodes/create-service/commit/92bf472f243f5cddb75e85f48d6ed8022a426b15))
15+
- **generator:** reduce questions to 6 by asking org instead of homepage, bugs & repository urls ([a2dc47c](https://github.com/boringcodes/create-service/commit/a2dc47c1a77eb18cc5bd8000dbecca4db31240ca))
16+
- **template:** update package.json engines node to use exactly input node verion ([92bf472](https://github.com/boringcodes/create-service/commit/92bf472f243f5cddb75e85f48d6ed8022a426b15))
1917

2018
### [1.3.2](https://github.com/boringcodes/create-service/compare/v1.3.1...v1.3.2) (2020-03-26)
2119

22-
2320
### Features
2421

25-
* **generator:** add change-case to paramCase the input appname ([f34ddac](https://github.com/boringcodes/create-service/commit/f34ddacb73ee2714659427d8c18fa2be7955fac2))
22+
- **generator:** add change-case to paramCase the input appname ([f34ddac](https://github.com/boringcodes/create-service/commit/f34ddacb73ee2714659427d8c18fa2be7955fac2))
2623

2724
### [1.3.1](https://github.com/boringcodes/create-service/compare/v1.3.0...v1.3.1) (2020-03-26)
2825

29-
3026
### Features
3127

32-
* **template:** update tslint.json to exclude build instead of dist ([858b5c0](https://github.com/boringcodes/create-service/commit/858b5c0954307d5d69dd0fc8183043c54b79e92d))
28+
- **template:** update tslint.json to exclude build instead of dist ([858b5c0](https://github.com/boringcodes/create-service/commit/858b5c0954307d5d69dd0fc8183043c54b79e92d))
3329

3430
## [1.3.0](https://github.com/boringcodes/create-service/compare/v1.2.0...v1.3.0) (2020-03-25)
3531

36-
3732
### Features
3833

39-
* **package:** add prettier & husky ([5b585e7](https://github.com/boringcodes/create-service/commit/5b585e7de587d76092cf34ce76f998551dfb6d68))
40-
* **template:** add prettier & husky ([22b3f37](https://github.com/boringcodes/create-service/commit/22b3f379ac6cd38539fc47bbecf4fd26e0fc15bb))
34+
- **package:** add prettier & husky ([5b585e7](https://github.com/boringcodes/create-service/commit/5b585e7de587d76092cf34ce76f998551dfb6d68))
35+
- **template:** add prettier & husky ([22b3f37](https://github.com/boringcodes/create-service/commit/22b3f379ac6cd38539fc47bbecf4fd26e0fc15bb))
4136

4237
## [1.2.0](https://github.com/boringcodes/create-service/compare/v1.1.1...v1.2.0) (2020-03-23)
4338

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)