From 13f89872f33c5f1a1b5dee5c58a65c7b7ffb315c Mon Sep 17 00:00:00 2001 From: xibz Date: Mon, 15 Apr 2024 15:31:42 -0500 Subject: [PATCH] Adds JSON linting This commit adds JSON linting and enforces camel casing for JSON Signed-off-by: xibz --- .github/linters/.eslintrc.yml | 10 ++++++++++ .github/workflows/main.yml | 1 + 2 files changed, 11 insertions(+) create mode 100644 .github/linters/.eslintrc.yml diff --git a/.github/linters/.eslintrc.yml b/.github/linters/.eslintrc.yml new file mode 100644 index 00000000..41ae6ac2 --- /dev/null +++ b/.github/linters/.eslintrc.yml @@ -0,0 +1,10 @@ +plugins: + - jsonc +overrides: + - files: "*.json" + parser: "jsonc-eslint-parser" + rules: + jsonc/key-name-casing: + - error + - camelCase: true + snake_case: false diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 57f58db2..41a971ec 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -31,6 +31,7 @@ jobs: DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} VALIDATE_MARKDOWN: true + VALIDATE_JSON: true jsonschema: name: Validate Schemas and Examples