-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
40 lines (34 loc) · 1.05 KB
/
Copy path.editorconfig
File metadata and controls
40 lines (34 loc) · 1.05 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
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# defaults
[*]
# every text file:
charset = utf-8
# this repo is not meant to be edited in Windows, so LF is ok
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
# shellscript, Dockerfile, json, ini, cfg, etc:
indent_style = tab
max_line_length = 100
# tab_width and indent_width is not used, instead you can set your preferred indentation width
# in editor and browser, see my examples:
# Spacemacs: https://github.com/Potpourri/dotfiles/blob/master/spacemacs/spacemacs
# Firefox: https://github.com/Potpourri/dotfiles/blob/master/firefox/userContent.css
# Nix lang
# code style: https://nixos.org/nixpkgs/manual/#sec-syntax
[*.nix]
indent_style = space
indent_width = 2
# YAML
# tabs are not allowed: https://yaml.org/faq.html
[*.{yaml,yml}]
indent_style = space
indent_width = 2
# Python
# code style: https://www.python.org/dev/peps/pep-0008/
# with some exceptions:
[*.{py,pyi}]
indent_style = tab # instead space
max_line_length = 100 # instead 79