eslint-plugin-jsdoc 65.2.5 → 65.2.6
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/package.json +1 -1
- package/src/rules/tagLines.js +7 -4
package/package.json
CHANGED
package/src/rules/tagLines.js
CHANGED
|
@@ -38,13 +38,16 @@ const checkMaxBlockLines = ({
|
|
|
38
38
|
},
|
|
39
39
|
() => {
|
|
40
40
|
utils.setBlockDescription((info, seedTokens, descLines, postDelims) => {
|
|
41
|
+
// The run of newlines starts at the end of the preceding text line,
|
|
42
|
+
// so the blank lines to drop begin after that line.
|
|
43
|
+
const excessStart = descLines[excessIndexLine] ? excessIndexLine + 1 : excessIndexLine;
|
|
41
44
|
const newPostDelims = [
|
|
42
|
-
...postDelims.slice(0,
|
|
43
|
-
...postDelims.slice(
|
|
45
|
+
...postDelims.slice(0, excessStart),
|
|
46
|
+
...postDelims.slice(excessStart + excessBlockLines - 1 - maxBlockLines),
|
|
44
47
|
];
|
|
45
48
|
return [
|
|
46
|
-
...descLines.slice(0,
|
|
47
|
-
...descLines.slice(
|
|
49
|
+
...descLines.slice(0, excessStart),
|
|
50
|
+
...descLines.slice(excessStart + excessBlockLines - 1 - maxBlockLines),
|
|
48
51
|
].map((desc, idx) => {
|
|
49
52
|
return {
|
|
50
53
|
number: 0,
|