diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 93750009..108a06ea 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -64,8 +64,8 @@ repos: hooks: - id: prettier additional_dependencies: - - prettier@2.8.8 - - prettier-plugin-sort-json@1.0.0 + - prettier@3.0.3 + - prettier-plugin-sort-json@3.0.1 exclude_types: - python - repo: https://github.com/adrienverge/yamllint.git diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index c91a87c2..00000000 --- a/.prettierrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "jsonRecursiveSort": true -} diff --git a/.prettierrc.js b/.prettierrc.js new file mode 100644 index 00000000..3051fbe5 --- /dev/null +++ b/.prettierrc.js @@ -0,0 +1,5 @@ +/** @type {import("prettier").Config} */ +module.exports = { + plugins: [require.resolve("prettier-plugin-sort-json")], + jsonRecursiveSort: true, +};