diff --git a/.config/.lintstagedrc-prettier.js b/.config/.lintstagedrc-prettier.js new file mode 100644 index 0000000..655bfb5 --- /dev/null +++ b/.config/.lintstagedrc-prettier.js @@ -0,0 +1,3 @@ +export default { + '**/*': 'prettier --write --ignore-unknown' +}; diff --git a/.husky/pre-commit b/.husky/pre-commit index f210f6b..70d36e5 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1,2 @@ -prettier $(git diff --cached --name-only --diff-filter=ACMR | sed 's|( |&)|\\ |g') --write --ignore-unknown +lint-staged --config .config/.lintstagedrc-prettier.js git update-index --again