File tree Expand file tree Collapse file tree 2 files changed +111
-0
lines changed Expand file tree Collapse file tree 2 files changed +111
-0
lines changed Original file line number Diff line number Diff line change @@ -962,6 +962,35 @@ function quux () {
962
962
963
963
}
964
964
// Message: There must be no indentation.
965
+
966
+ /**
967
+ * @example <caption>
968
+ * Here is a long
969
+ * indented summary of this
970
+ * example
971
+ * </caption>
972
+ * ` ` ` js
973
+ * function hi () {
974
+ * alert (' Hello' );
975
+ * }
976
+ * ` ` `
977
+ */
978
+ // Options: [{"excludeTags":[]}]
979
+ // Message: There must be no indentation.
980
+
981
+ /**
982
+ * @example <caption>
983
+ * Here is a long
984
+ * summary of this
985
+ * example
986
+ * </caption>
987
+ * // Code is not wrapped into fenced code block
988
+ * function hi () {
989
+ * alert (' Hello' );
990
+ * }
991
+ */
992
+ // Options: [{"excludeTags":[]}]
993
+ // Message: There must be no indentation.
965
994
````
966
995
967
996
The following patterns are not considered problems:
@@ -1030,6 +1059,20 @@ function quux () {
1030
1059
function quux () {
1031
1060
1032
1061
}
1062
+
1063
+ /**
1064
+ * @example <caption>
1065
+ * Here is a long
1066
+ * summary of this
1067
+ * example
1068
+ * </caption>
1069
+ * ` ` ` js
1070
+ * function hi () {
1071
+ * alert (' Hello' );
1072
+ * }
1073
+ * ` ` `
1074
+ */
1075
+ // Options: [{"excludeTags":[]}]
1033
1076
````
1034
1077
1035
1078
Original file line number Diff line number Diff line change @@ -135,6 +135,55 @@ export default {
135
135
} ,
136
136
] ,
137
137
} ,
138
+ {
139
+ code : `
140
+ /**
141
+ * @example <caption>
142
+ * Here is a long
143
+ * indented summary of this
144
+ * example
145
+ * </caption>
146
+ * \`\`\`js
147
+ * function hi () {
148
+ * alert('Hello');
149
+ * }
150
+ * \`\`\`
151
+ */
152
+ ` ,
153
+ errors : [
154
+ {
155
+ line : 5 ,
156
+ message : 'There must be no indentation.' ,
157
+ } ,
158
+ ] ,
159
+ options : [ {
160
+ excludeTags : [ ] ,
161
+ } ] ,
162
+ } ,
163
+ {
164
+ code : `
165
+ /**
166
+ * @example <caption>
167
+ * Here is a long
168
+ * summary of this
169
+ * example
170
+ * </caption>
171
+ * // Code is not wrapped into fenced code block
172
+ * function hi () {
173
+ * alert('Hello');
174
+ * }
175
+ */
176
+ ` ,
177
+ errors : [
178
+ {
179
+ line : 10 ,
180
+ message : 'There must be no indentation.' ,
181
+ } ,
182
+ ] ,
183
+ options : [ {
184
+ excludeTags : [ ] ,
185
+ } ] ,
186
+ } ,
138
187
] ,
139
188
valid : [
140
189
{
@@ -221,5 +270,24 @@ export default {
221
270
}
222
271
` ,
223
272
} ,
273
+ {
274
+ code : `
275
+ /**
276
+ * @example <caption>
277
+ * Here is a long
278
+ * summary of this
279
+ * example
280
+ * </caption>
281
+ * \`\`\`js
282
+ * function hi () {
283
+ * alert('Hello');
284
+ * }
285
+ * \`\`\`
286
+ */
287
+ ` ,
288
+ options : [ {
289
+ excludeTags : [ ] ,
290
+ } ] ,
291
+ } ,
224
292
] ,
225
293
} ;
You can’t perform that action at this time.
0 commit comments