|
1 |
| -# Copied from: rasa/dotfiles/.editorconfig |
2 |
| -# EDIT THE ABOVE FILE OR YOUR CHANGES WILL BE LOST! |
3 |
| -# Docs: https://editorconfig.org/#file-format-details |
4 |
| - |
5 |
| -# EditorConfig (is awesome): https://editorconfig.github.io |
6 |
| - |
7 |
| -# * top-most EditorConfig file |
8 |
| -root = true |
9 |
| - |
10 |
| -# default style settings |
11 |
| -[*] |
12 |
| -charset = utf-8 |
13 |
| -end_of_line = lf |
14 |
| -indent_size = 2 |
15 |
| -indent_style = space |
16 |
| -insert_final_newline = true |
17 |
| -trim_trailing_whitespace = true |
18 |
| - |
19 |
| -# Batch files require CRLF newlines |
20 |
| -[*.{bat,cmd,BAT,CMD}] |
21 |
| -# a la VT102/Televideo 950 |
22 |
| -max_line_length = 132 |
23 |
| -end_of_line = crlf |
24 |
| - |
25 |
| -# MSVC project files require CRLF newlines |
26 |
| -[*.{dsp,dsw,sln,vcproj,vcprops,DSP,DSW,SLN,VCPROJ,VCPROPS}] |
27 |
| -max_line_length = 132 |
28 |
| -end_of_line = crlf |
29 |
| - |
30 |
| -# Google JavaScript Style Guide (https://google.github.io/styleguide/javascriptguide.xml) |
31 |
| -[*.js] |
32 |
| -max_line_length = 132 |
33 |
| -# @TODO max_line_length = 80 |
34 |
| - |
35 |
| -[*.json] |
36 |
| -indent_size = unset |
37 |
| -# https://github.com/zaach/jsonlint |
38 |
| -# generates files that do not have final newlines |
39 |
| -# so, the setting: |
40 |
| -# "trailing-newline": false |
41 |
| -# was added to |
42 |
| -# https://github.com/rasa/workflows/blob/main/.github/linters/.jsonlintrc.json |
43 |
| -# per |
44 |
| -# https://github.com/prantlf/jsonlint/tree/master?tab=readme-ov-file#usage |
45 |
| -# GitHub UI always adds final newlines, when files are edited |
46 |
| -insert_final_newline = unset |
47 |
| - |
48 |
| -# Makefiles require tab indentation |
49 |
| -[{Makefile{,.*},makefile{,.*},GNUMakefile{,.*},*.mak,*.mk}] |
50 |
| -indent_style = tab |
51 |
| -max_line_length = 132 |
52 |
| -# @TODO max_line_length = 80 |
53 |
| - |
54 |
| -# Google Python Style Guide (https://google.github.io/styleguide/pyguide.html) |
55 |
| -[*.py] |
56 |
| -indent_size = 4 |
57 |
| -max_line_length = 132 |
58 |
| -# @TODO max_line_length = 80 |
59 |
| - |
60 |
| -# Google Shell Style Guide (https://google.github.io/styleguide/shellguide.html) |
61 |
| -[*.sh] |
62 |
| -# shfmt uses these settings: |
63 |
| -# like -i=2 |
64 |
| -indent_style = space |
65 |
| -indent_size = 2 |
66 |
| -# --language-variant |
67 |
| -# shell_variant = posix # like -ln=posix |
68 |
| -binary_next_line = true # like -bn |
69 |
| -# --case-indent |
70 |
| -switch_case_indent = true # like -ci |
71 |
| -# space_redirects = true # like -sr |
72 |
| -# keep_padding = true # like -kp |
73 |
| -# --func-next-line |
74 |
| -# function_next_line = true # like -fn |
75 |
| -max_line_length = 132 |
76 |
| -# @TODO max_line_length = 80 |
77 |
| - |
78 |
| -[*.vbs] |
79 |
| -indent_size = unset |
80 |
| -max_line_length = 132 |
81 |
| -# @TODO max_line_length = 80 |
82 |
| - |
83 |
| -# json files without .json extension: |
84 |
| -[{.ecrc,.textlintrc}] |
85 |
| -insert_final_newline = unset |
86 |
| - |
87 |
| -# unrooted file extensions: |
88 |
| -[*.{cmd.*,diff,ignore,patch,txt,wip}] |
89 |
| -end_of_line = unset |
90 |
| -indent_size = unset |
91 |
| -indent_style = unset |
92 |
| -insert_final_newline = unset |
93 |
| -trim_trailing_whitespace = unset |
94 |
| - |
95 |
| -# unrooted directories: |
96 |
| -[{.ignore,.vendor,.wip,ignore,vendor,wip}/**] |
97 |
| -end_of_line = unset |
98 |
| -indent_size = unset |
99 |
| -indent_style = unset |
100 |
| -insert_final_newline = unset |
101 |
| -trim_trailing_whitespace = unset |
102 |
| - |
103 |
| -# unrooted files: |
104 |
| -[{archive,plug.vim}] |
105 |
| -end_of_line = unset |
106 |
| -indent_size = unset |
107 |
| -indent_style = unset |
108 |
| -insert_final_newline = unset |
109 |
| -trim_trailing_whitespace = unset |
110 |
| - |
111 |
| -# rooted files/directories: |
112 |
| -[/{.docker/*,.fonts.conf,.gitconfig,.mylogin.cnf*,.toprc,.vscode/default.code-snippets}] |
113 |
| -end_of_line = unset |
114 |
| -indent_size = unset |
115 |
| -indent_style = unset |
116 |
| -insert_final_newline = unset |
117 |
| -trim_trailing_whitespace = unset |
118 |
| - |
119 |
| -# cspell:ignore ecrc, jsonlint, Makefiles, mylogin, textlintrc, toprc |
120 |
| - |
121 |
| -# cSpell:ignore Televideo, vcproj, VCPROJ, vcprops, VCPROPS |
| 1 | +# Copied from: rasa/dotfiles/.editorconfig |
| 2 | +# EDIT THE ABOVE FILE OR YOUR CHANGES WILL BE LOST! |
| 3 | +# Docs: https://editorconfig.org/#file-format-details |
| 4 | + |
| 5 | +# EditorConfig (is awesome): https://editorconfig.github.io |
| 6 | + |
| 7 | +# * top-most EditorConfig file |
| 8 | +root = true |
| 9 | + |
| 10 | +# default style settings |
| 11 | +[*] |
| 12 | +charset = utf-8 |
| 13 | +end_of_line = lf |
| 14 | +indent_size = 2 |
| 15 | +indent_style = space |
| 16 | +insert_final_newline = true |
| 17 | +trim_trailing_whitespace = true |
| 18 | + |
| 19 | +# Batch files require CRLF newlines |
| 20 | +[*.{bat,cmd,BAT,CMD}] |
| 21 | +# a la VT102/Televideo 950 |
| 22 | +max_line_length = 132 |
| 23 | +end_of_line = crlf |
| 24 | + |
| 25 | +# MSVC project files require CRLF newlines |
| 26 | +[*.{dsp,dsw,sln,vcproj,vcprops,DSP,DSW,SLN,VCPROJ,VCPROPS}] |
| 27 | +max_line_length = 132 |
| 28 | +end_of_line = crlf |
| 29 | + |
| 30 | +# Google JavaScript Style Guide (https://google.github.io/styleguide/javascriptguide.xml) |
| 31 | +[*.js] |
| 32 | +max_line_length = 132 |
| 33 | +# @TODO max_line_length = 80 |
| 34 | + |
| 35 | +[*.json] |
| 36 | +indent_size = unset |
| 37 | +# https://github.com/zaach/jsonlint |
| 38 | +# generates files that do not have final newlines |
| 39 | +# so, the setting: |
| 40 | +# "trailing-newline": false |
| 41 | +# was added to |
| 42 | +# https://github.com/rasa/workflows/blob/main/.github/linters/.jsonlintrc.json |
| 43 | +# per |
| 44 | +# https://github.com/prantlf/jsonlint/tree/master?tab=readme-ov-file#usage |
| 45 | +# GitHub UI always adds final newlines, when files are edited |
| 46 | +insert_final_newline = unset |
| 47 | + |
| 48 | +# Makefiles require tab indentation |
| 49 | +[{Makefile{,.*},makefile{,.*},GNUMakefile{,.*},*.mak,*.mk}] |
| 50 | +indent_style = tab |
| 51 | +max_line_length = 132 |
| 52 | +# @TODO max_line_length = 80 |
| 53 | + |
| 54 | +# Google Python Style Guide (https://google.github.io/styleguide/pyguide.html) |
| 55 | +[*.py] |
| 56 | +indent_size = 4 |
| 57 | +max_line_length = 132 |
| 58 | +# @TODO max_line_length = 80 |
| 59 | + |
| 60 | +# Google Shell Style Guide (https://google.github.io/styleguide/shellguide.html) |
| 61 | +[*.sh] |
| 62 | +# shfmt uses these settings: |
| 63 | +# like -i=2 |
| 64 | +indent_style = space |
| 65 | +indent_size = 2 |
| 66 | +# --language-variant |
| 67 | +# shell_variant = posix # like -ln=posix |
| 68 | +binary_next_line = true # like -bn |
| 69 | +# --case-indent |
| 70 | +switch_case_indent = true # like -ci |
| 71 | +# space_redirects = true # like -sr |
| 72 | +# keep_padding = true # like -kp |
| 73 | +# --func-next-line |
| 74 | +# function_next_line = true # like -fn |
| 75 | +max_line_length = 132 |
| 76 | +# @TODO max_line_length = 80 |
| 77 | + |
| 78 | +[*.vbs] |
| 79 | +indent_size = unset |
| 80 | +max_line_length = 132 |
| 81 | +# @TODO max_line_length = 80 |
| 82 | + |
| 83 | +# json files without .json extension: |
| 84 | +[{.ecrc,.textlintrc}] |
| 85 | +insert_final_newline = unset |
| 86 | + |
| 87 | +# unrooted file extensions: |
| 88 | +[*.{cmd.*,diff,ignore,patch,txt,wip}] |
| 89 | +end_of_line = unset |
| 90 | +indent_size = unset |
| 91 | +indent_style = unset |
| 92 | +insert_final_newline = unset |
| 93 | +trim_trailing_whitespace = unset |
| 94 | + |
| 95 | +# unrooted directories: |
| 96 | +[{.ignore,.vendor,.wip,ignore,vendor,wip}/**] |
| 97 | +end_of_line = unset |
| 98 | +indent_size = unset |
| 99 | +indent_style = unset |
| 100 | +insert_final_newline = unset |
| 101 | +trim_trailing_whitespace = unset |
| 102 | + |
| 103 | +# unrooted files: |
| 104 | +[{archive,plug.vim}] |
| 105 | +end_of_line = unset |
| 106 | +indent_size = unset |
| 107 | +indent_style = unset |
| 108 | +insert_final_newline = unset |
| 109 | +trim_trailing_whitespace = unset |
| 110 | + |
| 111 | +# rooted files/directories: |
| 112 | +[/{.docker/*,.fonts.conf,.gitconfig,.mylogin.cnf*,.toprc,.vscode/default.code-snippets}] |
| 113 | +end_of_line = unset |
| 114 | +indent_size = unset |
| 115 | +indent_style = unset |
| 116 | +insert_final_newline = unset |
| 117 | +trim_trailing_whitespace = unset |
| 118 | + |
| 119 | +# cspell:ignore ecrc, jsonlint, Makefiles, mylogin, textlintrc, toprc |
| 120 | + |
| 121 | +# cSpell:ignore Televideo, vcproj, VCPROJ, vcprops, VCPROPS |
0 commit comments