Skip to content

Commit afb3791

Browse files
committed
Consistent strings in yaml
Signed-off-by: xibz <impactbchang@gmail.com>
1 parent 68c260f commit afb3791

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/linters/.eslintrc.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
plugins:
22
- jsonc
33
overrides:
4-
- files:
5-
- "schemas/*.json"
6-
- "examples/*.json"
7-
parser: "jsonc-eslint-parser"
4+
- files: "*.json"
5+
parser: jsonc-eslint-parser
86
rules:
97
# These are the set of rules that belong to jsonc. For more information,
108
# https://ota-meshi.github.io/eslint-plugin-jsonc/rules

.github/workflows/main.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,20 @@ jobs:
2828
uses: github/super-linter/slim@v4
2929
env:
3030
VALIDATE_ALL_CODEBASE: true
31-
DEFAULT_BRANCH: main
3231
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3332
VALIDATE_MARKDOWN: true
3433
VALIDATE_JSON: true
34+
# superlinter runs each linter on a per file bases and does not look
35+
# at tool specific configuration to determine whether or not to the
36+
# lint the given file.
37+
#
38+
# Due to that we need to globally include or exclude files. This also
39+
# makes tools less flexible with one another in that if a tool
40+
# requires a specific folder to be included and excluded, but other
41+
# tools require must lint the excluded folder, then this pattern does
42+
# not work. Instead superlinter cannot be used in that case, and the
43+
# linter itself needs to be ran outside of superlinter.
44+
FILTER_REGEX_INCLUDE: .*\/(custom|examples|schemas)\/.*
3545

3646
jsonschema:
3747
name: Validate Schemas and Examples

0 commit comments

Comments
 (0)