diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6553c287a3..3bbb03cc33 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,12 +46,26 @@ repos: - id: check-yaml - id: end-of-file-fixer stages: [pre-commit, manual] - # TODO: - #- id: pretty-format-json - # args: [--autofix, --no-sort-keys] - # stages: [pre-commit, manual] - id: trailing-whitespace stages: [pre-commit, manual] +- repo: https://gitlab.com/bmares/check-json5 + rev: v1.0.0 + hooks: + - id: check-json5 + alias: check-json + types_or: [file, json] + files: '\.json[c]?$' +# FIXME: This removes comments. +# See Also: https://github.com/dpranke/pyjson5/issues/28 +#- repo: https://github.com/whtsky/pre-commit-pretty-format-json5 +# rev: "1.0.0" +# hooks: +# - id: pretty-format-json5 +# alias: pretty-format-json +# args: [--no-sort-keys] +# stages: [pre-commit, manual] +# types_or: [file, json] +# files: '\.json[c]?$' - repo: https://github.com/johann-petrak/licenseheaders rev: v0.8.8 hooks: diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index cf0454734c..0000000000 --- a/.prettierrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "editorconfig": true, - "trailingComma": "es5" -}