File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
plugins :
2
2
- jsonc
3
3
overrides :
4
- - files :
5
- - " schemas/*.json"
6
- - " examples/*.json"
7
- parser : " jsonc-eslint-parser"
4
+ - files : " *.json"
5
+ parser : jsonc-eslint-parser
8
6
rules :
9
7
# These are the set of rules that belong to jsonc. For more information,
10
8
# https://ota-meshi.github.io/eslint-plugin-jsonc/rules
Original file line number Diff line number Diff line change @@ -28,10 +28,20 @@ jobs:
28
28
uses : github/super-linter/slim@v4
29
29
env :
30
30
VALIDATE_ALL_CODEBASE : true
31
- DEFAULT_BRANCH : main
32
31
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
32
VALIDATE_MARKDOWN : true
34
33
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)\/.*
35
45
36
46
jsonschema :
37
47
name : Validate Schemas and Examples
You can’t perform that action at this time.
0 commit comments