From 27b3d3a834a07f3d088a7eaa89e96da094b37846 Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 13 Feb 2019 08:32:39 +0300 Subject: [PATCH] CSSLint: start ignoring from the comment's line number --- vendor-overwrites/csslint/csslint.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vendor-overwrites/csslint/csslint.js b/vendor-overwrites/csslint/csslint.js index a8a0f9a1..b57e98e2 100644 --- a/vendor-overwrites/csslint/csslint.js +++ b/vendor-overwrites/csslint/csslint.js @@ -231,7 +231,7 @@ var CSSLint = (() => { /* csslint ignore:start */ // the chunk of code where errors won't be reported - // the chunk's start is hardwired to the next line after the opening comment + // the chunk's start is hardwired to the line of the opening comment // the chunk's end is hardwired to the line of the closing comment /* csslint ignore:end */ @@ -288,9 +288,7 @@ var CSSLint = (() => { case 'ignore': if (ovr.includes('start')) { - if (ignoreStart === null) { - ignoreStart = lineno + 1; - } + ignoreStart = ignoreStart || lineno; break; } if (ovr.includes('end')) {