mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 19:29:22 +01:00
.pre-commit-config.yaml: move json to prettier for cod{e,ium} compatibility
This commit is contained in:
parent
e92addc23f
commit
e24c05bb3d
@ -49,14 +49,15 @@ repos:
|
|||||||
- id: fix-byte-order-marker
|
- id: fix-byte-order-marker
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
args: [--fix=auto]
|
args: [--fix=auto]
|
||||||
- id: pretty-format-json
|
# Remember to check that prettier excludes it, if used!
|
||||||
|
#- id: pretty-format-json
|
||||||
# Breaks AdNauseam/uBlock Origin rules as the browser interprets
|
# Breaks AdNauseam/uBlock Origin rules as the browser interprets
|
||||||
# values to be set for empty options.
|
# values to be set for empty options.
|
||||||
#exclude: ^etc\/firefox\/policies\/policies.json|etc\/opt\/chromium\/policies\/managed\/aminda-extensions.json$
|
#exclude: ^etc\/firefox\/policies\/policies.json|etc\/opt\/chromium\/policies\/managed\/aminda-extensions.json$
|
||||||
args:
|
#args:
|
||||||
# Remember also: --no-sort-keys
|
# Remember also: --no-sort-keys
|
||||||
# ASCII excludes the älphäbet amongst others
|
# ASCII excludes the älphäbet amongst others
|
||||||
[--autofix, --no-ensure-ascii]
|
#[--autofix, --no-ensure-ascii]
|
||||||
#- id: requirements-txt-fixer
|
#- id: requirements-txt-fixer
|
||||||
|
|
||||||
# Synchronize dependencies between this file and package managers
|
# Synchronize dependencies between this file and package managers
|
||||||
@ -133,8 +134,8 @@ repos:
|
|||||||
rev: "v3.2.5"
|
rev: "v3.2.5"
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
# These are handled by Black below or pretty-format-json above
|
# These are handled by Black below
|
||||||
exclude_types: [python, pyi, jupyter, json]
|
exclude_types: [python, pyi, jupyter]
|
||||||
additional_dependencies: [
|
additional_dependencies: [
|
||||||
# https://www.npmjs.com/package/prettier
|
# https://www.npmjs.com/package/prettier
|
||||||
"prettier@3.2.5",
|
"prettier@3.2.5",
|
||||||
|
Loading…
Reference in New Issue
Block a user