From 25e324bb99008e9fd8103214a6b158252f3b4d5b Mon Sep 17 00:00:00 2001 From: encode42 Date: Fri, 8 May 2026 19:42:31 -0400 Subject: [PATCH] Include linting and formatting configuration files --- .editorconfig | 21 +++++++++++++++++++ flake.nix | 1 + readme.md | 56 ++++++++++++++++++++++++++------------------------- rumdl.toml | 27 +++++++++++++++++++++++++ 4 files changed, 78 insertions(+), 27 deletions(-) create mode 100644 .editorconfig create mode 100644 rumdl.toml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..cd6e058 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,21 @@ +root = true ; + +[*] +charset = utf-8 + +indent_style = tab +indent_size = 4 + +ij_continuation_indent_size = 4 + +trim_trailing_whitespace = true +insert_final_newline = true +end_of_line = lf + +[*.md] +indent_style = space +indent_size = 2 + +[*.json] +indent_style = tab +indent_size = 4 \ No newline at end of file diff --git a/flake.nix b/flake.nix index 6ef1951..ad862c4 100644 --- a/flake.nix +++ b/flake.nix @@ -77,6 +77,7 @@ ncurses patchelf zlib + rumdl ]; buildInputs = libs; diff --git a/readme.md b/readme.md index 1ddfd25..86c8ad0 100644 --- a/readme.md +++ b/readme.md @@ -1,10 +1,12 @@ # MEOWS -*my exising options will survive* +*my existing options will survive* ## What? -Similar to YOSBR or Configured Defaults, this mod provides a way to copy default game files when Minecraft is started. +Similar to [YOSBR](https://modrinth.com/mod/yosbr) +or [Configured Defaults](https://modrinth.com/mod/configured-defaults), this mod provides a way to copy default game +files when Minecraft is started. This is useful for mod pack creators who need to include configuration files but don't want to reset user changes after every update. @@ -25,15 +27,15 @@ version. Here's an example that will overwrite the `options.txt` file: ```json { - "version": 2, - "actions": [ - { - "version": 2, - "overwrite": [ - "options.txt" - ] - } - ] + "version": 2, + "actions": [ + { + "version": 2, + "overwrite": [ + "options.txt" + ] + } + ] } ``` @@ -44,21 +46,21 @@ For overwrite actions, the file must have a corresponding file located in the `d ```json { - "version": 3, - "actions": [ - { - "version": 3, - "delete": [ - "options.txt" - ] - }, - { - "version": 2, - "overwrite": [ - "options.txt" - ] - } - ] + "version": 3, + "actions": [ + { + "version": 3, + "delete": [ + "options.txt" + ] + }, + { + "version": 2, + "overwrite": [ + "options.txt" + ] + } + ] } ``` @@ -90,4 +92,4 @@ In the future, probably. Ideally, this mod should be absolutely effortless to maintain. As such, I opted for the "right" ways when it came to many architectural decisions, notably avoiding the hacky language provider method other similar mods use in order to run as soon as possible. This does mean that some other mods might create files before MEOWS is able to copy their defaults. -However, I've found that these cases are uncommon enough to where it's not much of an issue. \ No newline at end of file +However, I've found that these cases are uncommon enough to where it's not much of an issue. diff --git a/rumdl.toml b/rumdl.toml new file mode 100644 index 0000000..41505d6 --- /dev/null +++ b/rumdl.toml @@ -0,0 +1,27 @@ +flavor = "gfm" + +extend-enable = ["MD060", "MD063", "MD070"] +disable = ["MD032"] + +line-length = 100 + +exclude = ["license.md"] + +[MD004] +style = "dash" + +[MD013] +paragraphs = false +blockquotes = false +tables = false + +[MD022] +lines-above = 1 +lines-below = 0 + +[MD033] +allowed-elements = ["img", "details", "summary"] + +[MD063] +style = "sentence-case" +ignore-words = ["MEOWS"] -- knotmirror 0.0.1