forked from coala/coala-atom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a .editorconfig file to the root of the directory. Closes coala#80
- Loading branch information
1 parent
fc11157
commit 70a12aa
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# https://editorconfig.org | ||
|
||
# top-most editorconfig file | ||
root = true | ||
|
||
[*] | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
max_line_length = 79 | ||
|
||
# Set default charset | ||
[*.{js,coffee,py}] | ||
charset = utf-8 | ||
|
||
# For all the Python files | ||
[*.py] | ||
indent_style = tab | ||
indent_size = 4 | ||
|
||
# For all the YAML and JSON files | ||
[*.{yml,json}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Indentation override for all JS and coffee files under the lib directory | ||
[lib/*.{js,coffee}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
# Indentation override for all JS and coffee files under the spec directory | ||
[spec/**.{js,coffee}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
|
||
# Matches the exact files either package.json or .travis.yml | ||
[{package.json,.travis.yml}] | ||
indent_style = space | ||
indent_size = 2 |