Skip to content

Commit ec40fd8

Browse files
authored
Merge pull request creativecommons#584 from Cronus1007/jsguidelines
2 parents 41855ab + 00c2a1b commit ec40fd8

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.browserslistrc

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

.editorconfig

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 = 2
20+
insert_final_newline = true
21+
22+
# Minified JavaScript files shouldn't be changed
23+
[**.min.js]
24+
indent_style = 2
25+
insert_final_newline = ignore
26+
27+
# Makefiles always use tabs for indentation
28+
[Makefile]
29+
indent_style = tab
30+
31+
# Batch files use tabs for indentation
32+
[*.bat]
33+
indent_style = tab
34+
35+
[*.md]
36+
trim_trailing_whitespace = false
37+

0 commit comments

Comments
 (0)