-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
30 lines (25 loc) · 1.04 KB
/
Copy path.editorconfig
File metadata and controls
30 lines (25 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Indentation was the one formatting rule this repo had no gate for. The Rust side has
# `cargo fmt --check` in ci.yml, but the TypeScript side has ESLint, which carries no formatting
# rules here on purpose: adding Prettier would put a new package into a tree that deliberately runs
# `minimumReleaseAge` and `blockExoticSubdeps`, for a problem an editor setting already solves.
#
# The drift this exists to stop was real rather than hypothetical. Every file under `src/` uses four
# spaces except `src/main.tsx`, which was scaffolded with two and stayed that way because nothing
# read it.
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
# Markdown treats trailing whitespace as a hard line break, so trimming it would silently rewrite
# a document's rendering rather than tidy it.
[*.md]
trim_trailing_whitespace = false
# YAML's own convention, and what every file in .github/workflows/ already uses.
[*.{yml,yaml}]
indent_size = 4
[*.json]
indent_size = 4