From 1dba117c2ac1347020fe9e7ae3c726cc42daff7b Mon Sep 17 00:00:00 2001 From: "Storm B. Heg" Date: Thu, 3 Aug 2023 14:36:19 +0200 Subject: [PATCH] Update pre-commit hooks Some linters and formatters were updated in 35dfdea, but that did not include the versions used by pre-commit. --- .pre-commit-config.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 162209d1d3..8d8e6791e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,10 +16,13 @@ repos: args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.5.1 + rev: v3.0.1 hooks: - id: prettier types_or: [css, scss, javascript, ts, tsx, json, yaml] + additional_dependencies: + # Keep in sync with package.json + - prettier@3.0.1 - repo: https://github.com/pre-commit/mirrors-eslint rev: v8.8.0 hooks: @@ -28,9 +31,10 @@ repos: files: \.(js|ts|tsx)$ args: [--report-unused-disable-directives] additional_dependencies: - - eslint@8.8.0 - - '@typescript-eslint/eslint-plugin@5.10.1' - - '@typescript-eslint/parser@5.10.1' + # Keep in sync with package.json + - eslint@8.46 + - '@typescript-eslint/eslint-plugin@6.2.1' + - '@typescript-eslint/parser@6.2.1' - '@wagtail/eslint-config-wagtail@0.4.0' - repo: https://github.com/thibaudcolas/pre-commit-stylelint rev: v14.2.0 @@ -38,8 +42,9 @@ repos: - id: stylelint files: \.scss$ additional_dependencies: + # Keep in sync with package.json - stylelint@14.2.0 - - '@wagtail/stylelint-config-wagtail@0.3.2' + - '@wagtail/stylelint-config-wagtail@0.5.0' - repo: https://github.com/thibaudcolas/curlylint rev: v0.13.1 hooks: