diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e03aee5..5c00d68 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,7 +34,7 @@ repos: args: ["--markdown-linebreak-ext", "md,markdown"] exclude_types: [svg, tsv] - id: check-docstring-first - #- id: check-json + - id: check-json - id: check-merge-conflict #- id: check-toml #- id: check-xml @@ -42,7 +42,8 @@ repos: - id: mixed-line-ending # .gitattributes is trusted to handle this args: [--fix=no] - #- id: pretty-format-json + - id: pretty-format-json + args: [--autofix, --no-ensure-ascii] #- id: requirements-txt-fixer - repo: https://github.com/pre-commit-ci/pre-commit-ci-config rev: v1.6.1 @@ -107,9 +108,6 @@ repos: name: prettier entry: corepack pnpm exec prettier --cache --ignore-unknown --write language: system - # Better handled by pretty-format-json from pre-commit-hooks. - # Remember to have *.json in .prettierignore! - exclude_types: [json] - repo: https://github.com/editorconfig-checker/editorconfig-checker.python rev: "2.7.3" diff --git a/package.json b/package.json index 9b0be37..833bed9 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { - "devDependencies": { - "@prettier/plugin-ruby": "4.0.4", - "mvdan-sh": "0.10.1", - "prettier": "3.3.2", - "prettier-plugin-sh": "0.14.0" - }, - "packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903" + "devDependencies": { + "@prettier/plugin-ruby": "4.0.4", + "mvdan-sh": "0.10.1", + "prettier": "3.3.2", + "prettier-plugin-sh": "0.14.0" + }, + "packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903" }