From 90b2153a6d2620f55c22c09e9a624f81e50cca44 Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Tue, 8 Nov 2022 22:48:33 +0100 Subject: style: Add `.editorconfig` file (#42) * style: Add `.editorconfig` file Describes some basic formatting like indentation with spaces, indentation size, final newlines, etc * docs: Add explanation for EditorConfig --- .editorconfig | 11 +++++++++++ README.md | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..76edc28d --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +# For more info on `.editorconfig` file see https://EditorConfig.org + +# top-most EditorConfig file +root = true + +[*.{rs,ts,vue,css}] +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +indent_style = space +indent_size = 4 diff --git a/README.md b/README.md index 22c0b286..5ae3b1b9 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,10 @@ else { Release builds are generally done via CI. To build locally, make sure typescript is compiled (`./node_modules/.bin/rollup --config`), then run `npm run tauri build`. +### Other + +This repo uses [EditorConfig](https://editorconfig.org/) to define some basic formatting rules. Find a plugin for your IDE [here](https://editorconfig.org/#download). + ## Why yet another Northstar intaller/updater/mod-manager instead of contributing to an existing one? The 3 main GUI tools for handling such tasks with Norhtstar are -- cgit v1.2.3