diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 3c7d331..0000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,27 +0,0 @@ -repos: - - repo: local - hooks: - - id: prettier - name: prettier - entry: pnpm exec prettier --write - language: system - files: '^packages/.*/src/.*/?.*.(js|jsx|ts|tsx)$' - types: [file] - - id: eslint - name: eslint - entry: bash -c "VOLTOCONFIG=$(pwd)/volto.config.js pnpm exec eslint --max-warnings=0 --fix" - language: system - files: '^packages/.*/src/.*/?.*.(js|jsx|ts|tsx)$' - types: [file] - - id: stylelint - name: stylelint - entry: pnpm exec stylelint --fix - language: system - files: '^packages/.*/src/.*/?.*.(css|scss|less)$' - types: [file] - - id: i18n - name: i18n - entry: make ci-i18n - language: system - files: '^packages/.*/src/.*/?.*.(js|jsx|ts|tsx)$' - types: [file] diff --git a/Makefile b/Makefile index 43c4e70..2282bc7 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,6 @@ RESET=`tput sgr0` YELLOW=`tput setaf 3` GIT_FOLDER=$(CURRENT_DIR)/.git -PRE_COMMIT=pipx run --spec 'pre-commit==3.7.1' pre-commit PLONE_VERSION=6 DOCKER_IMAGE=plone/server-dev:${PLONE_VERSION} @@ -37,7 +36,6 @@ help: ## Show this help .PHONY: install install: ## Installs the add-on in a development environment @echo "$(GREEN)Install$(RESET)" - if [ -d $(GIT_FOLDER) ]; then $(PRE_COMMIT) install; else echo "$(RED) Not installing pre-commit$(RESET)";fi pnpm dlx mrs-developer missdev --no-config --fetch-https pnpm i make build-deps