editorconfig 0.15.1 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/package.json +59 -59
- package/{dist/src → src}/cli.d.ts +0 -0
- package/{dist/src → src}/cli.js +0 -0
- package/{dist/src → src}/index.d.ts +0 -0
- package/{dist/src → src}/index.js +0 -0
- package/{dist/src → src}/lib/ini.d.ts +0 -0
- package/{dist/src → src}/lib/ini.js +0 -0
- package/.editorconfig +0 -17
- package/.gitattributes +0 -2
- package/.gitmodules +0 -4
- package/.travis.yml +0 -15
- package/CMakeLists.txt +0 -16
- package/dist/package.json +0 -59
- package/src/cli.ts +0 -47
- package/src/index.ts +0 -279
- package/src/lib/ini.ts +0 -66
- package/tests/.editorconfig +0 -11
- package/tests/.git +0 -1
- package/tests/CMakeLists.txt +0 -66
- package/tests/README.md +0 -37
- package/tests/cli/CMakeLists.txt +0 -49
- package/tests/cli/cli.in +0 -7
- package/tests/filetree/CMakeLists.txt +0 -81
- package/tests/filetree/parent_directory/parent_directory.in +0 -17
- package/tests/filetree/parent_directory.in +0 -16
- package/tests/filetree/path_separator.in +0 -15
- package/tests/filetree/root_file/root_file.in +0 -1
- package/tests/filetree/root_file.in +0 -4
- package/tests/filetree/root_mixed/root_file.in +0 -4
- package/tests/glob/CMakeLists.txt +0 -242
- package/tests/glob/braces.in +0 -63
- package/tests/glob/brackets.in +0 -47
- package/tests/glob/question.in +0 -7
- package/tests/glob/star.in +0 -9
- package/tests/glob/star_star.in +0 -15
- package/tests/glob/utf8char.in +0 -6
- package/tests/parser/CMakeLists.txt +0 -154
- package/tests/parser/basic.in +0 -16
- package/tests/parser/bom.in +0 -6
- package/tests/parser/comments.in +0 -58
- package/tests/parser/crlf.in +0 -6
- package/tests/parser/whitespace.in +0 -68
- package/tests/properties/CMakeLists.txt +0 -71
- package/tests/properties/indent_size_default.in +0 -11
- package/tests/properties/lowercase_names.in +0 -6
- package/tests/properties/lowercase_values.in +0 -15
- package/tests/properties/tab_width_default.in +0 -9
- package/tsconfig.json +0 -28
- package/tslint.json +0 -118
package/tests/glob/star_star.in
DELETED
package/tests/glob/utf8char.in
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Copyright (c) 2011-2013 EditorConfig Team
|
|
3
|
-
# All rights reserved.
|
|
4
|
-
#
|
|
5
|
-
# Redistribution and use in source and binary forms, with or without
|
|
6
|
-
# modification, are permitted provided that the following conditions are met:
|
|
7
|
-
#
|
|
8
|
-
# 1. Redistributions of source code must retain the above copyright notice,
|
|
9
|
-
# this list of conditions and the following disclaimer.
|
|
10
|
-
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
-
# this list of conditions and the following disclaimer in the documentation
|
|
12
|
-
# and/or other materials provided with the distribution.
|
|
13
|
-
#
|
|
14
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
15
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
16
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
17
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
18
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
19
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
20
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
21
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
22
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
23
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
24
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
-
#
|
|
26
|
-
|
|
27
|
-
# Basic parser tests
|
|
28
|
-
|
|
29
|
-
# test repeat sections
|
|
30
|
-
new_ec_test(repeat_sections basic.in a.a "^option1=value1[ \t]*[\n\r]+option2=value2[ \t\n\r]*$")
|
|
31
|
-
new_ec_test(basic_cascade basic.in b.b "^option1=c[ \t]*[\n\r]+option2=b[ \t\n\r]*$")
|
|
32
|
-
|
|
33
|
-
# Tests for whitespace parsing
|
|
34
|
-
|
|
35
|
-
# test no whitespaces in property assignment
|
|
36
|
-
new_ec_test(no_whitespace whitespace.in test1.c "^key=value[ \t\n\r]*$")
|
|
37
|
-
|
|
38
|
-
# test single spaces around equals sign
|
|
39
|
-
new_ec_test(single_spaces_around_equals whitespace.in test2.c
|
|
40
|
-
"^key=value[ \t\n\r]*$")
|
|
41
|
-
|
|
42
|
-
# test multiple spaces around equals sign
|
|
43
|
-
new_ec_test(multiple_spaces_around_equals whitespace.in test3.c
|
|
44
|
-
"^key=value[ \t\n\r]*$")
|
|
45
|
-
|
|
46
|
-
# test spaces before property name
|
|
47
|
-
new_ec_test(spaces_before_property_name whitespace.in test4.c
|
|
48
|
-
"^key=value[ \t\n\r]*$")
|
|
49
|
-
|
|
50
|
-
# test spaces before after property value
|
|
51
|
-
new_ec_test(spaces_after_property_value whitespace.in test5.c
|
|
52
|
-
"^key=value[ \t\n\r]*$")
|
|
53
|
-
|
|
54
|
-
# test blank lines between properties
|
|
55
|
-
new_ec_test(blank_lines_between_properties whitespace.in test6.c
|
|
56
|
-
"^key1=value1[ \t]*[\n\r]+key2=value2[ \t\n\r]*$")
|
|
57
|
-
|
|
58
|
-
# test spaces in section name
|
|
59
|
-
new_ec_test(spaces_in_section_name whitespace.in " test 7 "
|
|
60
|
-
"^key=value[ \t\n\r]*$")
|
|
61
|
-
|
|
62
|
-
# test spaces before section name are ignored
|
|
63
|
-
new_ec_test(spaces_before_section_name whitespace.in test8.c
|
|
64
|
-
"^key=value[ \t\n\r]*$")
|
|
65
|
-
|
|
66
|
-
# test spaces after section name
|
|
67
|
-
new_ec_test(spaces_after_section_name whitespace.in test9.c "^key=value[ \t\n\r]*$")
|
|
68
|
-
|
|
69
|
-
# test spaces at beginning of line between properties
|
|
70
|
-
new_ec_test(spaces_before_middle_property whitespace.in test10.c "^key1=value1[ \t]*[\n\r]+key2=value2[ \t]*[\n\r]+key3=value3[ \t\n\r]*$")
|
|
71
|
-
|
|
72
|
-
# test colon seperator with no whitespaces in property assignment
|
|
73
|
-
new_ec_test(colon_sep_no_whitespace whitespace.in test1.d "^key=value[ \t\n\r]*$")
|
|
74
|
-
|
|
75
|
-
# test colon seperator with single spaces around equals sign
|
|
76
|
-
new_ec_test(colon_sep_single_spaces_around_equals whitespace.in test2.d
|
|
77
|
-
"^key=value[ \t\n\r]*$")
|
|
78
|
-
|
|
79
|
-
# test colon seperator with multiple spaces around equals sign
|
|
80
|
-
new_ec_test(colon_sep_multiple_spaces_around_equals whitespace.in test3.d
|
|
81
|
-
"^key=value[ \t\n\r]*$")
|
|
82
|
-
|
|
83
|
-
# test colon seperator with spaces before property name
|
|
84
|
-
new_ec_test(colon_sep_spaces_before_property_name whitespace.in test4.d
|
|
85
|
-
"^key=value[ \t\n\r]*$")
|
|
86
|
-
|
|
87
|
-
# test colon seperator with spaces before after property value
|
|
88
|
-
new_ec_test(colon_sep_spaces_after_property_value whitespace.in test5.d
|
|
89
|
-
"^key=value[ \t\n\r]*$")
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
# Tests for comment parsing
|
|
93
|
-
|
|
94
|
-
# test comments ignored after property name
|
|
95
|
-
new_ec_test(comments_after_property comments.in test1.c
|
|
96
|
-
"^key=value[ \t\n\r]*$")
|
|
97
|
-
|
|
98
|
-
# test comments ignored after section name
|
|
99
|
-
new_ec_test(comments_after_section comments.in test2.c
|
|
100
|
-
"^key=value[ \t\n\r]*$")
|
|
101
|
-
|
|
102
|
-
# test comments ignored before properties
|
|
103
|
-
new_ec_test(comment_before_props comments.in test3.c
|
|
104
|
-
"^key=value[ \t\n\r]*$")
|
|
105
|
-
|
|
106
|
-
# test comments ignored between properties
|
|
107
|
-
new_ec_test(comment_between_props comments.in test4.c
|
|
108
|
-
"^key1=value1[ \t]*[\n\r]+key2=value2[ \t\n\r]*$")
|
|
109
|
-
|
|
110
|
-
# test semicolons at end of property value are included in value
|
|
111
|
-
new_ec_test(semicolon_in_property comments.in test5.c
|
|
112
|
-
"^key=value; not comment[ \t\n\r]*$")
|
|
113
|
-
|
|
114
|
-
# test escaped semicolons are included in property value
|
|
115
|
-
new_ec_test(escaped_semicolon_in_property comments.in test6.c
|
|
116
|
-
"^key=value ; not comment[ \t\n\r]*$")
|
|
117
|
-
|
|
118
|
-
# test escaped semicolons are included in section names
|
|
119
|
-
new_ec_test(escaped_semicolon_in_section comments.in "test;.c"
|
|
120
|
-
"^key=value[ \t\n\r]*$")
|
|
121
|
-
|
|
122
|
-
# test octothorpe comments ignored after property name
|
|
123
|
-
new_ec_test(octothorpe_comments_after_property comments.in test7.c
|
|
124
|
-
"^key=value[ \t\n\r]*$")
|
|
125
|
-
|
|
126
|
-
# test octothorpe comments ignored after section name
|
|
127
|
-
new_ec_test(octothorpe_comments_after_section comments.in test8.c
|
|
128
|
-
"^key=value[ \t\n\r]*$")
|
|
129
|
-
|
|
130
|
-
# test octothorpe comments ignored before properties
|
|
131
|
-
new_ec_test(octothorpe_comment_before_props comments.in test9.c
|
|
132
|
-
"^key=value[ \t\n\r]*$")
|
|
133
|
-
|
|
134
|
-
# test octothorpe comments ignored between properties
|
|
135
|
-
new_ec_test(octothorpe_comment_between_props comments.in test10.c
|
|
136
|
-
"^key1=value1[ \t]*[\n\r]+key2=value2[ \t\n\r]*$")
|
|
137
|
-
|
|
138
|
-
# test octothorpe at end of property value are included in value
|
|
139
|
-
new_ec_test(octothorpe_in_property comments.in test11.c
|
|
140
|
-
"^key=value; not comment[ \t\n\r]*$")
|
|
141
|
-
|
|
142
|
-
# test escaped octothorpes are included in property value
|
|
143
|
-
new_ec_test(escaped_octothorpe_in_property comments.in test12.c
|
|
144
|
-
"^key=value ; not comment[ \t\n\r]*$")
|
|
145
|
-
|
|
146
|
-
# test escaped octothorpes are included in section names
|
|
147
|
-
new_ec_test(escaped_octothorpe_in_section comments.in "test\#.c"
|
|
148
|
-
"^key=value[ \t\n\r]*$")
|
|
149
|
-
|
|
150
|
-
# test EditorConfig files with BOM at the head
|
|
151
|
-
new_ec_test(bom_at_head bom.in "a.c" "^key=value[ \t\n\r]*$")
|
|
152
|
-
|
|
153
|
-
# test EditorConfig files with CRLF line separators
|
|
154
|
-
new_ec_test(crlf_linesep crlf.in "a.c" "^key=value[ \t\n\r]*$")
|
package/tests/parser/basic.in
DELETED
package/tests/parser/bom.in
DELETED
package/tests/parser/comments.in
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
; test comments
|
|
2
|
-
|
|
3
|
-
root = true
|
|
4
|
-
|
|
5
|
-
[test1.c]
|
|
6
|
-
key=value ; Comment after property is ignored
|
|
7
|
-
|
|
8
|
-
[test2.c] ; Comment ignored, even with ] character
|
|
9
|
-
key=value
|
|
10
|
-
|
|
11
|
-
[test3.c]
|
|
12
|
-
; Comment before properties ignored
|
|
13
|
-
key=value
|
|
14
|
-
|
|
15
|
-
[test4.c]
|
|
16
|
-
key1=value1
|
|
17
|
-
; Comment between properties ignored
|
|
18
|
-
key2=value2
|
|
19
|
-
|
|
20
|
-
; Semicolon at end of value read as part of value
|
|
21
|
-
[test5.c]
|
|
22
|
-
key=value; not comment
|
|
23
|
-
|
|
24
|
-
; Escaped semicolon in value
|
|
25
|
-
[test6.c]
|
|
26
|
-
key=value \; not comment
|
|
27
|
-
|
|
28
|
-
; Escaped semicolon in section name
|
|
29
|
-
[test\;.c]
|
|
30
|
-
key=value
|
|
31
|
-
|
|
32
|
-
[test7.c]
|
|
33
|
-
key=value # Comment after property is ignored
|
|
34
|
-
|
|
35
|
-
[test8.c] # Comment ignored, even with ] character
|
|
36
|
-
key=value
|
|
37
|
-
|
|
38
|
-
[test9.c]
|
|
39
|
-
# Comment before properties ignored
|
|
40
|
-
key=value
|
|
41
|
-
|
|
42
|
-
[test10.c]
|
|
43
|
-
key1=value1
|
|
44
|
-
# Comment between properties ignored
|
|
45
|
-
key2=value2
|
|
46
|
-
|
|
47
|
-
# Semicolon at end of value read as part of value
|
|
48
|
-
[test11.c]
|
|
49
|
-
key=value# not comment
|
|
50
|
-
|
|
51
|
-
# Escaped semicolon in value
|
|
52
|
-
[test12.c]
|
|
53
|
-
key=value \# not comment
|
|
54
|
-
|
|
55
|
-
# Escaped semicolon in section name
|
|
56
|
-
[test\#.c]
|
|
57
|
-
key=value
|
|
58
|
-
|
package/tests/parser/crlf.in
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
; test whitespace usage
|
|
2
|
-
|
|
3
|
-
root = true
|
|
4
|
-
|
|
5
|
-
; no whitespace
|
|
6
|
-
[test1.c]
|
|
7
|
-
key=value
|
|
8
|
-
|
|
9
|
-
; spaces around equals
|
|
10
|
-
[test2.c]
|
|
11
|
-
key = value
|
|
12
|
-
|
|
13
|
-
; lots of space after equals
|
|
14
|
-
[test3.c]
|
|
15
|
-
key = value
|
|
16
|
-
|
|
17
|
-
; spaces before property name
|
|
18
|
-
[test4.c]
|
|
19
|
-
key=value
|
|
20
|
-
|
|
21
|
-
; spaces after property value
|
|
22
|
-
[test5.c]
|
|
23
|
-
key=value
|
|
24
|
-
|
|
25
|
-
; blank lines between properties
|
|
26
|
-
[test6.c]
|
|
27
|
-
|
|
28
|
-
key1=value1
|
|
29
|
-
|
|
30
|
-
key2=value2
|
|
31
|
-
|
|
32
|
-
; spaces in section name
|
|
33
|
-
[ test 7 ]
|
|
34
|
-
key=value
|
|
35
|
-
|
|
36
|
-
; spaces before section name
|
|
37
|
-
[test8.c]
|
|
38
|
-
key=value
|
|
39
|
-
|
|
40
|
-
; spaces after section name
|
|
41
|
-
[test9.c]
|
|
42
|
-
key=value
|
|
43
|
-
|
|
44
|
-
; spacing before middle property
|
|
45
|
-
[test10.c]
|
|
46
|
-
key1=value1
|
|
47
|
-
key2=value2
|
|
48
|
-
key3=value3
|
|
49
|
-
|
|
50
|
-
; colon separator with no spaces
|
|
51
|
-
[test1.d]
|
|
52
|
-
key:value
|
|
53
|
-
|
|
54
|
-
; colon separator with space after
|
|
55
|
-
[test2.d]
|
|
56
|
-
key: value
|
|
57
|
-
|
|
58
|
-
; colon separator with space before and after
|
|
59
|
-
[test3.d]
|
|
60
|
-
key : value
|
|
61
|
-
|
|
62
|
-
; colon separator with spaces befor
|
|
63
|
-
[test4.d]
|
|
64
|
-
key:value
|
|
65
|
-
|
|
66
|
-
; colon seperator with spaces after property value
|
|
67
|
-
[test5.d]
|
|
68
|
-
key:value
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Copyright (c) 2011-2012 EditorConfig Team
|
|
3
|
-
# All rights reserved.
|
|
4
|
-
#
|
|
5
|
-
# Redistribution and use in source and binary forms, with or without
|
|
6
|
-
# modification, are permitted provided that the following conditions are met:
|
|
7
|
-
#
|
|
8
|
-
# 1. Redistributions of source code must retain the above copyright notice,
|
|
9
|
-
# this list of conditions and the following disclaimer.
|
|
10
|
-
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
11
|
-
# this list of conditions and the following disclaimer in the documentation
|
|
12
|
-
# and/or other materials provided with the distribution.
|
|
13
|
-
#
|
|
14
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
15
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
16
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
17
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
|
18
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
19
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
20
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
21
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
22
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
23
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
24
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
|
25
|
-
#
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
# test tab_width default
|
|
29
|
-
new_ec_test(tab_width_default tab_width_default.in test.c
|
|
30
|
-
"^indent_style=space[ \t]*[\n\r]+indent_size=4[ \t]*[\n\r]+tab_width=4[\t\n\r]*$")
|
|
31
|
-
|
|
32
|
-
# Tab_width should not be set to any value if indent_size is "tab" and
|
|
33
|
-
# tab_width is not set
|
|
34
|
-
new_ec_test(tab_width_default_indent_size_tab tab_width_default.in test2.c
|
|
35
|
-
"^indent_style=tab[ \t]*[\n\r]+indent_size=tab[ \t\n\r]*$")
|
|
36
|
-
|
|
37
|
-
# Test indent_size default. When indent_style is "tab", indent_size defaults to
|
|
38
|
-
# "tab".
|
|
39
|
-
new_ec_test(indent_size_default indent_size_default.in test.c
|
|
40
|
-
"^indent_style=tab[ \t]*[\n\r]+indent_size=tab[ \t\n\r]*$")
|
|
41
|
-
|
|
42
|
-
# Test indent_size default. When indent_style is "tab", indent_size should have
|
|
43
|
-
# no default value for version prior than 0.9.0.
|
|
44
|
-
new_ec_test_version(indent_size_default_pre_0_9_0 indent_size_default.in test.c
|
|
45
|
-
"^indent_style=tab[ \t\n\r]*$" 0.8.0)
|
|
46
|
-
|
|
47
|
-
# Test indent_size default. When indent_style is "space", indent_size has no
|
|
48
|
-
# default value.
|
|
49
|
-
new_ec_test(indent_size_default_space indent_size_default.in test2.c
|
|
50
|
-
"^indent_style=space[ \t\n\r]*$")
|
|
51
|
-
|
|
52
|
-
# Test indent_size default. When indent_style is "tab" and tab_width is set,
|
|
53
|
-
# indent_size should default to tab_width
|
|
54
|
-
new_ec_test(indent_size_default_with_tab_width indent_size_default.in test3.c
|
|
55
|
-
"^indent_style=tab[ \t]*[\n\r]+tab_width=2[ \t]*[\n\r]+indent_size=2[ \t\n\r]*$")
|
|
56
|
-
|
|
57
|
-
# test that same property values are lowercased (v0.9.0 properties)
|
|
58
|
-
new_ec_test(lowercase_values1 lowercase_values.in test1.c
|
|
59
|
-
"^indent_style=space[ \t]*[\n\r]+end_of_line=crlf[ \t\n\r]*$")
|
|
60
|
-
|
|
61
|
-
# test that same property values are lowercased (v0.9.0 properties)
|
|
62
|
-
new_ec_test(lowercase_values2 lowercase_values.in test2.c
|
|
63
|
-
"^insert_final_newline=true[ \t]*[\n\r]+trim_trailing_whitespace=false[ \t]*[\n\r]+charset=utf-8[ \t\n\r]*$")
|
|
64
|
-
|
|
65
|
-
# test that same property values are not lowercased
|
|
66
|
-
new_ec_test(lowercase_values3 lowercase_values.in test3.c
|
|
67
|
-
"^test_property=TestValue[ \t\n\r]*$")
|
|
68
|
-
|
|
69
|
-
# test that all property names are lowercased
|
|
70
|
-
new_ec_test(lowercase_names lowercase_names.in test.c
|
|
71
|
-
"^testproperty=testvalue[ \t\n\r]*$")
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
; test property name lowercasing
|
|
2
|
-
|
|
3
|
-
root = true
|
|
4
|
-
|
|
5
|
-
[test1.c]
|
|
6
|
-
indent_style = Space
|
|
7
|
-
end_of_line = CRLF
|
|
8
|
-
|
|
9
|
-
[test2.c]
|
|
10
|
-
insert_final_newline = TRUE
|
|
11
|
-
trim_trailing_whitespace = False
|
|
12
|
-
charset = UTF-8
|
|
13
|
-
|
|
14
|
-
[test3.c]
|
|
15
|
-
test_property = TestValue
|
package/tsconfig.json
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "commonjs",
|
|
4
|
-
"outDir": "dist",
|
|
5
|
-
"declaration": true,
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"target": "es5",
|
|
8
|
-
"lib": ["es6"],
|
|
9
|
-
"sourceMap": false,
|
|
10
|
-
"moduleResolution": "node",
|
|
11
|
-
"resolveJsonModule": true,
|
|
12
|
-
"rootDir": ".",
|
|
13
|
-
"forceConsistentCasingInFileNames": true,
|
|
14
|
-
"noImplicitReturns": true,
|
|
15
|
-
"noImplicitThis": true,
|
|
16
|
-
"noImplicitAny": true,
|
|
17
|
-
"strictNullChecks": true,
|
|
18
|
-
"suppressImplicitAnyIndexErrors": true,
|
|
19
|
-
"noUnusedLocals": true
|
|
20
|
-
},
|
|
21
|
-
"exclude": [
|
|
22
|
-
"node_modules",
|
|
23
|
-
"dist",
|
|
24
|
-
],
|
|
25
|
-
"include": [
|
|
26
|
-
"src/**/*.ts"
|
|
27
|
-
]
|
|
28
|
-
}
|
package/tslint.json
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "tslint:recommended",
|
|
3
|
-
"rules": {
|
|
4
|
-
"align": [
|
|
5
|
-
true,
|
|
6
|
-
"parameters",
|
|
7
|
-
"arguments",
|
|
8
|
-
"statements"
|
|
9
|
-
],
|
|
10
|
-
"ban": false,
|
|
11
|
-
"class-name": true,
|
|
12
|
-
"comment-format": [
|
|
13
|
-
true,
|
|
14
|
-
"check-space"
|
|
15
|
-
],
|
|
16
|
-
"curly": true,
|
|
17
|
-
"eofline": false,
|
|
18
|
-
"forin": true,
|
|
19
|
-
"indent": [true, "spaces", 2],
|
|
20
|
-
"interface-name": [true, "never-prefix"],
|
|
21
|
-
"jsdoc-format": true,
|
|
22
|
-
"jsx-no-lambda": false,
|
|
23
|
-
"jsx-no-multiline-js": false,
|
|
24
|
-
"label-position": true,
|
|
25
|
-
"max-line-length": [true, 120],
|
|
26
|
-
"member-ordering": [true, {
|
|
27
|
-
"order": [
|
|
28
|
-
"static-field",
|
|
29
|
-
"instance-field",
|
|
30
|
-
"constructor",
|
|
31
|
-
"public-instance-method",
|
|
32
|
-
"protected-instance-method",
|
|
33
|
-
"private-instance-method"
|
|
34
|
-
]
|
|
35
|
-
}],
|
|
36
|
-
"no-any": true,
|
|
37
|
-
"no-arg": true,
|
|
38
|
-
"no-bitwise": true,
|
|
39
|
-
"no-console": [
|
|
40
|
-
true,
|
|
41
|
-
"log",
|
|
42
|
-
"error",
|
|
43
|
-
"debug",
|
|
44
|
-
"info",
|
|
45
|
-
"time",
|
|
46
|
-
"timeEnd",
|
|
47
|
-
"trace"
|
|
48
|
-
],
|
|
49
|
-
"no-consecutive-blank-lines": true,
|
|
50
|
-
"no-construct": true,
|
|
51
|
-
"no-debugger": true,
|
|
52
|
-
"no-duplicate-variable": true,
|
|
53
|
-
"no-empty": [true, "allow-empty-catch"],
|
|
54
|
-
"no-eval": true,
|
|
55
|
-
"no-shadowed-variable": true,
|
|
56
|
-
"no-string-literal": true,
|
|
57
|
-
"no-switch-case-fall-through": true,
|
|
58
|
-
"no-trailing-whitespace": false,
|
|
59
|
-
"no-unused-expression": true,
|
|
60
|
-
"no-use-before-declare": true,
|
|
61
|
-
"object-literal-sort-keys": false,
|
|
62
|
-
"one-line": [
|
|
63
|
-
true,
|
|
64
|
-
"check-catch",
|
|
65
|
-
"check-else",
|
|
66
|
-
"check-open-brace",
|
|
67
|
-
"check-whitespace"
|
|
68
|
-
],
|
|
69
|
-
"quotemark": [true, "single", "jsx-double"],
|
|
70
|
-
"radix": true,
|
|
71
|
-
"semicolon": [true, "never"],
|
|
72
|
-
"switch-default": true,
|
|
73
|
-
|
|
74
|
-
"trailing-comma": [true, {
|
|
75
|
-
"multiline": {
|
|
76
|
-
"objects": "always",
|
|
77
|
-
"arrays": "always",
|
|
78
|
-
"functions": "always",
|
|
79
|
-
"typeLiterals": "ignore",
|
|
80
|
-
"singleline": "never"
|
|
81
|
-
}
|
|
82
|
-
}],
|
|
83
|
-
|
|
84
|
-
"triple-equals": [true, "allow-null-check"],
|
|
85
|
-
"typedef": [
|
|
86
|
-
true,
|
|
87
|
-
"parameter",
|
|
88
|
-
"property-declaration"
|
|
89
|
-
],
|
|
90
|
-
"typedef-whitespace": [
|
|
91
|
-
true,
|
|
92
|
-
{
|
|
93
|
-
"call-signature": "nospace",
|
|
94
|
-
"index-signature": "nospace",
|
|
95
|
-
"parameter": "nospace",
|
|
96
|
-
"property-declaration": "nospace",
|
|
97
|
-
"variable-declaration": "nospace"
|
|
98
|
-
}
|
|
99
|
-
],
|
|
100
|
-
"variable-name": [
|
|
101
|
-
true,
|
|
102
|
-
"ban-keywords",
|
|
103
|
-
"check-format",
|
|
104
|
-
"allow-leading-underscore",
|
|
105
|
-
"allow-pascal-case"
|
|
106
|
-
],
|
|
107
|
-
"whitespace": [
|
|
108
|
-
true,
|
|
109
|
-
"check-branch",
|
|
110
|
-
"check-decl",
|
|
111
|
-
"check-module",
|
|
112
|
-
"check-operator",
|
|
113
|
-
"check-separator",
|
|
114
|
-
"check-type",
|
|
115
|
-
"check-typecast"
|
|
116
|
-
]
|
|
117
|
-
}
|
|
118
|
-
}
|