From 041d8a562d9c6ee4652d24101cd19ace32a12de6 Mon Sep 17 00:00:00 2001 From: Shota FUJI Date: Thu, 13 Mar 2025 21:37:36 +0900 Subject: [PATCH] Create `.editorconfig` file For consistent code styles. I mostly wrote down the current code style. --- .editorconfig | 27 +++++++++++++++++++++++++++ license | 1 + 2 files changed, 28 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..75f3905 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +# Copyright 2025 Shota FUJI +# SPDX-License-Identifier: MIT + +# Do not use `.editorconfig` file outside this project. +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +trim_trailing_whitespace = true +indent_style = tab + +[{*.html,*.css,readme}] +indent_style = space +indent_size = 2 + +# YAML does not support tab indentation +[*.{yaml,yml}] +indent_style = space +indent_size = 2 + +# Nix does not like tab indentation +# https://github.com/NixOS/nix/issues/3759 +[*.nix] +indent_style = space +indent_size = 2 diff --git a/license b/license index fc9152a..8c4e870 100644 --- a/license +++ b/license @@ -1,6 +1,7 @@ The MIT License (MIT) Copyright (c) Anirudh Oppiliappan +Copyright 2025 Shota FUJI Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the -- 2.51.2