diff --git a/.husky/pre-commit b/.husky/pre-commit index 96d7485742c2..3dfdc24dccef 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -6,3 +6,5 @@ npx validate-branch-name npm run scripts:check-commit-mail npx lint-staged --config ./.lintstagedrc +npm run lint:jscpd +npm run lint:markdownlint diff --git a/.lintstagedrc b/.lintstagedrc index 0780e43a3432..81a2d6ad58c3 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,6 +1,4 @@ { - "*": "jscpd --exitCode 1 .", - "*.md": "markdownlint -c .markdown-lint.yml", "*.{css,scss}": "stylelint --fix", "*.{js,ts,tsx}": "xo --fix", "!*.{js,ts,tsx}": "prettier --write --ignore-unknown"