Matthew Maurer | 8c1c280 | 2020-06-02 11:15:21 -0700 | [diff] [blame^] | 1 | # EditorConfig configuration |
| 2 | # https://editorconfig.org |
| 3 | |
| 4 | # Top-most EditorConfig file |
| 5 | root = true |
| 6 | |
| 7 | # Unix-style newlines with a newline ending every file, utf-8 charset |
| 8 | [*] |
| 9 | end_of_line = lf |
| 10 | insert_final_newline = true |
| 11 | trim_trailing_whitespace = true |
| 12 | charset = utf-8 |
| 13 | |
| 14 | # Match rust/toml, set 4 space indentation |
| 15 | [*.{rs,toml}] |
| 16 | indent_style = space |
| 17 | indent_size = 4 |
| 18 | |
| 19 | # Match json/yaml/markdown, set 2 space indentation |
| 20 | [*.{json,yml,md}] |
| 21 | indent_style = space |
| 22 | indent_size = 2 |