From f63e658965c94fe0e579edb99e470b2cff9ba27a Mon Sep 17 00:00:00 2001 From: Yesudeep Mangalapilly Date: Sun, 2 Feb 2025 22:10:41 -0800 Subject: [PATCH] fix(editorconfig): misconfiguration that would cause editors to format incorrectly #1786 Issue: https://github.com/firebase/genkit/issues/1786 CHANGELOG: - [ ] Makefiles, go files, and other related files use tabs for indentation. Set indent width for these to 4 to indentify this clearly. - [ ] Configure editor for Python to use 4 spaces for indentation. - [ ] Use linefeed `\n` character to end lines for all files so that tools work properly. --- .editorconfig | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.editorconfig b/.editorconfig index 5686b442a..42b59f896 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,9 +3,21 @@ root = true [*] charset = utf-8 -indent_style = space +end_of_line = lf indent_size = 2 +indent_style = space insert_final_newline = true -trim_trailing_whitespace = true max_line_length = 80 +trim_trailing_whitespace = true + +[*.{js,jsx,ts,tsx}] quote_type = single + +[*.py] +indent_size = 4 +indent_style = space +quote_type = single + +[{Makefile,go.mod,go.sum,*.go,.gitmodules}] +indent_size = 4 +indent_style = tab