diff --git a/.editorconfig b/.editorconfig index 713f4f7b0..73744d151 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,5 +6,8 @@ indent_size = 2 trim_trailing_whitespace = true insert_final_newline = true +[src/ScriptEditor/NetscriptDefinitions.d.ts] +trim_trailing_whitespace = false + [*.md] trim_trailing_whitespace = false diff --git a/doc/CONTRIBUTING.md b/doc/CONTRIBUTING.md index 4e4c7c6ea..9d2b6ce9d 100644 --- a/doc/CONTRIBUTING.md +++ b/doc/CONTRIBUTING.md @@ -151,6 +151,12 @@ upstream/master - Keep code-changes on a branch as small as possible. This makes it easier for code review. Each branch should be its own independent feature. - Regularly rebase your branch against `dev` to make sure you have the latest updates pulled. +### Special Exceptions + +- In `src/ScriptEditor/NetscriptDefinitions.d.ts`, there are two specially-formatted go boards with two trailing whitespaces. + Make sure your editor does not automatically format those examples. + You can look for changes to that part using `git diff` to make sure the whitespaces are still present. + ## Running locally Install