File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ module.exports = defineConfig({
5959 'unicorn/prefer-code-point' : 'off' ,
6060 'unicorn/prefer-export-from' : 'off' ,
6161 'unicorn/prefer-module' : 'off' ,
62- 'unicorn/prefer-negative-index' : 'off' ,
6362 'unicorn/prefer-string-slice' : 'off' ,
6463 'unicorn/prevent-abbreviations' : 'off' ,
6564 'unicorn/require-array-join-separator' : 'off' ,
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ function extractDefaultFromComment(comment?: Comment): string | undefined {
342342 throw new Error ( `Found description text after the default value:\n${ text } ` ) ;
343343 }
344344
345- summary . splice ( summary . length - 2 , 2 ) ;
345+ summary . splice ( - 2 , 2 ) ;
346346 const lastSummaryPart = summary [ summary . length - 1 ] ;
347347 lastSummaryPart . text = lastSummaryPart . text . replace ( / [ \n ] D e f a u l t s t o $ / , '' ) ;
348348 return result [ 2 ] ;
You can’t perform that action at this time.
0 commit comments