Skip to content

Commit b434bd3

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

File tree

4 files changed

+6
-8
lines changed

4 files changed

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

55
## 1.0.0 (2020-03-26)
66

7-
87
### Features
98

10-
* init source ([1589ef7](https://github.com/boringcodes/create-dotgithub/commit/1589ef717093ffb0e50b022aa55ac8d89334a771))
9+
- init source ([1589ef7](https://github.com/boringcodes/create-dotgithub/commit/1589ef717093ffb0e50b022aa55ac8d89334a771))

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)