File tree Expand file tree Collapse file tree 3 files changed +38
-27
lines changed Expand file tree Collapse file tree 3 files changed +38
-27
lines changed Original file line number Diff line number Diff line change @@ -4594,6 +4594,13 @@ let a;
4594
4594
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
4595
4595
// Message: '@abstract' is generally redundant outside of `declare` contexts when using a type system.
4596
4596
4597
+ const a = {
4598
+ /** @abstract */
4599
+ b: true,
4600
+ };
4601
+ // "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
4602
+ // Message: '@abstract' is generally redundant outside of `declare` contexts when using a type system.
4603
+
4597
4604
/** @template */
4598
4605
let a;
4599
4606
// "jsdoc/check-tag-names": ["error"|"warn", {"typed":true}]
Original file line number Diff line number Diff line change @@ -137,9 +137,7 @@ const getUtils = (
137
137
const replacement = utils . stringify ( jsdoc , specRewire ) ;
138
138
139
139
if ( ! replacement ) {
140
- return fixer . removeRange ( [
141
- 0 , jsdocNode . range [ 1 ] ,
142
- ] ) ;
140
+ return fixer . removeRange ( jsdocNode . range ) ;
143
141
}
144
142
145
143
return fixer . replaceText ( jsdocNode , replacement ) ;
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export default {
41
41
} ,
42
42
] ,
43
43
output : `
44
+
44
45
let a;
45
46
` ,
46
47
} ,
@@ -108,33 +109,35 @@ export default {
108
109
} ,
109
110
] ,
110
111
output : `
112
+
111
113
let a;
112
114
` ,
113
115
} ,
114
- // {
115
- // code: `
116
- // const a = {
117
- // /** @abstract */
118
- // b: true,
119
- // };
120
- // `,
121
- // errors: [
122
- // {
123
- // line: 3,
124
- // message: '\'@abstract\' is generally redundant outside of `declare` contexts when using a type system.',
125
- // },
126
- // ],
127
- // options: [
128
- // {
129
- // typed: true,
130
- // },
131
- // ],
132
- // output: `
133
- // const a = {
134
- // b: true,
135
- // };
136
- // `,
137
- // },
116
+ {
117
+ code : `
118
+ const a = {
119
+ /** @abstract */
120
+ b: true,
121
+ };
122
+ ` ,
123
+ errors : [
124
+ {
125
+ line : 3 ,
126
+ message : '\'@abstract\' is generally redundant outside of `declare` contexts when using a type system.' ,
127
+ } ,
128
+ ] ,
129
+ options : [
130
+ {
131
+ typed : true ,
132
+ } ,
133
+ ] ,
134
+ output : `
135
+ const a = {
136
+
137
+ b: true,
138
+ };
139
+ ` ,
140
+ } ,
138
141
{
139
142
code : `
140
143
/** @template */
@@ -152,6 +155,7 @@ export default {
152
155
} ,
153
156
] ,
154
157
output : `
158
+
155
159
let a;
156
160
` ,
157
161
} ,
@@ -200,6 +204,7 @@ export default {
200
204
} ,
201
205
] ,
202
206
output : `
207
+
203
208
function takesOne(param) {}
204
209
` ,
205
210
} ,
@@ -220,6 +225,7 @@ export default {
220
225
} ,
221
226
] ,
222
227
output : `
228
+
223
229
function takesOne(param) {}
224
230
` ,
225
231
} ,
You can’t perform that action at this time.
0 commit comments