Skip to content

Commit

Permalink
chore: move from pretty-quick to lint-staged to support Prettier v3
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Aug 4, 2023
1 parent 57dab14 commit 43be779
Show file tree
Hide file tree
Showing 9 changed files with 950 additions and 923 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpx pretty-quick --staged
npx lint-staged --quiet
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"license": "MIT",
"devDependencies": {
"@types/semver": "^7.5.0",
"@types/node": "^20.4.6",
"@types/node": "^20.4.7",
"@types/prettier": "^2.7.3",
"@typescript-eslint/eslint-plugin": "^6.2.1",
"@typescript-eslint/parser": "^6.2.1",
Expand All @@ -55,21 +55,21 @@
"@prettier/sync": "0.3.0",
"crosspath": "2.0.0",
"dotcjs": "1.0.1",
"rollup-plugin-ts": "^3.2.0",
"rollup-plugin-ts": "^3.4.2",
"sandhog": "^2.0.2",
"ava": "^5.3.1",
"cross-env": "^7.0.3",
"eslint": "^8.46.0",
"eslint-config-prettier": "^8.9.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jsdoc": "^46.4.5",
"husky": "^8.0.3",
"np": "8.0.4",
"pnpm": "^8.6.11",
"prettier": "^3.0.0",
"pretty-quick": "^3.1.3",
"prettier": "^3.0.1",
"lint-staged": "^13.2.3",
"rimraf": "^5.0.1",
"rollup": "^3.27.0",
"rollup": "^3.27.2",
"standard-changelog": "^3.0.0",
"tsx": "^3.12.7",
"semver": "^7.5.4",
Expand Down Expand Up @@ -127,6 +127,9 @@
"engines": {
"node": ">=14.9.0"
},
"lint-staged": {
"*": "prettier --ignore-unknown --write"
},
"prettier": "@wessberg/prettier-config",
"ava": {
"files": [
Expand Down
Loading

0 comments on commit 43be779

Please sign in to comment.