1- # EditorConfig is awesome: http://EditorConfig.org
2-
3- # https://github.com/jokeyrhyme/standard-editorconfig
4-
51# top-most EditorConfig file
62root = true
73
8- # defaults
4+ # All files
95[* ]
106charset = utf-8
117end_of_line = lf
8+ indent_size = 2
9+ indent_style = space
1210insert_final_newline = true
1311trim_trailing_whitespace = true
1412
1513# Solidity
16- [* .{sol,solidity} ]
17- indent_size = 4
18- indent_style = space
19-
20-
21- # Bazel: https://bazel.build/
22- # https://github.com/bazelbuild/buildtools/blob/master/BUILD.bazel
23- [* .{bazel,bzl} ]
14+ # https://github.com/sambacha/prettier-config-solidity
15+ [* .sol ]
2416indent_size = 4
2517indent_style = space
2618
27- # CSS
28- # https://google.github.io/styleguide/htmlcssguide.xml#General_Formatting_Rules
29- # http://cssguidelin.es/#syntax-and-formatting
30- [* .css ]
31- indent_size = 2
32- indent_style = space
33- trim_trailing_whitespace = true
34-
35- # GNU make
36- # https://www.gnu.org/software/make/manual/html_node/Recipe-Syntax.html
37- [Makefile ]
38- indent_style = tab
39-
40- # Go
41- # https://golang.org/cmd/gofmt/
42- [{go.mod,* .go} ]
43- indent_style = tab
44-
45- # GraphQL
46- # https://graphql.org/learn/
47- # https://prettier.io
48- [* .graphql ]
49- indent_size = 2
50- indent_style = space
19+ # Markdown
20+ [* .{md,adoc,asciidoc} ]
21+ charset = utf-8
22+ end_of_line = lf
23+ insert_final_newline = true
24+ trim_trailing_whitespace = false
5125
52- # HTML
53- # https://google.github.io/styleguide/htmlcssguide.xml#General_Formatting_Rules
54- [* .{htm,html} ]
55- indent_size = 2
26+ # Match nix files, set indent to spaces with width of two
27+ [* .nix ]
5628indent_style = space
57- trim_trailing_whitespace = true
58-
59- # Java
60- # https://google.github.io/styleguide/javaguide.html#s4.2-block-indentation
61- [* .java ]
6229indent_size = 2
63- indent_style = space
6430
6531# JavaScript, JSON, JSX, JavaScript Modules, TypeScript
6632# https://github.com/feross/standard
6733# https://prettier.io
68- [* .{cjs,js,json,jsx,mjs,ts,tsx} ]
69- indent_size = 2
70- indent_style = space
71-
72- # Kotlin
73- # https://android.github.io/kotlin-guides/style.html#indentation
74- [* .{kt,kts} ]
75- indent_size = 4
76- indent_style = space
77-
78- # LESS
79- # https://github.com/less/less-docs#less-standards
80- [* .less ]
34+ [* .{cjs,js,json,jsx,mjs,ts,tsx,mts,cts} ]
8135indent_size = 2
8236indent_style = space
8337
84- # PHP
85- # http://www.php-fig.org/psr/psr-2/
86- [* .php ]
87- indent_size = 4
88- indent_style = space
89-
90- # Python
91- # https://www.python.org/dev/peps/pep-0008/#code-lay-out
92- [* .py ]
93- indent_size = 4
94- indent_style = space
95-
96- # Ruby
97- # http://www.caliban.org/ruby/rubyguide.shtml#indentation
98- [* .rb ]
38+ # TOML
39+ # https://github.com/toml-lang/toml/tree/master/examples
40+ [* .toml ]
9941indent_size = 2
10042indent_style = space
10143
102- # Rust
103- # https://github.com/rust-lang/rust/blob/master/src/doc/style/style/whitespace.md
104- [* .rs ]
105- indent_size = 4
106- indent_style = space
107- insert_final_newline = false
108- trim_trailing_whitespace = true
109-
110- # SASS
111- # https://sass-guidelin.es/#syntax--formatting
112- [* .{sass,scss} ]
44+ # YAML
45+ # http://yaml.org/spec/1.2/2009-07-21/spec.html#id2576668
46+ [* .{yaml,yml} ]
11347indent_size = 2
11448indent_style = space
11549
@@ -119,20 +53,25 @@ indent_style = space
11953indent_size = 2
12054indent_style = space
12155
122- # Svelte
123- # https://github.com/sveltejs/svelte/blob/master/.editorconfig
124- [* .svelte ]
125- indent_size = 2
126- indent_style = tab
127-
128- # TOML
129- # https://github.com/toml-lang/toml/tree/master/examples
130- [* .toml ]
131- indent_size = 2
132- indent_style = space
133-
134- # YAML
135- # http://yaml.org/spec/1.2/2009-07-21/spec.html#id2576668
136- [* .{yaml,yml} ]
137- indent_size = 2
138- indent_style = space
56+ # confg + cfg
57+ [* .{conf,cfg} ]
58+ charset = UTF-8
59+ end_of_line = LF
60+ indent_size = 4
61+ indent_style = tab
62+ insert_final_newline = true
63+ tab_width = 4
64+ trim_trailing_whitespace = true
65+
66+ # Match diffs, avoid to trim trailing whitespace
67+ [* .{diff,patch} ]
68+ trim_trailing_whitespace = false
69+
70+ # Ignore fixtures and vendored files
71+ [{dist,artifacts,vendor,test/fixtures,tests_config,__snapshot__,}/** ]
72+ charset = unset
73+ end_of_line = unset
74+ indent_size = unset
75+ indent_style = unset
76+ insert_final_newline = unset
77+ trim_trailing_spaces = unset
0 commit comments