Skip to content

Commit

Permalink
⬆️ Upgrade husky and pretty-quick -> git-format-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
torifat committed Nov 7, 2021
1 parent d55830c commit 0f9f37e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 260 deletions.
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

git-format-staged -f 'prettier --ignore-unknown --stdin --stdin-filepath "{}"' .
5 changes: 0 additions & 5 deletions .huskyrc

This file was deleted.

257 changes: 6 additions & 251 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@
"build:esm": "node build.js",
"prerelease": "npm run build",
"release": "changeset release",
"format": "prettier --write src/*.js src/**/*.js .changeset/*.js",
"format": "prettier --write 'src/**/*.js' '.changeset/*.js'",
"test": "jest",
"test-ci": "jest --coverage --colors",
"screenshot": "svg-term --command='node screenshot' --out=media/screenshot.svg --padding=5 --width=80 --height=13 --at=1000 --no-cursor --term iterm2 --profile='deep' --window"
"screenshot": "svg-term --command='node screenshot' --out=media/screenshot.svg --padding=5 --width=80 --height=13 --at=1000 --no-cursor --term iterm2 --profile='deep' --window",
"prepare": "husky install"
},
"dependencies": {
"@babel/code-frame": "^7.16.0",
Expand All @@ -53,12 +54,12 @@
"eslint-plugin-prettier": "^4.0.0",
"fast-glob": "^3.2.7",
"flow-bin": "^0.163.0",
"husky": "^7.0.4",
"git-format-staged": "^2.1.2",
"husky": "^7.0.0",
"is-ci": "^3.0.1",
"jest": "^27.3.1",
"jest-fixtures": "^0.6.0",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.1",
"svg-term-cli": "^2.1.1"
},
"peerDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const getSiblings =
export const concatAll =
/*::<T>*/


(xs /*: $ReadOnlyArray<T>*/) =>
(ys /*: $ReadOnlyArray<T>*/) /*: $ReadOnlyArray<T>*/ =>
ys.reduce((zs, z) => zs.concat(z), xs);

0 comments on commit 0f9f37e

Please sign in to comment.