Skip to content

Commit 7217188

Browse files
committed
closes creativecommons#509 Document JavaScript coding guidelines
1 parent bab9b29 commit 7217188

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.browserslistrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
defaults
2+
not ie 11

.editorconfig

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
# Use 4 spaces for the Python files
13+
[*.py]
14+
indent_size = 4
15+
max_line_length = 80
16+
17+
# The JSON files contain newlines inconsistently
18+
[*.json]
19+
indent_size = 4
20+
insert_final_newline = ignore
21+
22+
# No need to use the spaces for contents.lr file
23+
[*.lr]
24+
insert_final_newline = true
25+
trim_trailing_whitespace = true
26+
indent_style = ignore
27+
insert_final_newline = ignore
28+
29+
# No need to use the spaces for .ini files
30+
[*.ini]
31+
indent_style = ignore
32+
insert_final_newline = ignore
33+
34+
# Minified JavaScript files shouldn't be changed
35+
[**.min.js]
36+
indent_style = ignore
37+
insert_final_newline = ignore
38+
39+
# Makefiles always use tabs for indentation
40+
[Makefile]
41+
indent_style = tab
42+
43+
# Batch files use tabs for indentation
44+
[*.bat]
45+
indent_style = tab
46+
47+
[*.md]
48+
trim_trailing_whitespace = false
49+

0 commit comments

Comments
 (0)