forked from levaintech/sticky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(prettier): add prettier-plugin-packagejson (levaintech#162)
<!-- Thanks for sending a pull request! --> #### What this PR does / why we need it: Add `prettier-plugin-packagejson` and also fix how prettier is configure with lint-staged.
- Loading branch information
Showing
7 changed files
with
227 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,24 @@ | |
"private": true, | ||
"files": [], | ||
"scripts": { | ||
"prepare": "husky install", | ||
"write": "turbo run write", | ||
"clean": "turbo run clean", | ||
"build": "turbo run build", | ||
"test": "turbo run test", | ||
"clean": "turbo run clean", | ||
"format": "prettier --write .", | ||
"lint": "turbo run lint -- --fix", | ||
"format": "prettier --write ." | ||
"prepare": "husky install", | ||
"test": "turbo run test", | ||
"write": "turbo run write" | ||
}, | ||
"lint-staged": { | ||
"*": "prettier --write --ignore-unknown" | ||
}, | ||
"prettier": "@birthdayresearch/sticky-prettier", | ||
"devDependencies": { | ||
"@birthdayresearch/eslint-config": "workspace:*", | ||
"@birthdayresearch/sticky-prettier": "workspace:*", | ||
"@birthdayresearch/sticky-turbo": "workspace:*", | ||
"@birthdayresearch/sticky-typescript": "workspace:*" | ||
}, | ||
"lint-staged": { | ||
"*": "prettier --write --ignore-unknown" | ||
}, | ||
"prettier": "@birthdayresearch/sticky-prettier", | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": "^18.0.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.