Skip to content

Commit b237a06

Browse files
committed
Add .editorconfig, .gitattributes, .vscode
1 parent d41b503 commit b237a06

4 files changed

Lines changed: 73 additions & 0 deletions

File tree

.editorconfig

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# https://editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[.gitattributes]
13+
indent_size = 16
14+
15+
[*.{diff,patch}]
16+
end_of_line = lf
17+
trim_trailing_whitespace = false
18+
19+
[Makefile*]
20+
indent_size = 4
21+
indent_style = tab
22+
23+
[*.bash]
24+
end_of_line = lf
25+
indent_size = 2
26+
27+
[*.{js,json}]
28+
indent_size = 2
29+
30+
[*.md]
31+
indent_size = 2
32+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# CAUTION:
2+
# Always run the following command after adding/editing an
3+
# `eol` entry:
4+
#
5+
# git add --renormalize FILES_WITH_AFFECTED_EXTENSION
6+
#
7+
# This keeps existing files consistent with the new setting.
8+
#
9+
# Example:
10+
#
11+
# git add --renormalize '*.foo' '*.bar'
12+
13+
.editorconfig text eol=lf
14+
.gitattributes text eol=lf
15+
16+
# LF required for interactive patching as of Git 2.17.1
17+
*.diff text eol=lf
18+
*.patch text eol=lf
19+
20+
Makefile* text eol=lf
21+
22+
# LF required to allow shell scripts to run
23+
*.bash text eol=lf
24+
25+
*.json text eol=lf
26+
*.md text eol=lf

.vscode/extensions.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"editorconfig.editorconfig",
4+
"timonwong.shellcheck"
5+
]
6+
}

.vscode/settings.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"files.exclude": {
3+
"**/.git": true
4+
},
5+
"shellcheck.customArgs": [
6+
"--external-sources"
7+
],
8+
"shellcheck.useWorkspaceRootAsCwd": true
9+
}

0 commit comments

Comments
 (0)