Skip to content

Commit

Permalink
build: add more json extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
akikanellis committed Jan 28, 2024
1 parent cff51ea commit 74acd05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ FILTER_REGEX_EXCLUDE: "^(\
DISABLE_LINTERS:
# We are using Prettier instead
- JAVASCRIPT_STANDARD
- JSON_JSONLINT
# See: https://github.com/oxsecurity/megalinter/issues/2849
- REPOSITORY_DEVSKIM
# Dustilock does not have a way to ignore files, such as the temporarily
Expand All @@ -33,7 +32,8 @@ EDITORCONFIG_EDITORCONFIG_CHECKER_CONFIG_FILE: .ecrc.json
JSON_ESLINT_PLUGIN_JSONC_FILE_NAME: .eslintrc.js

# MegaLinter only passes in `.json` files by default
JSON_PRETTIER_FILE_EXTENSIONS: [.json, .json5]
JSON_V8R_FILE_EXTENSIONS: [.json, .json5]
# See: https://megalinter.io/latest/descriptors/json
JSON_PRETTIER_FILE_EXTENSIONS: [.json, .json5, .jsonc]
JSON_V8R_FILE_EXTENSIONS: [.json, .json5, .jsonc]

TYPESCRIPT_DEFAULT_STYLE: prettier
2 changes: 1 addition & 1 deletion .prettierrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ overrides:
# - https://github.com/prettier/prettier/issues/15942
# - https://github.com/prettier/prettier/issues/15945
# - https://github.com/prettier/prettier/issues/15956
- files: ["*.json"]
- files: ["*.json", "*.jsonc"]
options:
parser: json
trailingComma: none

0 comments on commit 74acd05

Please sign in to comment.