Skip to content

Commit

Permalink
closes #509 Document JavaScript coding guidelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Cronus1007 committed Dec 22, 2020
1 parent bab9b29 commit 7217188
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
defaults
not ie 11
49 changes: 49 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# Use 4 spaces for the Python files
[*.py]
indent_size = 4
max_line_length = 80

# The JSON files contain newlines inconsistently
[*.json]
indent_size = 4
insert_final_newline = ignore

# No need to use the spaces for contents.lr file
[*.lr]
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = ignore
insert_final_newline = ignore

# No need to use the spaces for .ini files
[*.ini]
indent_style = ignore
insert_final_newline = ignore

# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
insert_final_newline = ignore

# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab

# Batch files use tabs for indentation
[*.bat]
indent_style = tab

[*.md]
trim_trailing_whitespace = false

0 comments on commit 7217188

Please sign in to comment.