Skip to content

Commit

Permalink
Add .editorconfig file
Browse files Browse the repository at this point in the history
This adds a .editorconfig file to the root of the directory.

Closes coala#80
  • Loading branch information
utkarsh2102 committed Nov 30, 2018
1 parent fc11157 commit 70a12aa
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .editorconfig
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

0 comments on commit 70a12aa

Please sign in to comment.