File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ export default createRule<Options, MessageIds>({
154
154
context . report ( { node : comment , messageId : 'lineCommentCapital' } ) ;
155
155
}
156
156
157
- if ( lastChar === '.' && ! comment . value . endsWith ( 'etc.' ) && ! comment . value . endsWith ( ' ...' ) ) {
157
+ if ( lastChar === '.' && ! comment . value . endsWith ( 'etc.' ) && ! comment . value . endsWith ( '...' ) ) {
158
158
context . report ( { node : comment , messageId : 'lineCommentEnding' } ) ;
159
159
}
160
160
Original file line number Diff line number Diff line change @@ -16,6 +16,31 @@ ruleTester({
16
16
// SHOULD be valid
17
17
` ,
18
18
} ,
19
+ {
20
+ code : stripIndent `
21
+ // #region foo
22
+ ` ,
23
+ } ,
24
+ {
25
+ code : stripIndent `
26
+ // #endregion foo
27
+ ` ,
28
+ } ,
29
+ {
30
+ code : stripIndent `
31
+ // foo...
32
+ ` ,
33
+ } ,
34
+ {
35
+ code : stripIndent `
36
+ // foo ...
37
+ ` ,
38
+ } ,
39
+ {
40
+ code : stripIndent `
41
+ // foo etc.
42
+ ` ,
43
+ } ,
19
44
{
20
45
code : stripIndent `
21
46
/// <reference path="../../../../node_modules/@types/should_be_valid.d.ts" />
You can’t perform that action at this time.
0 commit comments