Skip to content

Commit a055bc0

Browse files
Apply JavaScript settings to TypeScript too
1 parent 25b178a commit a055bc0

1 file changed

Lines changed: 27 additions & 26 deletions

File tree

.editorconfig

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
# Editor config
2-
# http://EditorConfig.org
3-
4-
# This EditorConfig overrides any parent EditorConfigs
5-
root = true
6-
7-
# Default rules applied to all file types
8-
[*]
9-
10-
# No trailing spaces, newline at EOF
11-
charset = utf-8
12-
trim_trailing_whitespace = true
13-
insert_final_newline = true
14-
15-
# 2 space indentation
16-
indent_style = space
17-
indent_size = 2
18-
19-
# JavaScript-specific settings
20-
[*.js]
21-
quote_type = single
22-
continuation_indent_size = 2
23-
curly_bracket_next_line = false
24-
indent_brace_style = BSD
25-
spaces_around_operators = true
26-
spaces_around_brackets = none
1+
# Editor config
2+
# http://EditorConfig.org
3+
4+
# This EditorConfig overrides any parent EditorConfigs
5+
root = true
6+
7+
# Default rules applied to all file types
8+
[*]
9+
10+
# No trailing spaces, newline at EOF
11+
charset = utf-8
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true
14+
end_of_line = lf
15+
16+
# 2 space indentation
17+
indent_style = space
18+
indent_size = 2
19+
20+
# JavaScript-specific settings
21+
[*.{js,ts}]
22+
quote_type = double
23+
continuation_indent_size = 2
24+
curly_bracket_next_line = false
25+
indent_brace_style = BSD
26+
spaces_around_operators = true
27+
spaces_around_brackets = none

0 commit comments

Comments
 (0)