Skip to content

Commit 1f8a228

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

File tree

4 files changed

+13
-19
lines changed

4 files changed

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

55
## [1.4.0](https://github.com/boringcodes/create-package/compare/v1.3.0...v1.4.0) (2020-03-26)
66

7-
87
### Features
98

10-
* **generator:** reduce questions to 4 by asking org instead of homepage, bugs & repository urls ([2f80aa8](https://github.com/boringcodes/create-package/commit/2f80aa80b0ef761171cfc22deb631c3a9563327a))
9+
- **generator:** reduce questions to 4 by asking org instead of homepage, bugs & repository urls ([2f80aa8](https://github.com/boringcodes/create-package/commit/2f80aa80b0ef761171cfc22deb631c3a9563327a))
1110

1211
## [1.3.0](https://github.com/boringcodes/create-package/compare/v1.2.0...v1.3.0) (2020-03-26)
1312

14-
1513
### Features
1614

17-
* **template:** remove unnecessary rollup plugins, update rollup config ([f366ef0](https://github.com/boringcodes/create-package/commit/f366ef0c18dcc3f3c868201c7dbe84018ce34712))
18-
* **template:** update ts config module & target, remove unnecessary ones ([9900cb2](https://github.com/boringcodes/create-package/commit/9900cb2502bad6a069e41e5313b6581f42f9c327))
19-
15+
- **template:** remove unnecessary rollup plugins, update rollup config ([f366ef0](https://github.com/boringcodes/create-package/commit/f366ef0c18dcc3f3c868201c7dbe84018ce34712))
16+
- **template:** update ts config module & target, remove unnecessary ones ([9900cb2](https://github.com/boringcodes/create-package/commit/9900cb2502bad6a069e41e5313b6581f42f9c327))
2017

2118
### Bug Fixes
2219

23-
* **generator:** add change-case to paramCase appname to solve invalid package name ([98492bb](https://github.com/boringcodes/create-package/commit/98492bb72c30f63798a681f9f8776eede6f8579f))
20+
- **generator:** add change-case to paramCase appname to solve invalid package name ([98492bb](https://github.com/boringcodes/create-package/commit/98492bb72c30f63798a681f9f8776eede6f8579f))
2421

2522
## [1.2.0](https://github.com/boringcodes/create-package/compare/v1.1.0...v1.2.0) (2020-03-25)
2623

27-
2824
### Features
2925

30-
* **packpage:** add prettier to format code ([562ca2c](https://github.com/boringcodes/create-package/commit/562ca2c9cc23210121ab7a8775e7a22d6a0e7cef))
31-
* **template:** add prettier for formating code ([05a716d](https://github.com/boringcodes/create-package/commit/05a716d8654c77f688b0a3cf9ae1274e2e25ce04))
32-
* **template:** publish dist/ instead of root dir to npm ([fe6fc83](https://github.com/boringcodes/create-package/commit/fe6fc835e69176b6a6fbd3177234af72efb9e777))
33-
26+
- **packpage:** add prettier to format code ([562ca2c](https://github.com/boringcodes/create-package/commit/562ca2c9cc23210121ab7a8775e7a22d6a0e7cef))
27+
- **template:** add prettier for formating code ([05a716d](https://github.com/boringcodes/create-package/commit/05a716d8654c77f688b0a3cf9ae1274e2e25ce04))
28+
- **template:** publish dist/ instead of root dir to npm ([fe6fc83](https://github.com/boringcodes/create-package/commit/fe6fc835e69176b6a6fbd3177234af72efb9e777))
3429

3530
### Bug Fixes
3631

37-
* **generator:** uncomment this.yarnInstall() ([f1deff9](https://github.com/boringcodes/create-package/commit/f1deff9f496cb693234497c1d16e32e160419c4b))
32+
- **generator:** uncomment this.yarnInstall() ([f1deff9](https://github.com/boringcodes/create-package/commit/f1deff9f496cb693234497c1d16e32e160419c4b))
3833

3934
## [1.1.0](https://github.com/boringcodes/create-package/compare/v1.0.4...v1.1.0) (2020-03-23)
4035

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)