mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 04:29:29 +01:00
switch to pretty-format-json from prettier for json
This commit is contained in:
parent
b6ecd1b173
commit
cf75cc27c2
@ -91,6 +91,6 @@ end_of_line = crlf
|
|||||||
|
|
||||||
# YAML requires spaces. The GitHub citation files look YAML to me.
|
# YAML requires spaces. The GitHub citation files look YAML to me.
|
||||||
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files
|
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files
|
||||||
[*.{cff,yaml,yml}]
|
[*.{cff,yaml,yml,json}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
@ -41,7 +41,7 @@ repos:
|
|||||||
- id: detect-private-key
|
- id: detect-private-key
|
||||||
- id: fix-byte-order-marker
|
- id: fix-byte-order-marker
|
||||||
#- id: check-docstring-first
|
#- id: check-docstring-first
|
||||||
#- id: check-json
|
- id: check-json
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
- id: check-toml
|
- id: check-toml
|
||||||
- id: check-xml
|
- id: check-xml
|
||||||
@ -49,9 +49,10 @@ repos:
|
|||||||
#- id: fix-encoding-pragma
|
#- id: fix-encoding-pragma
|
||||||
#args: [--remove]
|
#args: [--remove]
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
|
args: [--fix=auto]
|
||||||
|
- id: pretty-format-json
|
||||||
args:
|
args:
|
||||||
[--fix=auto]
|
[--autofix, --no-ensure-ascii, --no-sort-keys]
|
||||||
#- id: pretty-format-json
|
|
||||||
#- id: requirements-txt-fixer
|
#- id: requirements-txt-fixer
|
||||||
|
|
||||||
# Checks the ci: section on top of the file
|
# Checks the ci: section on top of the file
|
||||||
@ -120,8 +121,8 @@ repos:
|
|||||||
rev: "v3.0.3"
|
rev: "v3.0.3"
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
# These are handled by Black below
|
# These are handled by Black below or pretty-format-json above
|
||||||
exclude_types: [python, pyi, jupyter]
|
exclude_types: [python, pyi, jupyter, json]
|
||||||
additional_dependencies: [
|
additional_dependencies: [
|
||||||
# https://www.npmjs.com/package/prettier
|
# https://www.npmjs.com/package/prettier
|
||||||
"prettier@3.0.3",
|
"prettier@3.0.3",
|
||||||
|
Loading…
Reference in New Issue
Block a user