Skip to content

Commit

Permalink
Consistent strings in yaml
Browse files Browse the repository at this point in the history
Signed-off-by: xibz <impactbchang@gmail.com>
  • Loading branch information
xibz committed May 15, 2024
1 parent 8e194aa commit 3a98d2d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .github/linters/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
plugins:
- jsonc
overrides:
- files:
- "schemas/*.json"
- "examples/*.json"
parser: "jsonc-eslint-parser"
- files: "*.json"
parser: jsonc-eslint-parser
rules:
# These are the set of rules that belong to jsonc. For more information,
# https://ota-meshi.github.io/eslint-plugin-jsonc/rules
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,20 @@ jobs:
uses: github/super-linter/slim@v4
env:
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_MARKDOWN: true
VALIDATE_JSON: true
# superlinter runs each linter on a per file bases and does not look
# at tool specific configuration to determine whether or not to the
# lint the given file.
#
# Due to that we need to globally include or exclude files. This also
# makes tools less flexible with one another in that if a tool
# requires a specific folder to be included and excluded, but other
# tools require must lint the excluded folder, then this pattern does
# not work. Instead superlinter cannot be used in that case, and the
# linter itself needs to be ran outside of superlinter.
FILTER_REGEX_INCLUDE: .*\/(custom|examples|schemas)\/.*

jsonschema:
name: Validate Schemas and Examples
Expand Down

0 comments on commit 3a98d2d

Please sign in to comment.