Skip to content

Commit

Permalink
Switched from pretty-quick to lint-staged (#2119)
Browse files Browse the repository at this point in the history
  • Loading branch information
CatChen authored Aug 21, 2023
1 parent cd52b1c commit 662fef7
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 143 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ rm -rf dist
yarn package
git add dist

yarn pretty-quick --staged
yarn lint-staged
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"lint-staged": "^14.0.0",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.3",
"typescript": "^5.0.2"
},
"dependencies": {
Expand All @@ -43,5 +43,11 @@
"@octokit/plugin-retry": "^3.0.9",
"@octokit/plugin-throttling": "^5.0.1",
"@octokit/webhooks-definitions": "^3.67.3"
},
"lint-staged": {
"*.(ts,js)": "yarn lint --fix",
"*.json": "yarn prettier -w",
"*.(yml,yaml)": "yarn prettier -w",
"*.(md,markdown)": "yarn prettier -w"
}
}
Loading

0 comments on commit 662fef7

Please sign in to comment.