diff --git a/.gitignore b/.gitignore index fa07570..fa8201e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,10 @@ .* _site/ .sass-cache/ +node_modules/ vendor/ *.lock +pnpm-lock.yaml !.editorconfig !.gitattributes !.github diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b7820cb..e091f96 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,5 +1,6 @@ ci: autoupdate_schedule: quarterly + skip: [prettier] repos: - repo: https://github.com/pre-commit/pre-commit-hooks @@ -26,7 +27,9 @@ repos: - id: doctoc args: [--update-only, --notitle] - - repo: https://github.com/rbubley/mirrors-prettier - rev: "v3.3.0" + - repo: local hooks: - id: prettier + name: prettier + entry: pnpm exec prettier --cache --ignore-unknown --write + language: system diff --git a/package.json b/package.json new file mode 100644 index 0000000..2f3724c --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "devDependencies": { + "@prettier/plugin-xml": "3.4.1", + "prettier": "3.3.2", + "prettier-plugin-sh": "0.14.0" + } +}