diff --git a/.config/.lintstagedrc-prettier.js b/.config/.lintstagedrc-prettier.js deleted file mode 100644 index 655bfb578..000000000 --- a/.config/.lintstagedrc-prettier.js +++ /dev/null @@ -1,3 +0,0 @@ -export default { - '**/*': 'prettier --write --ignore-unknown' -}; diff --git a/.config/.lintstagedrc-prettier.json b/.config/.lintstagedrc-prettier.json new file mode 100644 index 000000000..23bbc4320 --- /dev/null +++ b/.config/.lintstagedrc-prettier.json @@ -0,0 +1 @@ +{ "**/*": "prettier --write --ignore-unknown" } diff --git a/.husky/pre-commit b/.husky/pre-commit index 1fc12e794..91037c047 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,5 +2,5 @@ echo "### npm run general lintings ###" concurrently "node ./scripts/check-commit-mail.js" "node ./scripts/cypress/component-check.js" "node ./scripts/angular-module-component-check.js" "npx validate-branch-name" echo "### lint staged files ###" lint-staged -lint-staged --config .config/.lintstagedrc-prettier.js +lint-staged --config .config/.lintstagedrc-prettier.json git update-index --again