Skip to content

Commit

Permalink
enforce CRLF and TAB all the way
Browse files Browse the repository at this point in the history
  • Loading branch information
tinovyatkin committed Aug 18, 2019
1 parent 36ab8a5 commit f00167f
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ indent_style = tab
trim_trailing_whitespace = true
insert_final_newline = true

[package.json]
[*.{json,yml,sh}]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
25 changes: 25 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# Enforce CRLF to all files by default
* text=auto eol=crlf

#
# The above will handle all files NOT found below
#

# Graphics
*.png binary
*.jpg binary

# Scripts
*.sh text eol=lf

# Serialisation
*.json text eol=lf
*.yml text eol=lf

#
# Exclude files from exporting
#

.gitattributes export-ignore
.gitignore export-ignore
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
"EditorConfig.editorconfig"
]
}
19 changes: 19 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"files.eol": "\r\n",
"editor.insertSpaces": false,
"[json]": {
"files.eol": "\n",
"editor.insertSpaces": true,
"editor.tabSize": 2
},
"[yaml]": {
"files.eol": "\n",
"editor.insertSpaces": true,
"editor.tabSize": 2
},
"[shellscript]": {
"files.eol": "\n",
"editor.insertSpaces": true,
"editor.tabSize": 2
}
}

0 comments on commit f00167f

Please sign in to comment.