-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
41 lines (37 loc) · 1.08 KB
/
.editorconfig
File metadata and controls
41 lines (37 loc) · 1.08 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
31
32
33
34
35
36
37
38
39
40
41
# Run in IRB console to get list of file extensions kept in the repository:
#
# ext = `git ls-files`.split("\n").group_by{|x|File.extname(x)};
# ext.map{|x,v|[x,v.size]}.sort_by{|x|-x.last}.each{|k,v|puts "#{k}: #{v}"};nil
root = true
[*.{rb,yml,editorconfig,json,ru,slim,js,scss,svg,vue,svelte,rake,erb,sass}]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
max_line_length = 100
trim_trailing_whitespace = true
[{Capfile,Gemfile*,Procfile*,Rakefile,.env*,.git*,.rspec,.ruby-version}]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
max_line_length = 120
trim_trailing_whitespace = true
[*.{md,md.erb}]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = unset
max_line_length = unset
trim_trailing_whitespace = false
[{{.git,bin,log,node_modules,public,storage,tmp,vendor}/**,*.lock,db/schema.rb}]
charset = unset
end_of_line = unset
insert_final_newline = unset
indent_style = unset
indent_size = unset
max_line_length = unset
trim_trailing_whitespace = unset