We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 095194c commit b77b420Copy full SHA for b77b420
lib/rules/max-len.js
@@ -383,11 +383,22 @@ module.exports = {
383
return;
384
}
385
386
+ const loc = {
387
+ start: {
388
+ line: lineNumber,
389
+ column: 0
390
+ },
391
+ end: {
392
393
+ column: textToMeasure.length
394
+ }
395
+ };
396
+
397
if (commentLengthApplies) {
398
if (lineLength > maxCommentLength) {
399
context.report({
400
node,
- loc: { line: lineNumber, column: 0 },
401
+ loc,
402
messageId: "maxComment",
403
data: {
404
lineLength,
@@ -398,7 +409,7 @@ module.exports = {
409
} else if (lineLength > maxLength) {
410
411
412
413
messageId: "max",
414
415
0 commit comments