Skip to content

Commit

Permalink
Adds JSON linting
Browse files Browse the repository at this point in the history
This commit adds JSON linting and enforces camel casing for JSON

Signed-off-by: xibz <impactbchang@gmail.com>
  • Loading branch information
xibz committed May 15, 2024
1 parent c1a465d commit 13f8987
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/linters/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
plugins:
- jsonc
overrides:
- files: "*.json"
parser: "jsonc-eslint-parser"
rules:
jsonc/key-name-casing:
- error
- camelCase: true
snake_case: false
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 13f8987

Please sign in to comment.