Skip to content

Commit

Permalink
add .mcmeta as a linted file type
Browse files Browse the repository at this point in the history
  • Loading branch information
serenibyss committed Nov 20, 2021
1 parent fbe02b4 commit c963aa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ ij_kotlin_wrap_elvis_expressions = 1
ij_kotlin_wrap_expression_body_functions = 0
ij_kotlin_wrap_first_method_in_call_chain = false

[{*.har,*.ire-wood,*.json,mcmod.info,pack.mcmeta}]
[{*.har,*.ire-wood,*.json,mcmod.info,*.mcmeta}]
indent_size = 2
ij_json_keep_blank_lines_in_code = 0
ij_json_keep_indents_on_empty_lines = false
Expand Down
2 changes: 1 addition & 1 deletion scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ IFS=$'\n' read -rd '' -a FILES <<< "$(git --no-pager diff --name-only HEAD "$(gi
ERROR=""
for i in "${FILES[@]}"
do
if [[ "$i" == *".java"* || "$i" == *".json"* ]]
if [[ "$i" == *".java"* || "$i" == *".json"* || "$i" == *".mcmeta"* ]]
then
OUTPUT=$(editorconfig-cli -e ../.editorconfig "../$i" 2>&1)
if [[ $? != 0 ]]
Expand Down

0 comments on commit c963aa9

Please sign in to comment.