Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ repos:
- id: check-yaml
stages: [pre-commit]

- repo: local
hooks:
- id: jsonschema-fix
name: jsonschema fix
stages: [pre-commit]
language: system
entry: bash -c 'npx jsonschema lint --fix --ignore spec/schemas/json-schema-draft-07.json spec/schemas/*.json || true'
files: ^spec/schemas/.*\.json$
exclude: spec/schemas/json-schema-draft-07\.json

- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.5.3
hooks:
Expand All @@ -42,6 +52,16 @@ repos:
files: \.(json|toml|yml|yaml)$
exclude: schemas/json-schema-draft-07.json

- repo: local
hooks:
- id: jsonschema-lint
name: jsonschema lint
stages: [pre-commit]
language: system
entry: bash -c 'npx jsonschema lint --ignore spec/schemas/json-schema-draft-07.json spec/schemas/*.json || true'
files: ^spec/schemas/.*\.json$
exclude: spec/schemas/json-schema-draft-07\.json

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.33.0
hooks:
Expand Down
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@asciidoctor/tabs": "v1.0.0-beta.6",
"@commitlint/cli": "19.8.0",
"@commitlint/config-conventional": "19.8.0",
"@sourcemeta/jsonschema": "^11.7.0",
"asciidoctor-mathjax": "^0.0.5",
"prettier": "3.4.2",
"wavedrom-cli": "^3.1.1"
Expand Down
Loading
Loading